Physiolibrary.Thermal.Sources

Information

Extends from Modelica.Icons.SourcesPackage (Icon for packages containing sources).

Package Content

Name Description
Physiolibrary.Thermal.Sources.UnlimitedHeat UnlimitedHeat Prescribed temperature
Physiolibrary.Thermal.Sources.MassOutflow MassOutflow One-directional outflow of heated mass with enthalpy (vaporization heat)
Physiolibrary.Thermal.Sources.MassInflow MassInflow One-directional inflow of heated mass with enthalpy (heat of solvation)

Physiolibrary.Thermal.Sources.UnlimitedHeat Physiolibrary.Thermal.Sources.UnlimitedHeat

Prescribed temperature

Physiolibrary.Thermal.Sources.UnlimitedHeat

Information

This model defines a fixed temperature T at its port in Kelvin, i.e., it defines a fixed temperature as a boundary condition.


Parameters

TypeNameDefaultDescription
TemperatureT0Fixed temperature at port if useTemperatureInput=false [K]
External inputs/outputs
BooleanuseTemperatureInputfalse=true, if fixed temperature is from input instead of parameter
Equilibrium
Simulation
BooleanisIsolatedInSteadyStatefalse=true, if there is no flow at port in steady state
SimulationTypeSimulationTypes.SimulationType.NormalI...If in equilibrium, then zero-flow equation is added.

Connectors

TypeNameDescription
HeatPort_bport 
input TemperatureInputtemperature[K]

Modelica definition

model UnlimitedHeat "Prescribed temperature" //extends Modelica.Thermal.HeatTransfer.Sources.FixedTemperature; parameter Boolean useTemperatureInput = false "=true, if fixed temperature is from input instead of parameter"; parameter Types.Temperature T = 0 "Fixed temperature at port if useTemperatureInput=false"; parameter Boolean isIsolatedInSteadyState = false "=true, if there is no flow at port in steady state"; parameter Types.SimulationType Simulation=Types.SimulationType.NormalInit "If in equilibrium, then zero-flow equation is added."; Interfaces.HeatPort_b port; protected Types.Temperature t "Current temperature"; public Types.RealIO.TemperatureInput temperature(start=T)= t if useTemperatureInput; initial equation if isIsolatedInSteadyState and (Simulation==Types.SimulationType.InitSteadyState) then port.Q_flow = 0; end if; equation if not useTemperatureInput then t=T; end if; port.T = t; if isIsolatedInSteadyState and (Simulation==Types.SimulationType.SteadyState) then port.Q_flow = 0; end if; end UnlimitedHeat;

Physiolibrary.Thermal.Sources.MassOutflow Physiolibrary.Thermal.Sources.MassOutflow

One-directional outflow of heated mass with enthalpy (vaporization heat)

Physiolibrary.Thermal.Sources.MassOutflow

Information

Extends from Interfaces.ConditionalMassFlow (Input of mass flow vs. parametric mass flow).

Parameters

TypeNameDefaultDescription
MassFlowRateMassFlow0Mass flow if useMassFlowInput=false [kg/s]
SpecificEnergyVaporizationHeat0Used for whole outflow stream [J/kg]
SpecificHeatCapacitySpecificHeat4186.8Of outflowing medium [J/(kg.K)]
External inputs/outputs
BooleanuseMassFlowInputfalse=true, if mass flow input is used instead of parameter MassFlow

Connectors

TypeNameDescription
input MassFlowRateInputmassFlow[kg/s]
HeatPort_aq_inflow circuit

Modelica definition

model MassOutflow "One-directional outflow of heated mass with enthalpy (vaporization heat)" extends Interfaces.ConditionalMassFlow; Interfaces.HeatPort_a q_in "flow circuit"; parameter Types.SpecificEnergy VaporizationHeat=0 "Used for whole outflow stream"; // or 2428344 for water vaporization parameter Types.SpecificHeatCapacity SpecificHeat=4186.8 "Of outflowing medium"; //default heat capacity of water is 1 kcal/(degC.kg) equation // assert(liquidOutflow_>=-Modelica.Constants.eps,"HeatOutstream must have always one forward flow direction! Not 'liquidOutflow_<0'!"); q_in.Q_flow = q*(q_in.T*SpecificHeat + VaporizationHeat); end MassOutflow;

Physiolibrary.Thermal.Sources.MassInflow Physiolibrary.Thermal.Sources.MassInflow

One-directional inflow of heated mass with enthalpy (heat of solvation)

Physiolibrary.Thermal.Sources.MassInflow

Information

Extends from Interfaces.ConditionalMassFlow (Input of mass flow vs. parametric mass flow), Interfaces.ConditionalTemperature (Input of temperature vs. parametric temperature).

Parameters

TypeNameDefaultDescription
MassFlowRateMassFlow0Mass flow if useMassFlowInput=false [kg/s]
TemperatureT0Temperature if useTemperatureInput=false [K]
SpecificEnergydH0Enthalpy of incoming substance (i.e. enthalpy of solvation) [J/kg]
SpecificHeatCapacitySpecificHeat4186.8Of inflowing medium [J/(kg.K)]
External inputs/outputs
BooleanuseMassFlowInputfalse=true, if mass flow input is used instead of parameter MassFlow
BooleanuseTemperatureInputfalse=true, if temperature input is used instead of parameter T

Connectors

TypeNameDescription
input MassFlowRateInputmassFlow[kg/s]
input TemperatureInputt[K]
HeatPort_bq_outflow circuit

Modelica definition

model MassInflow "One-directional inflow of heated mass with enthalpy (heat of solvation)" extends Interfaces.ConditionalMassFlow; extends Interfaces.ConditionalTemperature; Interfaces.HeatPort_b q_out "flow circuit"; parameter Types.SpecificEnergy dH=0 "Enthalpy of incoming substance (i.e. enthalpy of solvation)"; // or 2428344 for water vaporization parameter Types.SpecificHeatCapacity SpecificHeat=4186.8 "Of inflowing medium"; //default heat capacity of water is 1 kcal/(degC.kg) equation // assert(liquidOutflow_>=-Modelica.Constants.eps,"HeatOutstream must have always one forward flow direction! Not 'liquidOutflow_<0'!"); q_out.Q_flow = - q*(temperature*SpecificHeat + dH); end MassInflow;

Automatically generated Tue Sep 15 22:53:52 2015.