純脆方便自己管理四處回文的部落格

2008年12月24日 星期三

[COMSOL_Users] Digest Number 1516

Messages In This Digest (4 Messages)

1a.
Re: How to set the disc to rotation ? From: David Hopkins
2a.
basic programming help? From: julegrey
2b.
Re: basic programming help? From: Slava
2c.
Re: basic programming help? From: Bernard Mcgarvey

Messages

1a.

Re: How to set the disc to rotation ?

Posted by: "David Hopkins" dahopkins429@gmail.com   dahopkins429

Tue Dec 23, 2008 8:42 pm (PST)

On Tue, Dec 23, 2008 at 2:51 AM, ¤pªZ­¦ <wenwai123@yahoo.com.tw> wrote:
> When I have a disc, how to simulate the disc rotation ?

Do you want to the disc to actually rotate, or just get the
(steady-state/quasi-static) effects of rotation? For a 2d example of
the former, look at the 2d generator example using the moving mesh
formulation. For the second option, look at the magnetic brake
example. That is where I would start.

Sincerely,
Dave Hopkins
ARL

2a.

basic programming help?

Posted by: "julegrey" lusann@gmail.com   julegrey

Tue Dec 23, 2008 8:42 pm (PST)

Hi there,

I'm using comsol for the first time, and I think I've got everything
working, except that I need to write a boundary condition that is
dependent upon the gradient of a variable. How do I tell Comsol to
take the gradient? I suppose I can define my own function, but I don't
even know where to begin, I just found a box that told me I can define
my own function...

Thanks so much,
Lusann

2b.

Re: basic programming help?

Posted by: "Slava" for_slava@yahoo.com   for_slava

Wed Dec 24, 2008 6:15 am (PST)

--- In COMSOL_Users@yahoogroups.com, "julegrey" <lusann@...> wrote:
>
> Hi there,
>
> I'm using comsol for the first time, and I think I've got everything
> working, except that I need to write a boundary condition that is
> dependent upon the gradient of a variable. How do I tell Comsol to
> take the gradient? I suppose I can define my own function, but I don't
> even know where to begin, I just found a box that told me I can define
> my own function...
>
> Thanks so much,
> Lusann
>

Functions You can define in menu:
Options->Functions->New function..

But may be there is better way especially how to define it on boundary..

2c.

Re: basic programming help?

Posted by: "Bernard Mcgarvey" mcgarvey.bernard@att.net   bernardmcgarvey

Wed Dec 24, 2008 6:15 am (PST)

If the variable is the gradient of a dependent variable of teh model such as the velocity u, then ux is automatically generated by the model and you can use this directly in a foumula. Just add the independent variable to it - so that ux is the gradient of u in the x direction, uy in the y direction and so on.
 Bernard McGarvey, Ph.D.

________________________________
From: julegrey <lusann@gmail.com>
To: COMSOL_Users@yahoogroups.com
Sent: Tuesday, December 23, 2008 6:38:36 PM
Subject: [COMSOL_Users] basic programming help?

Hi there,

I'm using comsol for the first time, and I think I've got everything
working, except that I need to write a boundary condition that is
dependent upon the gradient of a variable. How do I tell Comsol to
take the gradient? I suppose I can define my own function, but I don't
even know where to begin, I just found a box that told me I can define
my own function...

Thanks so much,
Lusann

Recent Activity
Visit Your Group
Yahoo! Finance

It's Now Personal

Guides, news,

advice & more.

Search Ads

Get new customers.

List your web site

in Yahoo! Search.

Sitebuilder

Build a web site

quickly & easily

with Sitebuilder.

Need to Reply?

Click one of the "Reply" links to respond to a specific message in the Daily Digest.

Create New Topic | Visit Your Group on the Web

沒有留言: