Extends from Modelica.Icons.Package (Icon for standard packages).
Name | Description |
---|---|
TemplateMedium | Test Interfaces.TemplateMedium |
Extends from Modelica.Icons.Example (Icon for runnable examples).
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;