Modelica.Media.Examples.TestOnly.TestMedia

Test interfaces of media

Information



Extends from Modelica.Icons.Library (Icon for library).

Package Content

NameDescription
Modelica.Media.Examples.TestOnly.TestMedia.TemplateMedium TemplateMedium Test Interfaces.TemplateMedium


Modelica.Media.Examples.TestOnly.TestMedia.TemplateMedium Modelica.Media.Examples.TestOnly.TestMedia.TemplateMedium

Test Interfaces.TemplateMedium

Information



Extends from Modelica.Icons.Example (Icon for an example model).

Modelica definition

model TemplateMedium "Test Interfaces.TemplateMedium"
  extends Modelica.Icons.Example;
  package Medium = Interfaces.TemplateMedium "Medium model";
  Medium.ThermodynamicState medium;

  Medium.DynamicViscosity eta=Medium.dynamicViscosity(medium);
  Medium.ThermalConductivity lambda=Medium.thermalConductivity(medium);
  Medium.SpecificEntropy s=Medium.specificEntropy(medium);
  Medium.SpecificHeatCapacity cp=Medium.specificHeatCapacityCp(medium);
  Medium.SpecificHeatCapacity cv=Medium.specificHeatCapacityCv(medium);
  Medium.IsentropicExponent gamma=Medium.isentropicExponent(medium);
  Medium.VelocityOfSound a=Medium.velocityOfSound(medium);
equation 
  medium.p = 1.0e5;
  medium.T = 300 + time/1000;
end TemplateMedium;

HTML-documentation generated by Dymola Sun Jan 17 21:12:18 2010.