Materials
For each phase, an equation of state is required. The data for a given phase are gathered in a file. Every file must be in the folder ECOGEN/libEOS/ and must follow rules depending on the EOS. Six equations of state are implemented in ECOGEN:
Ideal Gas: For gaseous phase only.
Stiffened Gas: For condensed matter (liquid, solid) in a pressure range where the compressible assumption is reasonable.
Noble-Abel Stiffened Gas: For condensed matter (liquid, solid) subject to phase change.
Only for the Extended-Navier-Stokes-Kortewed 1D model:
Defocusing non-linear Schrödinger: For quantum fluids described by the Defocusing non-linear Schrödinger equation.
Polynomial (non-convex): For a bistable bar.
Van der Waals (non-convex): For liquid and gaseous phase.
Ideal Gas
It is a simple relation linking the pressure \(p\), the temperature \(T\) and the density \(\rho\) or the specific volume \(v=1/\rho\):
\(r\) is the universal gas constant divided by the molar weight of the gas (unit: \(J/(K.kg)\) (SI)). The Gibbs relation as well as Maxwell relations yield the definition of the internal energy:
One can easily obtain the entropy:
The following parameters are assumed constant and \(\gamma\), \(c_v\), \(e_{ref}\) and \(s_{ref}\) must be specified in the material file, as in the following example:
<?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<parametersEOS>
<EOS fichier="IG_air.xml" type="IG"/>
<parameters
gamma="1.4"
cv="800" cv_save="717.46"
energyRef="0."
entropyRef="0.">
</parameters>
<physicalParameters
mu="1.85e-5"
lambda="0.0262">
</physicalParameters>
</parametersEOS>
Stiffened Gas
This equation of state was first presented in 1971 by Harlow & Amdsen [HA68]:
This EOS takes into account the molecular attraction within condensed matter. This quite simple EOS is largely used in numerical simulation based on diffuse interface methods because it is able to reproduce shock relation as well as saturation curve for a liquid–vapor mixture when the phase transition is modeled. Hereafter, some useful relations for the specific volume, the enthalpy and the entropy:
A useful description of these relations can be found in [LeMetayerMS04].
The ideal-gas law is recovered if \(p_{\infty}=0\). The following parameters are assumed constant \(\gamma\), \(p_{\infty}\), \(c_v\), \(e_{ref}\) and \(s_{ref}\). These parameters must be specified in the material file, as in the following example:
<?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<parametersEOS>
<EOS fichier="SG_water.xml" type="SG"/>
<parameters
gamma="4.4"
pInf="6.e8"
cv="1000.0"
energyRef="0."
entropyRef="0.">
</parameters>
<physicalParameters
mu="1.e-3"
lambda="0.6">
</physicalParameters>
</parametersEOS>
Noble-Abel Stiffened Gas
This equation of state is an improved version of the stiffened-gas equation of state in which a parameter of covolume b is introduced. This parameter allows to take into account the repulsive short distance effects linked to molecular motion. The Noble-Abel Stiffened-Gas (NASG) EOS was developed in 2016 by Le Métayer & Saurel [LMetayerS16] and it reads:
As the stiffened-gas EOS, the NASG EOS is able to take into account thermal agitation and attractive effects of condensed matter. This EOS is particularly interesting when phase transition is modeled because it is able to reproduce more accurately saturation curves of a liquid–vapor mixture than the traditional stiffened-gas EOS. Hereafter, some useful relations for the specific volume, the enthalpy and the entropy:
A complete description of the obtention of these relations is given in [LMetayerS16].
The stiffened-gas EOS is recovered if \(b=0\) and the ideal-gas law is recovered if \(b = p_{\infty} = 0\). The parameters \(\gamma\), \(p_{\infty}\), \(b\), \(c_v\), \(e_{ref}\) and \(s_{ref}\) are assumed constant. These parameters must be specified in the material file, as in the following example:
<?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<parametersEOS>
<EOS fichier="NASG_dodLiq.xml" type="NASG"/>
<parameters
gamma="1.09"
pInf="1.159e8"
b="7.51e-4"
cv="2393"
energyRef="-794696."
entropyRef="0.">
</parameters>
<physicalParameters
mu="1.e-3"
lambda="0.6">
</physicalParameters>
</parametersEOS>
Defocusing non-linear Schrödinger
The hydrodynamic form of the Defocusing Nonlinear Schrödinger equation [DFG19] can be obtain by choosing:
No parameters are specified for this EOS:
<?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<parametersEOS>
<EOS type="NLS"/>
<parameters no_params="1."/>
</parametersEOS>
Polynomial
A bistable Ericksen model is used to describe the dynamic of a bistable tape spring [BFL20]. The potential energy is:
In the following example, the parameters \(a,b,c\) are chosen from [BFL20] in order to reproduce a double well potential:
<?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<parametersEOS>
<EOS type="Polynomial"/>
<parameters
a="0.14583333333333334"
b="-1.1666666666666667"
c="2.4583333333333335">
</parameters>
</parametersEOS>
Van der Waals
To describe both the liquid and the vapor through a single EOS, we can choose the van der Waals EOS [DFL26]:
The parameters \(a,b,C_v\) are defined at the critical point of the fluid. The constants \(T_c,P_c,M\) are given. For this EOS, one can choose \(\mathcal{K}\) as a function of \(\rho\) or as a constant. Here is an example:
<?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<parametersEOS>
<EOS type="VDW"/>
<parameters
Tc="658.2"
Pc="18.2e5"
M="170.34"
c_v="3200."
kappa="2.7778e-6">
</parameters>
</parametersEOS>
Here, a value for \(\mathcal{K}\) has been specified. If you want \(\mathcal{K}\) as a function of \(\rho\), set the value to zero:
<?xml version = "1.0" encoding = "UTF-8" standalone = "yes"?>
<parametersEOS>
<EOS type="VDW"/>
<parameters
Tc="658.2"
Pc="18.2e5"
M="170.34"
c_v="3200."
kappa="0.">
</parameters>
</parametersEOS>
By default, the choice \(\mathcal{K} = \cfrac{1}{4 \, \rho}\) is made.