|
[Sponsors] |
Compressible ThermophysicalProperties for Methane |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 23, 2010, 20:48 |
Compressible ThermophysicalProperties for Methane
|
#1 |
New Member
Miguel Suarez
Join Date: Aug 2010
Location: El Paso Texas
Posts: 28
Rep Power: 15 |
I'm a new OpenFOAM user and also to the field of CFD. After struggling with installation and basic issues on running the tutorials, now I have questions about the ThermophysicalProperties file under the "constant" folder. Most of the tutorials have the basic thermophysicalProperties file discussed in the OpenFOAM user guide. However, i want to use compressional solvers (still undecided which is the best). The scope of the problem is quite basic: methane flowing through a duct (or pipe) with heat being applied to one side of the duct.
I need to apply an equation of state where density is a function of pressure and temperature (similar to the one used by FLUENT); however, after reading the user and programmer's guide, I was unable to come up with a solution. My question is, how do i tell OpenFOAM that my fluid is methane and that rho(P,T)? I found the NSRDSfunctions, but once again, i don't know how to use them in the thermophysicalproperties file... or if I even should use it. I also found the therm.dat, but that only has coefficients for Cp and H. Any help and guidance will be greatly appreciated. Thank you Miguel Suarez |
|
October 23, 2010, 23:54 |
|
#2 |
Member
edison
Join Date: May 2009
Location: Australia
Posts: 35
Rep Power: 16 |
check the user guide chapter 7.1 and good luck
|
|
October 24, 2010, 11:05 |
|
#3 |
New Member
Miguel Suarez
Join Date: Aug 2010
Location: El Paso Texas
Posts: 28
Rep Power: 15 |
As I mentioned before, I have read the User and Programmer's guide multiple times and have not been able to come up with an answer. I have also browsed through the threads posted in this forum, but have not found something that helps me.
|
|
November 2, 2010, 11:54 |
|
#4 |
New Member
Miguel Suarez
Join Date: Aug 2010
Location: El Paso Texas
Posts: 28
Rep Power: 15 |
URGENT!!!!!
I know is a simple question... but i have yet to figure it out or find somebody that can help. Using OpenFoam for a school project and would like to learn how to do this. Once again, the issue is setting the fluid to methane (specially looking near the triple point). All I need is an idea on how to use methane in the thermophysicalProperties file. Thank you. P.S. seeing the number of people that viewed my post, i know a response can help others. |
|
November 2, 2010, 12:21 |
|
#5 |
Senior Member
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28 |
If you are only looking at single phase flow, the easiest thing in my mind would be to use reactingFoam with the reaction chemistry turned off. I don't know if there is a tutorial in OF1.7, you can always check this out.
http://openfoamwiki.net/index.php/Tu..._firstTutorial You would need to change the mesh, boundary conditions and initial conditions so that they match what you are studying. Specifying methane should be as simple as using the right mass fractions for the component gases and sourcing a proper chemkin file that describes methane under the conditions you wish to study. OpenFOAM is built in a way so that implementing basic physics is as simple as selecting the right dynamic libraries. Of course, you also have the option of making your own physical models should the need arise. |
|
November 7, 2010, 15:25 |
|
#6 |
New Member
Miguel Suarez
Join Date: Aug 2010
Location: El Paso Texas
Posts: 28
Rep Power: 15 |
Marco,
Thank you for your response. To give you a better idea, this is what i'm doing. Using FLUENT, i modeled a channel in which methane travels through. in fluent, I used a density based solver. the material's (Methane) density was set to ideal gas. I know the equation that fluent uses. It is a 40+ term pressure equation. In other words, Pressure as a function of temperature and density. I could not find a similar equation anywhere in OpenFOAM, or how it even calculates density for air (as used in the tutorials). Miguel |
|
November 7, 2010, 23:22 |
|
#7 |
Senior Member
Nakul
Join Date: Apr 2010
Location: India
Posts: 147
Rep Power: 16 |
Hi,
Specifying methane in the thermophysical properties file is quite simple. Its similar to the way the properties of air have been specified the user's guide. You just have to write the name "methane" and specify its JANAF and other properties. As far as equation of state is concerned, its possible to specify your own equation of state. Just search the forums or google "how to add a new equation of state?". You would definitely get answers. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressible -> incompressible. | Jinwon | Main CFD Forum | 6 | November 23, 2007 21:07 |
urgent help needed with 2d compressible flow | James | FLUENT | 2 | June 20, 2007 04:22 |
compressible | newposter | Main CFD Forum | 0 | September 10, 2006 03:49 |
Compressible turbulence modeling | userven | OpenFOAM Running, Solving & CFD | 0 | May 5, 2006 00:37 |
Compressible vs. Incompressible formulations | Fernando Velasco Hurtado | Main CFD Forum | 3 | January 7, 2000 16:51 |