Skip to content

Commit

Permalink
ideal gas limit, related to #11
Browse files Browse the repository at this point in the history
  • Loading branch information
thorade committed Jan 28, 2013
1 parent 610bea8 commit fc0c151
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Examples/Validation/idealGasLimit.mo
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
within HelmholtzMedia.Examples.Validation;
model idealGasLimit
package Medium = HelmholtzFluids.Helium;
package Medium = HelmholtzFluids.Propane;

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);

Real B=f.rd*f.delta/d;
Real C=f.rdd*f.delta^2/d^2;
Real D=f.rddd*f.delta^3/d^3;

equation
d = 100/exp(time);

Expand Down

0 comments on commit fc0c151

Please sign in to comment.