model GeneralHeatFlowToTemperatureAdaptor "Signal adaptor for a HeatTransfer port with temperature and derivative of temperature as outputs and heat flow as input (especially useful for FMUs)"
extends Modelica.Blocks.Interfaces.Adaptors.FlowToPotentialAdaptor(final Name_p = "T", final Name_pder = "dT", final Name_pder2 = "d2T", final Name_f = "Q", final Name_fder = "der(Q)", final Name_fder2 = "der2(Q)", final use_pder2 = false, final use_fder = false, final use_fder2 = false, p(unit = "K", displayUnit = "degC"), final pder(unit = "K/s"), final pder2(unit = "K/s2"), final f(unit = "W"), final fder(unit = "W/s"), final fder2(unit = "W/s2"));
Modelica.Thermal.HeatTransfer.Interfaces.HeatPort_a heatPort annotation (Placement(transformation(extent = {
{-30, -10},
{-10, 10}})));
equation
u = heatPort.Q_flow "input = flow = heat flow";
y = heatPort.T "output = potential = temperature";
annotation (
defaultComponentName = "heatFlowToTemperatureAdaptor",
Documentation(info = "<html>\n<p>\nAdaptor between a heatport connector and a signal representation of the flange.\nThis component is used to provide a pure signal interface around a HeatTransfer model\nand export this model in form of an input/output block,\nespecially as FMU (<a href=\"https://www.fmi-standard.org\">Functional Mock-up Unit</a>).\nExamples of the usage of this adaptor are provided in\n<a href=\"modelica://Modelica.Thermal.HeatTransfer.Examples.GenerationOfFMUs\">HeatTransfer.Examples.GenerationOfFMUs</a>.\nThis adaptor has heatflow as input and temperature and derivative of temperature as output signals.\n</p>\n</html>"),
Icon(graphics = {
Rectangle(
extent = {
{-20, 100},
{20, -100}},
lineColor = {191, 0, 0},
radius = 10,
lineThickness = 0.5)}));
end GeneralHeatFlowToTemperatureAdaptor;