Extends from Modelica.Icons.Library (Icon for library).
Name | Description |
---|---|
TemplateMedium | Test Interfaces.TemplateMedium |
Extends from Modelica.Icons.Example (Icon for an example model).
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;