|July 1, 2011, 01:20||
introducing a new fluid into openFoam
Alireza Zamani Aghaie
Join Date: May 2011
Location: Mashhad, Iran
Posts: 4Rep Power: 6
I need to introduce a new fuel in dieselFoam solver (like Marine Fuel Oil (MFO) or bio-diesel). I have all the thermophysical properties of this new fuel.
Would you please help me on this. How can I introduce this new fluid?
|July 1, 2011, 02:37||
Join Date: Jun 2011
Posts: 26Rep Power: 6
I've never used dieselFoam so I've no idea if it works the same way as with other solvers. In the other solvers, you specify the thermophysical properties of the fluid in the constant/thermophysicalProperties file. The syntax was renewed for OF-2.0.0., see
|July 4, 2011, 16:24||
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 725Rep Power: 18
For dieselFoam, the thermophysicalProperties file has an entry called liquidComponents where you specify what the liquid in the simulation is, as well as the coefficients for the thermophysical models. There are many predefined liquids in $FOAM_SRC/thermophysicalModels/liquids (for OF 1.6 at least, in 2.0 I think its now in $FOAM_SRC/properties/liquids)
If you are going to be using this new liquid quite often, I suggest making a new liquid for OpenFOAM by navigating to $FOAM_SRC/thermophysicalModels/liquids, copying over the liquid that is closest to the one you want to implement (likely C7H16), and making the following changes:
1) Change every occurrence of C7H16 to the name of the new fuel you are implementing. This includes the source filenames and the directory name, and they must all be consistent.
2) Navigate back to the liquids directory and run
2.5) If you missed anything in Step 1, you will get errors telling you where things went wrong. Once you are able to build the library with no errors, run a dieselFoam case with the "new" liquid (still just regular C7H16) to test that it works.
3) Once you have a new library to play with, go to the .C file and start changing the constants in the first constructor to match the new fuel. You can read the documentation for the file at http://foam.sourceforge.net/docs/cpp/a07803_source.html (the form hasn't changed from OF 1.6). Click on liquidProperties for an explanation of the liquidProperties constructor. You'll need to construct the other thermophysical quantities such as density and vapourPressure from the NSRDS functions, which are also listed in the .C file.
4) Continue recompiling and testing until the library compiles properly, You should now have a brand new liquid accessible in OpenFOAM.
Its not trivial, but relatively straightforward, Good luck
|May 29, 2012, 05:30||
Join Date: Jan 2012
Posts: 17Rep Power: 5
I know this is an hold post, but I'm trying to introduce a new liquid in Openfoam to simulate LOx spray injection with sparyFoam. I'm experiencing some problem to find the reference book for NSRDS functions of Daubert and Danner, is there an alternative way to obtain the polynomial coeffcients?
Is there another reference?
|Thread||Thread Starter||Forum||Replies||Last Post|
|2D Mesh Generation Tutorial for GMSH||aeroslacker||Open Source Meshers: Gmsh, Netgen, CGNS, ...||12||January 19, 2012 04:52|
|Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64||wyldckat||OpenFOAM Announcements from Other Sources||3||September 8, 2010 06:25|
|Summer School on Numerical Modelling and OpenFOAM||hjasak||OpenFOAM||5||October 12, 2008 13:14|
|My Revised "Time Vs Energy" Article For Review||Abhi||Main CFD Forum||2||July 9, 2002 09:08|
|Terrible Mistake In Fluid Dynamics History||Abhi||Main CFD Forum||12||July 8, 2002 09:11|