model VariableConductor "Multiphase variable conductor"
extends Interfaces.TwoPlug;
parameter Modelica.SIunits.Temperature T_ref[m] = fill(293.15, m) "Reference temperatures";
parameter Modelica.SIunits.LinearTemperatureCoefficient alpha_ref[m] = zeros(m) "Temperature coefficient of resistance (G_actual = G_ref/(1 + alpha_ref*(heatPort.T - T_ref))";
extends Modelica.Electrical.MultiPhase.Interfaces.ConditionalHeatPort(final mh = m, T = T_ref);
Modelica.Blocks.Interfaces.RealInput G_ref[m](each unit = "S") "Variable conductance"
annotation (Placement(
transformation(
origin = {0, 120},
extent = {
{-20, -20},
{20, 20}},
rotation = 270),
iconTransformation(
extent = {
{-20, -20},
{20, 20}},
rotation = 270,
origin = {0, 120})));
QuasiStationary.SinglePhase.Basic.VariableConductor variableResistor[m](final T_ref = T_ref, final alpha_ref = alpha_ref, each final useHeatPort = useHeatPort, final T = T) annotation (Placement(transformation(extent = {
{-10, -10},
{10, 10}})));
equation
connect(G_ref,variableResistor.G_ref) annotation (Line(
points = {
{0, 120},
{0, 120},
{0, 12},
{0, 12}},
color = {0, 0, 127}));
connect(variableResistor.heatPort,heatPort) annotation (Line(
points = {
{0, -10},
{0, -32.5},
{0, -32.5},
{0, -55},
{0, -55},
{0, -100}},
color = {191, 0, 0}));
connect(variableResistor.pin_n,plugToPins_n.pin_n) annotation (Line(
points = {
{10, 0},
{39, 0},
{39, 0},
{68, 0}},
color = {85, 170, 255}));
connect(variableResistor.pin_p,plugToPins_p.pin_p) annotation (Line(
points = {
{-10, 0},
{-24.5, 0},
{-24.5, 0},
{-39, 0},
{-39, 0},
{-68, 0}},
color = {85, 170, 255}));
annotation (
defaultComponentName = "conductor",
Icon(graphics = {
Line(
points = {
{60, 0},
{90, 0}},
color = {85, 170, 255}),
Line(
points = {
{-90, 0},
{-60, 0}},
color = {85, 170, 255}),
Rectangle(
extent = {
{-70, 30},
{70, -30}},
lineColor = {85, 170, 255},
fillColor = {255, 255, 255},
fillPattern = FillPattern.Solid),
Text(
extent = {
{-150, 90},
{150, 50}},
textString = "%name",
lineColor = {0, 0, 255}),
Text(
extent = {
{150, -80},
{-150, -40}},
textString = "m=%m")}),
Documentation(info = "<html>\n<p>\nThe linear resistors connect the complex currents <code><u>i</u></code> with the complex\nvoltages <code><u>v</u></code> by <code><u>v</u>*G = <u>i</u></code>,\nusing <code>m</code> <a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.VariableConductor\">single phase variable Conductors</a>.\nThe conductances <code>G</code> are given as <code>m</code> input signals.\n</p>\n\n<p>\nThe conductor model also has <code>m</code> optional\n<a href=\"modelica://Modelica.Electrical.MultiPhase.Interfaces.ConditionalHeatPort\">conditional heat ports</a>.\nA linear temperature dependency of the conductances is also taken into account.\n</p>\n\n<h4>See also</h4>\n<p>\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.SinglePhase.Basic.VariableConductor\">VariableConductor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.Resistor\">Resistor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.Conductor\">Conductor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.Capacitor\">Capacitor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.Inductor\">Inductor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.Impedance\">Impedance</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.Admittance\">Admittance</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.VariableResistor\">Variable resistor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.VariableCapacitor\">Variable capacitor</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.VariableInductor\">Variable inductor</a>\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.VariableImpedance\">Variable impedance</a>,\n<a href=\"modelica://Modelica.Electrical.QuasiStationary.MultiPhase.Basic.VariableAdmittance\">Variable admittance</a>\n</p>\n</html>"));
end VariableConductor;