From 8b4595579d0dd24528ce4711e67144a79c76db73 Mon Sep 17 00:00:00 2001 From: AnHeuermann <38031952+AnHeuermann@users.noreply.github.com> Date: Tue, 10 Feb 2026 14:09:54 +0100 Subject: [PATCH] Adding missing bracket in doc string * Adding missing closing bracket in Temperature coefficient doc string in various locations. --- .../Electrical/Analog/Basic/Potentiometer.mo | 2 +- Modelica/Electrical/Analog/Basic/Resistor.mo | 2 +- .../Analog/Basic/VariableResistor.mo | 2 +- Modelica/Electrical/Analog/Lines/M_OLine.mo | 78 +++++++++---------- Modelica/Electrical/Analog/Lines/OLine.mo | 6 +- Modelica/Electrical/Analog/Lines/ULine.mo | 2 +- .../QuasiStatic/Polyphase/Basic/Admittance.mo | 2 +- .../QuasiStatic/Polyphase/Basic/Impedance.mo | 2 +- .../QuasiStatic/Polyphase/Basic/Resistor.mo | 2 +- .../Polyphase/Basic/VariableAdmittance.mo | 2 +- .../Polyphase/Basic/VariableConductor.mo | 2 +- .../Polyphase/Basic/VariableImpedance.mo | 2 +- .../Polyphase/Basic/VariableResistor.mo | 2 +- .../SinglePhase/Basic/Admittance.mo | 2 +- .../SinglePhase/Basic/Impedance.mo | 2 +- .../QuasiStatic/SinglePhase/Basic/Resistor.mo | 2 +- .../SinglePhase/Basic/VariableAdmittance.mo | 2 +- .../SinglePhase/Basic/VariableImpedance.mo | 2 +- .../SinglePhase/Basic/VariableResistor.mo | 2 +- 19 files changed, 59 insertions(+), 59 deletions(-) diff --git a/Modelica/Electrical/Analog/Basic/Potentiometer.mo b/Modelica/Electrical/Analog/Basic/Potentiometer.mo index 0aec7df5e9..e9945e05f6 100644 --- a/Modelica/Electrical/Analog/Basic/Potentiometer.mo +++ b/Modelica/Electrical/Analog/Basic/Potentiometer.mo @@ -4,7 +4,7 @@ model Potentiometer "Adjustable resistor" "Resistance at temperature T_ref"; parameter SI.Temperature T_ref=293.15 "Reference temperature"; parameter SI.LinearTemperatureCoefficient alpha=0 - "Temperature coefficient of resistance (R_actual = R*(1 + alpha*(T_heatPort - T_ref))"; + "Temperature coefficient of resistance (R_actual = R*(1 + alpha*(T_heatPort - T_ref)))"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(T=T_ref); parameter Boolean useRinput=false "Use input for 0M_Transformer model. +M_Transformer model. The following picture shows the schematic of a segment with four single lines (lines=4):

@@ -321,24 +321,24 @@ The following picture shows the schematic of a segment with four single lines (l alt=\"segment.png\">
-

Note that the user can choose whether the optional "refPin" -is active (so that it can be connected to any other pin), -otherwise the internal "ground" is used. +

Note that the user can choose whether the optional "refPin" +is active (so that it can be connected to any other pin), +otherwise the internal "ground" is used. This is done with the checkbox useInternalGround, true by default (for compatibility with previous versions). -Obviously the potential of the internal ground is always zero, +Obviously the potential of the internal ground is always zero, its current can be accessed for plotting.

The complete multi line consists of N segments and an auxiliary segment_last:

-- segment_1 -- segment_2 -- ... -- segment_N -- segment_last --

-

In the picture of the segment can be seen, that a single segment is asymmetrical. -Connecting such asymmetrical segments in a series forces also an asymmetrical multi line. -To design a symmetrical model which is useful for coupling and which guaranties the same pin properties, -in segment_1 only half valued resistors and inductors are used. -The remaining resistors and inductors are at the other end of the line within -the auxiliary segment_last. For the example with 4 lines the schematic of +

In the picture of the segment can be seen, that a single segment is asymmetrical. +Connecting such asymmetrical segments in a series forces also an asymmetrical multi line. +To design a symmetrical model which is useful for coupling and which guaranties the same pin properties, +in segment_1 only half valued resistors and inductors are used. +The remaining resistors and inductors are at the other end of the line within +the auxiliary segment_last. For the example with 4 lines the schematic of segment_last is like this:

@@ -347,19 +347,19 @@ the auxiliary segment_last. For the example with 4 lines the schema

The number of the capacitors and conductors depends on the number of single lines that are used, -because each line is coupled to every other line by both a capacitor and a conductor. -One line consists of at least two segments. -Inside the model M_OLine the model segment is used. -This model represents one segment which is build as described above. -For modelling the inductances and their mutual couplings the model -M_Transformer is used. -To fill the resistance vector, resistance values as many as lines are needed, e.g., -if there are four lines, four resistances are needed. For example for a microelectronic line +because each line is coupled to every other line by both a capacitor and a conductor. +One line consists of at least two segments. +Inside the model M_OLine the model segment is used. +This model represents one segment which is build as described above. +For modelling the inductances and their mutual couplings the model +M_Transformer is used. +To fill the resistance vector, resistance values as many as lines are needed, e.g., +if there are four lines, four resistances are needed. For example for a microelectronic line of 0.1m length, a sensible resistance-vector would be R=[4.76e5, 1.72e5, 1.72e5, 1.72e5].

Filling the matrices of the inductances, capacitances and conductances is a bit more complicated, because those components occur also between two lines and not only (like the resistor) in one line. -The entries of the matrices are given by the user in form of a vector. +The entries of the matrices are given by the user in form of a vector. The vector length dim_vector_lgc is calculated by:

@@ -367,55 +367,55 @@ The vector length dim_vector_lgc is calculated by:

Inside the model a symmetrical inductance matrix, a symmetrical capacitance matrix and -a symmetrical conductance matrix are built out of the entries of the vectors given by the user. +a symmetrical conductance matrix are built out of the entries of the vectors given by the user. The way of building is the same for each matrix, so the approach for filling one of the matrices will be shown in the the example below.

Example
-

The number of lines is assumed to be four. To build the matrix, the model needs the -values from the main diagonal and from the positions that are below the main diagonal. +

The number of lines is assumed to be four. To build the matrix, the model needs the +values from the main diagonal and from the positions that are below the main diagonal. To get the following matrix

\"Matrix\"/
-

the vector with dim_vector_lgc=4*5/2=10 has to appear in the following way: +

the vector with dim_vector_lgc=4*5/2=10 has to appear in the following way: vector = [1, 0.1, 0.2, 0.4, 2, 0.3 0.5, 3, 0.6, 4]

-

For the example of a microelectronic line of 0.1m length, -which is used as default example for the M_OLine model, +

For the example of a microelectronic line of 0.1m length, +which is used as default example for the M_OLine model, a sensible inductance-matrix would be:

\"L\"/
-

For the example of a microelectronic line of 0.1m length, which is used as default example +

For the example of a microelectronic line of 0.1m length, which is used as default example for the M_OLine model, a sensible capacitance-matrix would be:

\"C\"/
-

For the example of a microelectronic line of 0.1m length, which is used as default example +

For the example of a microelectronic line of 0.1m length, which is used as default example for the M_OLine model, a sensible conductance-matrix would be:

\"G\"/
-

The user has the possibility to enable a conditional heatport. If so, the M_OLine +

The user has the possibility to enable a conditional heatport. If so, the M_OLine can be connected to a thermal network. If the parameter alpha is set to a value different than zero, -the M_OLine becomes temperature sensitive due to their resistors which resistances +the M_OLine becomes temperature sensitive due to their resistors which resistances are calculated by

R_actual = R*(1 + alpha*(heatPort.T - T_ref))
-

and conductors calculated by

+

and conductors calculated by

G_actual = G/(1 + alpha*(heatPort.T - T_ref))
diff --git a/Modelica/Electrical/Analog/Lines/OLine.mo b/Modelica/Electrical/Analog/Lines/OLine.mo index 412306e6ca..31899c5e16 100644 --- a/Modelica/Electrical/Analog/Lines/OLine.mo +++ b/Modelica/Electrical/Analog/Lines/OLine.mo @@ -31,9 +31,9 @@ model OLine "Lossy Transmission Line" start=1) "Length of line"; parameter Integer N(final min=1, start=1) "Number of lumped segments"; parameter SI.LinearTemperatureCoefficient alpha_R=0 - "Temperature coefficient of resistance (R_actual = R*(1 + alpha*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (R_actual = R*(1 + alpha*(heatPort.T - T_ref)))"; parameter SI.LinearTemperatureCoefficient alpha_G=0 - "Temperature coefficient of conductance (G_actual = G/(1 + alpha*(heatPort.T - T_ref))"; + "Temperature coefficient of conductance (G_actual = G/(1 + alpha*(heatPort.T - T_ref)))"; parameter Boolean useHeatPort=false "= true, if heatPort is enabled" annotation ( Evaluate=true, @@ -48,7 +48,7 @@ model OLine "Lossy Transmission Line" iconTransformation(extent={{-110,-110},{-90,-90}}))); output SI.Voltage v[N]=G.v "Voltages at the connections of the elements"; output SI.Current i[N+1]=R.i "Currents at the connections of the elements"; - /* + /* The components R[N+1], L[N+1], C[N] and G[N] have been protected in the previous release(s) to avoid excessive size of simulation results. Voltages and currents at the connections are now mirrored to alias variables diff --git a/Modelica/Electrical/Analog/Lines/ULine.mo b/Modelica/Electrical/Analog/Lines/ULine.mo index 0bf91a3290..18c4ded5c2 100644 --- a/Modelica/Electrical/Analog/Lines/ULine.mo +++ b/Modelica/Electrical/Analog/Lines/ULine.mo @@ -24,7 +24,7 @@ model ULine "Lossy RC Line" start=1) "Length of line"; parameter Integer N(final min=1, start=1) "Number of lumped segments"; parameter SI.LinearTemperatureCoefficient alpha=0 - "Temperature coefficient of resistance (R_actual = R*(1 + alpha*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (R_actual = R*(1 + alpha*(heatPort.T - T_ref)))"; parameter Boolean useHeatPort=false "= true, if heatPort is enabled" annotation ( Evaluate=true, diff --git a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Admittance.mo b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Admittance.mo index 1d4e46a56c..7619c7bece 100644 --- a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Admittance.mo +++ b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Admittance.mo @@ -6,7 +6,7 @@ model Admittance "Polyphase linear admittance" parameter SI.Temperature T_ref[m]=fill(293.15, m) "Reference temperatures"; parameter SI.LinearTemperatureCoefficient alpha_ref[m]=zeros(m) - "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Polyphase.Interfaces.ConditionalHeatPort(final mh=m, T=T_ref); parameter Boolean frequencyDependent = false "Consider frequency dependency, if true" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); diff --git a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Impedance.mo b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Impedance.mo index a753d5c571..3a1cb5f634 100644 --- a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Impedance.mo +++ b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Impedance.mo @@ -6,7 +6,7 @@ model Impedance "Polyphase linear impedance" parameter SI.Temperature T_ref[m]=fill(293.15, m) "Reference temperatures"; parameter SI.LinearTemperatureCoefficient alpha_ref[m]=zeros(m) - "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Polyphase.Interfaces.ConditionalHeatPort(final mh=m, T=T_ref); parameter Boolean frequencyDependent = false "Consider frequency dependency, if true" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); diff --git a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Resistor.mo b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Resistor.mo index 7d26280807..970391d9b4 100644 --- a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Resistor.mo +++ b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/Resistor.mo @@ -7,7 +7,7 @@ model Resistor "Polyphase linear resistor" "Reference temperatures"; parameter SI.LinearTemperatureCoefficient alpha_ref[m]= zeros(m) - "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Polyphase.Interfaces.ConditionalHeatPort( final mh=m, T=T_ref); QuasiStatic.SinglePhase.Basic.Resistor resistor[m]( diff --git a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableAdmittance.mo b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableAdmittance.mo index 4239db9991..c6d68de440 100644 --- a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableAdmittance.mo +++ b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableAdmittance.mo @@ -4,7 +4,7 @@ model VariableAdmittance "Polyphase variable admittance" parameter SI.Temperature T_ref[m]=fill(293.15, m) "Reference temperatures"; parameter SI.LinearTemperatureCoefficient alpha_ref[m]=zeros(m) - "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Polyphase.Interfaces.ConditionalHeatPort(final mh=m, T=T_ref); parameter Boolean frequencyDependent = false "Consider frequency dependency, if true" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); diff --git a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableConductor.mo b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableConductor.mo index 23480b90bf..9b2e7649ce 100644 --- a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableConductor.mo +++ b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableConductor.mo @@ -5,7 +5,7 @@ model VariableConductor "Polyphase variable conductor" "Reference temperatures"; parameter SI.LinearTemperatureCoefficient alpha_ref[m]= zeros(m) - "Temperature coefficient of resistance (G_actual = G_ref/(1 + alpha_ref*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (G_actual = G_ref/(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Polyphase.Interfaces.ConditionalHeatPort( final mh=m, T=T_ref); Modelica.Blocks.Interfaces.RealInput G_ref[m](each unit="S") diff --git a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableImpedance.mo b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableImpedance.mo index bf9fa1823a..b366d84970 100644 --- a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableImpedance.mo +++ b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableImpedance.mo @@ -4,7 +4,7 @@ model VariableImpedance "Polyphase variable impedance" parameter SI.Temperature T_ref[m]=fill(293.15, m) "Reference temperatures"; parameter SI.LinearTemperatureCoefficient alpha_ref[m]=zeros(m) - "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Polyphase.Interfaces.ConditionalHeatPort(final mh=m, T=T_ref); parameter Boolean frequencyDependent = false "Consider frequency dependency, if true" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); diff --git a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableResistor.mo b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableResistor.mo index da70323fb7..1e95b3c9f0 100644 --- a/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableResistor.mo +++ b/Modelica/Electrical/QuasiStatic/Polyphase/Basic/VariableResistor.mo @@ -5,7 +5,7 @@ model VariableResistor "Polyphase variable resistor" "Reference temperatures"; parameter SI.LinearTemperatureCoefficient alpha_ref[m]= zeros(m) - "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Polyphase.Interfaces.ConditionalHeatPort( final mh=m, T=T_ref); Modelica.Blocks.Interfaces.RealInput R_ref[m](each unit="Ohm") diff --git a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Admittance.mo b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Admittance.mo index 8acbb0a3cb..ae2bbe01c1 100644 --- a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Admittance.mo +++ b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Admittance.mo @@ -7,7 +7,7 @@ model Admittance "Single-phase linear admittance" import Modelica.ComplexMath.conj; parameter SI.ComplexAdmittance Y_ref(re(start=1),im(start=0)) "Complex admittance G_ref + j*B_ref"; parameter SI.Temperature T_ref=293.15 "Reference temperature"; - parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(T=T_ref); parameter Boolean frequencyDependent = false "Consider frequency dependency, if true" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); diff --git a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Impedance.mo b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Impedance.mo index 88f9db2cfb..37f5ea90d4 100644 --- a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Impedance.mo +++ b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Impedance.mo @@ -7,7 +7,7 @@ model Impedance "Single-phase linear impedance" import Modelica.ComplexMath.conj; parameter SI.ComplexImpedance Z_ref(re(start=1),im(start=0)) "Complex impedance R_ref + j*X_ref"; parameter SI.Temperature T_ref=293.15 "Reference temperature"; - parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(T=T_ref); parameter Boolean frequencyDependent = false "Consider frequency dependency, if true" annotation(Evaluate=true, HideResult=true, choices(checkBox=true)); diff --git a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Resistor.mo b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Resistor.mo index b3609ec83d..1ebc743bbd 100644 --- a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Resistor.mo +++ b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/Resistor.mo @@ -5,7 +5,7 @@ model Resistor "Single-phase linear resistor" import Modelica.ComplexMath.conj; parameter SI.Resistance R_ref(start=1) "Reference resistance at T_ref"; parameter SI.Temperature T_ref=293.15 "Reference temperature"; - parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(T=T_ref); SI.Resistance R_actual "Resistance = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; equation diff --git a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableAdmittance.mo b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableAdmittance.mo index 018de93e4c..303f457e6d 100644 --- a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableAdmittance.mo +++ b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableAdmittance.mo @@ -5,7 +5,7 @@ model VariableAdmittance "Single-phase variable admittance" import Modelica.ComplexMath.imag; import Modelica.ComplexMath.conj; parameter SI.Temperature T_ref=293.15 "Reference temperature"; - parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(T=T_ref); Modelica.ComplexBlocks.Interfaces.ComplexInput Y_ref "Variable complex admittance" annotation (Placement(transformation( diff --git a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableImpedance.mo b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableImpedance.mo index 23820a370c..bd963bfd32 100644 --- a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableImpedance.mo +++ b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableImpedance.mo @@ -5,7 +5,7 @@ model VariableImpedance "Single-phase variable impedance" import Modelica.ComplexMath.imag; import Modelica.ComplexMath.conj; parameter SI.Temperature T_ref=293.15 "Reference temperature"; - parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(T=T_ref); Modelica.ComplexBlocks.Interfaces.ComplexInput Z_ref "Variable complex impedance" annotation (Placement(transformation( diff --git a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableResistor.mo b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableResistor.mo index 0e12af0855..442d800058 100644 --- a/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableResistor.mo +++ b/Modelica/Electrical/QuasiStatic/SinglePhase/Basic/VariableResistor.mo @@ -4,7 +4,7 @@ model VariableResistor "Single-phase variable resistor" import Modelica.ComplexMath.real; import Modelica.ComplexMath.conj; parameter SI.Temperature T_ref=293.15 "Reference temperature"; - parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; + parameter SI.LinearTemperatureCoefficient alpha_ref=0 "Temperature coefficient of resistance (R_actual = R_ref*(1 + alpha_ref*(heatPort.T - T_ref)))"; extends Modelica.Electrical.Analog.Interfaces.ConditionalHeatPort(T=T_ref); SI.Resistance R_actual "Resistance = R_ref*(1 + alpha_ref*(heatPort.T - T_ref))"; Modelica.Blocks.Interfaces.RealInput R_ref(unit="Ohm") "Variable resistance"