Equation of state modification

Asked by Xavier

Hi,
It looks like there are three kinds of implemented EoS: linear, Pade and stiffened gas. Is there a way to add a new one based on a table or polynomial without changing source files (Equation_of_State.F90, .rnc and others probably) ?
Xavier

Question information

Language:
English Edit question
Status:
Answered
For:
Fluidity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Jon Hill (jon-hill) said :
#1

Hi Xavier,

There's no direct way, no. However, there is a workaround. Under linear,
there is a option to use any scalar field. You can therefore construct a
python diagnostic scalar field using any other scalar fields and python
to whichever equation you wish and then use that with the linear
equation of state.

I've not tried this, but let us know how you get on.

Kind regards,

Jon

On 22/04/2014 10:41, Xavier wrote:
> New question #247423 on Fluidity:
> https://answers.launchpad.net/fluidity/+question/247423
>
> Hi, It looks like there are three kinds of implemented EoS: linear,
> Pade and stiffened gas. Is there a way to add a new one based on a
> table or polynomial without changing source files
> (Equation_of_State.F90, .rnc and others probably) ? Xavier
>

--
Dr Jon Hill
Research Fellow
AMCG, Earth Science and Engineering
Imperial College London
Mob: 07748254812
Phone: +44(0)2075949321
Twitter: @jonxhill

Revision history for this message
Xavier (xavier-kuhn) said :
#2

Thank you. I am going to try it.

Can you help with this problem?

Provide an answer of your own, or ask Xavier for more information if necessary.

To post a message you must log in.