CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Source term addition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2008, 02:23
Default I have read all the previous t
  #1
New Member
 
KaLee_Kun
Join Date: Mar 2009
Location: Mumbai, India
Posts: 7
Rep Power: 17
kaleekun is on a distinguished road
I have read all the previous threads on source term addition.

My problem is this....

I have to add a source term in the mass conservation equation. This source term is a function of local 'y' co-ordinate and also local 'Uy' (y-component of U)
Lets say, for example....
ddt(rho) + div(phi) == -(rho*Uy)/y


How to add this source term on the right hand side
kaleekun is offline   Reply With Quote

Old   May 21, 2008, 04:11
Default For the correct addition of a
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51
gschaider will become famous soon enoughgschaider will become famous soon enough
For the correct addition of a massSource have a look at the dieselFoam-sources.
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider is offline   Reply With Quote

Old   May 21, 2008, 07:47
Default hi, i have taken a look at it.
  #3
New Member
 
KaLee_Kun
Join Date: Mar 2009
Location: Mumbai, India
Posts: 7
Rep Power: 17
kaleekun is on a distinguished road
hi, i have taken a look at it...
but still i have the problem when I multiply local Uy and local y co-ordinate....

I think i face problem while accessing the local Uy and y-coordinate..
kaleekun is offline   Reply With Quote

Old   May 21, 2008, 08:50
Default What I meant is, I still could
  #4
New Member
 
KaLee_Kun
Join Date: Mar 2009
Location: Mumbai, India
Posts: 7
Rep Power: 17
kaleekun is on a distinguished road
What I meant is, I still couldn't figure out how to get the y co-ordinates in an array, so that i can manipulate to the right of the equation....

Can any one elaborate on this. Awaiting a reply
kaleekun is offline   Reply With Quote

Old   May 21, 2008, 09:00
Default Hi Kun try y=mesh.C().com
  #5
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 20
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Hi Kun

try
y=mesh.C().component(1);

Su Junwei
su_junwei is offline   Reply With Quote

Old   May 21, 2008, 09:24
Default So same can be done with Uy co
  #6
ash
New Member
 
Arun Shourie
Join Date: Mar 2009
Location: Singapore
Posts: 12
Rep Power: 17
ash is on a distinguished road
So same can be done with Uy component also... right

I am extrememly happy

Uy=U().component(2);

or should i add like this

Uy=mesh.U().component(2)
ash is offline   Reply With Quote

Old   May 21, 2008, 12:32
Default Hi Aurun Please note that t
  #7
ngj
Senior Member
 
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,900
Rep Power: 37
ngj will become famous soon enoughngj will become famous soon enough
Hi Aurun

Please note that the components run from 0, thus:

x:= component(0)
y:= component(1)
z:= component(2)

with := meaning defined as.

Best regards,

Niels
__________________
Please note that I do not use the Friend-feature, so do not be offended, if I do not accept a request.
ngj is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
What is Source Term????? Shanthi FLUENT 4 July 6, 2015 01:32
How can I add a source term danielle OpenFOAM Running, Solving & CFD 1 February 29, 2008 11:52
How to add source term Smith FLUENT 0 January 29, 2008 08:12
UDF for heat addition and mass addition Srikanth FLUENT 2 September 20, 2006 19:12
UDF about source term tian FLUENT 3 May 2, 2003 09:17


All times are GMT -4. The time now is 20:44.