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

How to add transport equations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2009, 18:16
Default Hi guys I am trying to simu
  #1
New Member
 
Ali Mansouri
Join Date: Mar 2009
Posts: 15
Rep Power: 17
alimansouri is on a distinguished road
Hi guys

I am trying to simulate a simple mixing problem,
2D, single phase, turbulent and mixing in cross flow jets...

how can I add two species equations? should I use turboFoam ?

is there any tutorial etc ?

thank you!
Ali.
alimansouri is offline   Reply With Quote

Old   January 9, 2009, 06:37
Default Hi Ali, here's a simple exa
  #2
Member
 
Ville Tossavainen
Join Date: Mar 2009
Posts: 60
Rep Power: 17
villet is on a distinguished road
Hi Ali,

here's a simple example how to add a (passive) scalar to an existing solver:

http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam

The example is for laminar solver, but in the similar way you can start from turbulent flow solver. "simpleFoam" is for steady-state problems and "turbFoam" for transient problems.

Hope this helps!

Ville
villet is offline   Reply With Quote

Old   January 9, 2009, 18:05
Default thanks Ville! have you see
  #3
New Member
 
Ali Mansouri
Join Date: Mar 2009
Posts: 15
Rep Power: 17
alimansouri is on a distinguished road
thanks Ville!

have you seen any tutorial in this area ?

Ali.
alimansouri is offline   Reply With Quote

Old   January 11, 2009, 08:33
Default At the end of the wiki webpage
  #4
Member
 
Ville Tossavainen
Join Date: Mar 2009
Posts: 60
Rep Power: 17
villet is on a distinguished road
At the end of the wiki webpage there is a case file for the cavity flow case. But once you have created the solver, most of the work is done. Then you can just apply it to your case.

Or if you insist to have a simpler case, you can first modify icoFoam elbow mixing tutorial for one passive scalar.
villet is offline   Reply With Quote

Old   January 12, 2009, 16:00
Default Hi Ville If I would like to
  #5
New Member
 
Ali Mansouri
Join Date: Mar 2009
Posts: 15
Rep Power: 17
alimansouri is on a distinguished road
Hi Ville

If I would like to have two passive scalars, then should I add two equations ?

since in Fluent you add only one and the second one its just decuction from the whole field (e.g. concentration).

do you also have any idea about this error

Foam Fatal error" attempt to read beyond EOF"

thanks alot!
alimansouri is offline   Reply With Quote

Old   January 12, 2009, 16:46
Default Yes, that's correct. Two equat
  #6
Member
 
Ville Tossavainen
Join Date: Mar 2009
Posts: 60
Rep Power: 17
villet is on a distinguished road
Yes, that's correct. Two equations for two passive scalars. Twice as much to write

I'm not sure what you mean about Fluent? Practically you can do the same thing with Fluent and OpenFOAM.

The last error... check your code if you're missing any closing parenthesis or ";".

Good luck with foaming!
villet is offline   Reply With Quote

Old   January 12, 2009, 17:20
Default Hi Ali! What you're talking
  #7
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
Hi Ali!

What you're talking about ("in Fluent") is the case that for the two scalars the relation s1+s2==1 is always true (because there are no other species)?

In that case you can always solve for s1 and then calculate s2=1-s1

Bernhard
__________________
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

Reply


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
How to solver coupled transport equations chris1980 OpenFOAM Running, Solving & CFD 8 October 29, 2019 08:15
Convergence of turbulence transport equations KK CFX 0 January 31, 2008 21:46
Under-Relaxation of Transport Equations Florian Fruth CFX 6 July 16, 2007 09:59
Scalar Transport Equations David harvey FLUENT 1 January 31, 2004 07:15
Scalar Transport Equations 123 Main CFD Forum 6 August 10, 1998 10:05


All times are GMT -4. The time now is 21:12.