|
[Sponsors] |
May 21, 2008, 03:23 |
I have read all the previous t
|
#1 |
New Member
KaLee_Kun
Join Date: Mar 2009
Location: Mumbai, India
Posts: 7
Rep Power: 17 |
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 |
|
May 21, 2008, 05:11 |
For the correct addition of a
|
#2 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
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 |
|
May 21, 2008, 08:47 |
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 |
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.. |
|
May 21, 2008, 09:50 |
What I meant is, I still could
|
#4 |
New Member
KaLee_Kun
Join Date: Mar 2009
Location: Mumbai, India
Posts: 7
Rep Power: 17 |
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 |
|
May 21, 2008, 10:00 |
Hi Kun
try
y=mesh.C().com
|
#5 |
Senior Member
|
Hi Kun
try y=mesh.C().component(1); Su Junwei |
|
May 21, 2008, 10:24 |
So same can be done with Uy co
|
#6 |
New Member
Arun Shourie
Join Date: Mar 2009
Location: Singapore
Posts: 12
Rep Power: 17 |
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) |
|
May 21, 2008, 13:32 |
Hi Aurun
Please note that t
|
#7 |
Senior Member
Niels Gjoel Jacobsen
Join Date: Mar 2009
Location: Copenhagen, Denmark
Posts: 1,902
Rep Power: 37 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is Source Term????? | Shanthi | FLUENT | 4 | July 6, 2015 02:32 |
How can I add a source term | danielle | OpenFOAM Running, Solving & CFD | 1 | February 29, 2008 12:52 |
How to add source term | Smith | FLUENT | 0 | January 29, 2008 09:12 |
UDF for heat addition and mass addition | Srikanth | FLUENT | 2 | September 20, 2006 20:12 |
UDF about source term | tian | FLUENT | 3 | May 2, 2003 10:17 |