Skip to content

Commit

Permalink
Update Modelica/Fluid/Vessels.mo
Browse files Browse the repository at this point in the history
Removed explicit reference to value in assert string

Co-authored-by: Thomas Beutlich <[email protected]>
  • Loading branch information
casella and beutlich authored Feb 24, 2025
1 parent beec8ae commit 693d127
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modelica/Fluid/Vessels.mo
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ of the modeller. Increase nPorts to add an additional port.
end for;
// Check for correct solution
assert(fluidLevel <= fluidLevel_max, "Vessel is overflowing (fluidLevel > fluidLevel_max = " + String(fluidLevel) + ")");
assert(fluidLevel > 0, "Fluid level (= " + String(fluidLevel) + ") is too small, the tank cannot be completely empty otherwise the energy balance equation becomes singular.");
assert(fluidLevel > 0, "Fluid level is too small, the tank cannot be completely empty otherwise the energy balance equation becomes singular.");

// Boundary conditions

Expand Down

0 comments on commit 693d127

Please sign in to comment.