CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Implementing new state equations in OpneFoam (https://www.cfd-online.com/Forums/openfoam/173901-implementing-new-state-equations-opnefoam.html)

Raghuveera June 29, 2016 13:45

Implementing new state equations in OpneFoam
 
Dear All,

I am a new user to OpneFoam and trying to implement various real gas equations in OpenFoam (rhoPimpleFoam) state calculation. How and where I need to start modifying the existing code?

Basically, I want to create a switch between various models which I want to include for state calculation.

I wanted to have switching options between models like,

1) Ideal gas equation,
2) Virial model,
3) Peng-Robinson model,
4) Wohl model

etc...

Can any one provide me the initial guidance on how to plan this activity and which files needs to be modified?

Thanks,
Rveera

g.freeman June 30, 2016 03:53

Quote:

Originally Posted by Raghuveera (Post 607280)
Dear All,

I am a new user to OpneFoam and trying to implement various real gas equations in OpenFoam (rhoPimpleFoam) state calculation. How and where I need to start modifying the existing code?

Basically, I want to create a switch between various models which I want to include for state calculation.

I wanted to have switching options between models like,

1) Ideal gas equation,
2) Virial model,
3) Peng-Robinson model,
4) Wohl model

etc...

Can any one provide me the initial guidance on how to plan this activity and which files needs to be modified?

Thanks,
Rveera

Hey, try to look at this: http://cfd.direct/openfoam/user-guide/thermophysical/

In your directory, down to constant, there is a file named thermophysicalProperties, and you have to edit it for specifying which equation of state you want to use


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