-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
within HelmholtzMedia.Examples.Validation; | ||
model idealGasLimit | ||
package Medium = HelmholtzFluids.Helium; | ||
|
||
parameter Medium.Temperature T=298.15; | ||
Medium.Density d; | ||
|
||
Medium.EoS.HelmholtzDerivs f = Medium.EoS.setHelmholtzDerivsThird(d=d, T=T, phase=1); | ||
Medium.ThermodynamicState state = Medium.setState_dT(d=d, T=T, phase=1); | ||
|
||
equation | ||
d = 100/exp(time); | ||
|
||
annotation (Documentation(info=" | ||
<html> | ||
<style type=\"text/css\"> | ||
code{background-color:#EEEEEE; padding:2px; margin:2px;} | ||
</style> | ||
<body> | ||
This model is used to validate the behavior of the EoS in the ideal gas limit, that is at <code> lim d -> 0 </code>. | ||
<br /> | ||
How to use: | ||
<ol> | ||
<li>Simulate with any <code>T_trip < T < T_max</code></li> | ||
<li>Plot <code>f.rd</code> and <code>B</code> </li> | ||
<li>Make <code>d</code> the independent variable of the plot </li> | ||
<li>Set the horizontal axis <code>(d)</code> to logarithmic scale</li> | ||
<li>Set line style to dotted and marker style to cross</li> | ||
<li>Look at the graphs </li> | ||
</ol> | ||
</body> | ||
</html>"),experiment(StopTime=1000, __Dymola_NumberOfIntervals=10000), | ||
__Dymola_experimentSetupOutput); | ||
end idealGasLimit; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ CriticalState | |
acentricFactor | ||
ThermoSurface | ||
MaxwellLoop | ||
idealGasLimit |