Skip to content

Commit

Permalink
Merge pull request #16 from maltelenz/bugfix/redeclare-parsing-descri…
Browse files Browse the repository at this point in the history
…ption

Fix invalid position of description string in redeclare/constrainedby.
  • Loading branch information
casella authored Oct 5, 2022
2 parents 856cfa1 + 46a5982 commit d028b9e
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions ThermoPower/Water.mo
Original file line number Diff line number Diff line change
Expand Up @@ -1468,9 +1468,8 @@ outlet is ignored; use <t>Pump</t> models if this has to be taken into account c
model Flow1DFV2ph
"1-dimensional fluid flow model for water/steam (finite volumes, 2-phase)"
extends BaseClasses.Flow1DBase(redeclare replaceable package Medium =
StandardWater constrainedby
Modelica.Media.Interfaces.PartialTwoPhaseMedium
"Medium model",
StandardWater "Medium model" constrainedby
Modelica.Media.Interfaces.PartialTwoPhaseMedium,
FluidPhaseStart=Choices.FluidPhase.FluidPhases.TwoPhases);
replaceable model HeatTransfer = Thermal.HeatTransferFV.IdealHeatTransfer
constrainedby ThermoPower.Thermal.BaseClasses.DistributedHeatTransferFV
Expand Down Expand Up @@ -2356,9 +2355,8 @@ enthalpy between the nodes; this requires the availability of the time derivativ
"1-dimensional fluid flow model for water/steam (finite elements)"
extends BaseClasses.Flow1DBase(
Nw = N,
redeclare replaceable package Medium = StandardWater
constrainedby Modelica.Media.Interfaces.PartialTwoPhaseMedium
"Medium model");
redeclare replaceable package Medium = StandardWater "Medium model"
constrainedby Modelica.Media.Interfaces.PartialTwoPhaseMedium);
replaceable model HeatTransfer =
Thermal.HeatTransferFEM.IdealHeatTransfer
constrainedby ThermoPower.Thermal.BaseClasses.DistributedHeatTransferFEM
Expand Down Expand Up @@ -6717,9 +6715,8 @@ This model is not yet complete
"1-dimensional fluid flow model for water/steam (finite volumes, 2-phase)"
extends Modelica.Icons.ObsoleteModel;
extends BaseClasses.Flow1DBase(redeclare replaceable package Medium =
StandardWater constrainedby
Modelica.Media.Interfaces.PartialTwoPhaseMedium
"Medium model",
StandardWater "Medium model" constrainedby
Modelica.Media.Interfaces.PartialTwoPhaseMedium,
FluidPhaseStart=Choices.FluidPhase.FluidPhases.TwoPhases);
replaceable ThermoPower.Thermal.DHT wall(N=N) annotation (Dialog(enable=
false), Placement(transformation(extent={{-40,40},{40,60}},
Expand Down Expand Up @@ -7928,9 +7925,8 @@ enthalpy between the nodes; this requires the availability of the time derivativ
import ThermoPower.Choices.Flow1D.FFtypes;
import ThermoPower.Choices.Flow1D.HCtypes;
extends BaseClasses.Flow1DBase(redeclare replaceable package Medium =
StandardWater constrainedby
Modelica.Media.Interfaces.PartialTwoPhaseMedium
"Medium model");
StandardWater "Medium model" constrainedby
Modelica.Media.Interfaces.PartialTwoPhaseMedium);
replaceable ThermoPower.Thermal.DHT wall(N=N) annotation (Dialog(enable=
false), Placement(transformation(extent={{-40,40},{40,60}},
rotation=0)));
Expand Down

0 comments on commit d028b9e

Please sign in to comment.