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

How to change equation of state

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree2Likes
  • 1 Post By ErenC
  • 1 Post By einstein_zee

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2025, 02:47
Default How to change equation of state
  #1
New Member
 
Diego Bindoni
Join Date: Oct 2022
Posts: 17
Rep Power: 4
Diego_Bindoni is on a distinguished road
Good morning,
i'm performing a LES simulation of a round jet in seawater, using OpenFOAMv12. Hence, i would like to change the equation of state from the default one to the actual one for seawater (depends on temperature and pressure, and is a bit complicated and long). Do you know how can i code this? Any of you have a template or a similar example from which i could learn?


Thanks in advance for your help, and let me know if i can provide further information.


Diego
Diego_Bindoni is offline   Reply With Quote

Old   March 7, 2025, 01:59
Default
  #2
Member
 
Eren
Join Date: Aug 2018
Posts: 92
Rep Power: 9
ErenC is on a distinguished road
It's easy! Here is the equation of state models:
openfoam>src>>thermophysicalModels>specie>equation OfState

You can create a new folder here and code your own EOS. After that you need to define the new EOS in few places for your compiler to recognize.
Diego_Bindoni likes this.
ErenC is offline   Reply With Quote

Old   March 23, 2025, 16:25
Default
  #3
Member
 
Hosein
Join Date: Nov 2011
Location: Germany
Posts: 99
Rep Power: 15
einstein_zee is on a distinguished road
Hi there,

If you need a simple implementation example and wanna know how things work, you may watch this video https://youtu.be/jJHOeDZJUrU .
Diego_Bindoni likes this.
einstein_zee is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
continuity equation was diverging in transient state stenber FLUENT 0 March 19, 2016 22:37
Ansys CFX problem: unexpected very high temperatures in premix laminar combustion faizan_habib7 CFX 4 February 1, 2016 17:00
Steady state RANS - change of equation type Edeluc Main CFD Forum 2 June 29, 2015 06:54
Equation of state for water? jinwon park Main CFD Forum 2 December 20, 2007 07:32
Equation of state Edward Main CFD Forum 0 September 18, 2005 17:17


All times are GMT -4. The time now is 07:44.