.ThermofluidStream.HeatExchangers.Internal.calculateEfficiency

Information

Calculates heat exchanger efficiency

Interface

function calculateEfficiency
  extends Modelica.Icons.Function;
  replaceable package MediumA = Media.myMedia.Interfaces.PartialMedium "Medium model A";
  replaceable package MediumB = Media.myMedia.Interfaces.PartialMedium "Medium model B";
  input MediumA.ThermodynamicState state_A_in "Inlet A thermodynamic state";
  input MediumB.ThermodynamicState state_B_in "Inlet B thermodynamic state";
  input MediumA.ThermodynamicState state_A_out "Outlet A thermodynamic state";
  input MediumB.ThermodynamicState state_B_out "Outlet B thermodynamic state";
  input SI.MassFlowRate m_flow_A "Mass flow rate of medium A";
  input SI.MassFlowRate m_flow_B "Mass flow rate of medium B";
  input SI.Power Q_flow "Heat flow rate";
  output Real efficiency(unit = "1") = 0 "Heat exchanger efficiency";
end calculateEfficiency;

Contents

NameDescription
 MediumAMedium model A
 MediumBMedium model B

Generated at 2024-11-23T19:25:52Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos