FCSys.Conditions.ByConnector.ThermalDiffusive.Pair

Conditions for a pair of ThermalDiffusive connectors

Information

Extends from Modelica.Icons.Package (Icon for standard packages).

Package Content

NameDescription
FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.HeatRate HeatRate Specify heat flow rate (measure temperature)
FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.Temperature Temperature Specify temperature (measure heat flow rate)
FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.Partial Partial Base model for a thermal condition

FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.HeatRate FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.HeatRate

Specify heat flow rate (measure temperature) FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.HeatRate

Information

Extends from Partial (Base model for a thermal condition).

Parameters

TypeNameDefaultDescription
Specification
BooleaninternaltrueUse internal specification
RealExpressionsetredeclare Modelica.Blocks.So…Source of internal specification
Measurement
RealOutputypositive.T - negative.TMeasurement expression

Connectors

TypeNameDescription
input RealInputuValue of specified condition
ThermalDiffusivenegativeNegative connector for thermal diffusion
ThermalDiffusivepositivePositive connector for thermal diffusion
Measurement
output RealOutputyMeasurement expression

Modelica definition

model HeatRate "Specify heat flow rate (measure temperature)"
  extends Partial(final y=positive.T - negative.T);

equation 
  negative.Qdot = u_final;

end HeatRate;

FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.Temperature FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.Temperature

Specify temperature (measure heat flow rate) FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.Temperature

Information

Extends from Partial (Base model for a thermal condition).

Parameters

TypeNameDefaultDescription
Specification
BooleaninternaltrueUse internal specification
RealExpressionsetredeclare Modelica.Blocks.So…Source of internal specification
Measurement
RealOutputynegative.QdotMeasurement expression

Connectors

TypeNameDescription
input RealInputuValue of specified condition
ThermalDiffusivenegativeNegative connector for thermal diffusion
ThermalDiffusivepositivePositive connector for thermal diffusion
Measurement
output RealOutputyMeasurement expression

Modelica definition

model Temperature "Specify temperature (measure heat flow rate)"
  extends Partial(final y=negative.Qdot);

equation 
  positive.T - negative.T = u_final;

end Temperature;

FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.Partial FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.Partial

Base model for a thermal condition FCSys.Conditions.ByConnector.ThermalDiffusive.Pair.Partial

Information

Extends from FCSys.Icons.Conditions.PairShort (Short icon for a two-connector boundary condition).

Parameters

TypeNameDefaultDescription
Specification
BooleaninternaltrueUse internal specification
RealExpressionsetredeclare Modelica.Blocks.So…Source of internal specification
Measurement
RealOutputy Measurement expression

Connectors

TypeNameDescription
input RealInputuValue of specified condition
ThermalDiffusivenegativeNegative connector for thermal diffusion
ThermalDiffusivepositivePositive connector for thermal diffusion
Measurement
output RealOutputyMeasurement expression

Modelica definition

partial model Partial "Base model for a thermal condition"

  extends FCSys.Icons.Conditions.PairShort;

  parameter Boolean internal=true "Use internal specification";

  replaceable Modelica.Blocks.Sources.RealExpression set if internal 
    constrainedby Modelica.Blocks.Interfaces.SO 
    "Source of internal specification";

  Connectors.RealInput u if not internal "Value of specified condition";

  Connectors.RealOutput y "Measurement expression";

  Connectors.ThermalDiffusive negative 
    "Negative connector for thermal diffusion";

protected 
  Connectors.RealOutputInternal u_final "Final value of specified condition";

public 
  Connectors.ThermalDiffusive positive 
    "Positive connector for thermal diffusion";

equation 
  // Conservation of energy
  0 = negative.Qdot + positive.Qdot;
  connect(u, u_final);

  connect(set.y, u_final);

end Partial;