- Index
- » Users
- » nidhiuppal
- » Profile
Posts
Posts
model pipe2
import Modelica.Fluid;
replaceable package Medium =
Modelica.Media.Water.ConstantPropertyLiquidWater constrainedby
Modelica.Media.Interfaces.PartialMedium "Medium in the component"
annotation (choicesAllMatching = true);
Modelica.Fluid.Sources.FixedBoundary boundary(
redeclare package Medium = Medium ,nPorts = 1) annotation(
Placement(visible = true, transformation(origin = {-70, 10}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Pipes.StaticPipe pipe(
redeclare package Medium = Medium, diameter = 0.025, length = 50) annotation(
Placement(visible = true, transformation(origin = {-8, 10}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Vessels.OpenTank tank(crossArea = 1, height = 12) annotation(
Placement(visible = true, transformation(origin = {66, 12}, extent = {{-20, -20}, {20, 20}}, rotation = 0)));
inner Modelica.Fluid.System system annotation(
Placement(visible = true, transformation(origin = {-72, 76}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
connect(boundary.ports[1], pipe.port_a) annotation(
Line(points = {{-60, 10}, {-18, 10}, {-18, 10}, {-18, 10}}, color = {0, 127, 255}));
connect(pipe.port_b, tank.ports[1]) annotation(
Line(points = {{2, 10}, {24, 10}, {24, -30}, {66, -30}, {66, -8}, {66, -8}}, color = {0, 127, 255}));
annotation(
uses(Modelica(version = "3.2.3")));
end pipe2;
ERROR : 17:05:23 Translation Error
[C:/OM114/OM64bit/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo: 1484:9-1484:67]: Internal error NFCeval.evalLogicBinaryOr failed to evaluate ‘tank.Medium.singleState or tank.energyDynamics == Modelica.Fluid.Types.Dynamics.SteadyState‘
- Index
- » Users
- » nidhiuppal
- » Profile