- Index
- » Users
- » ouajih
- » Profile
Posts
Posts
Hi,
model Test123
Modelica.Fluid.Pipes.StaticPipe pipe(redeclare package Medium = Modelica.Media.Water.ConstantPropertyLiquidWater, length = 5, diameter = 0.1, height_ab = -1) annotation(Placement(visible = true, transformation(origin = {-20,0}, extent = {{-10,-10},{10,10}}, rotation = 0)));
Modelica.Fluid.Vessels.OpenTank tank(redeclare package Medium = Modelica.Media.Water.ConstantPropertyLiquidWater, nPorts = 1, height = 10, crossArea = 1, level_start = 1, portsData = {Modelica.Fluid.Vessels.BaseClasses.VesselPortsData(diameter = 0.1)}) annotation(Placement(visible = true, transformation(origin = {-60,40}, extent = {{-10,-10},{10,10}}, rotation = 0)));
Modelica.Fluid.Vessels.OpenTank opentank1(redeclare package Medium = Modelica.Media.Water.ConstantPropertyLiquidWater, height = 10, crossArea = 2, nPorts = 1, portsData = {Modelica.Fluid.Vessels.BaseClasses.VesselPortsData(diameter = 0.1)}, level_start = 1e-010) annotation(Placement(visible = true, transformation(origin = {40,40}, extent = {{-10,-10},{10,10}}, rotation = 0)));
inner Modelica.Fluid.System system annotation(Placement(visible = true, transformation(origin = {-60,-60}, extent = {{-10,-10},{10,10}}, rotation = 0)));
equation
connect(tank.ports[1],pipe.port_a) annotation(Line(points = {{-60,30},{-60.4348,30},{-60.4348,-1.30435},{-30,-1.30435},{-30,-1.30435}}));
connect(pipe.port_b,opentank1.ports[1]) annotation(Line(points = {{-10,0},{40.4348,0},{40.4348,30},{40.4348,30}}));
annotation(Icon(coordinateSystem(extent = {{-100,-100},{100,100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2,2})), Diagram(coordinateSystem(extent = {{-100,-100},{100,100}}, preserveAspectRatio = true, initialScale = 0.1, grid = {2,2})));
end Test123;
it works fine now.
Hi,
I have a problem for real-time simulation with OpenModelica1.9.1Beta2.
I exported for (. FMU) fluid model, using the dll is trying to change the settings (eg set the fluid level). By modifying an outdoor application, it does not take into account the new value for recalculate.
Is that the problem comes from the FMU1.0 version?
If this is the case, would it be possible to replace in OpenModelica1.9.1Beta2 by FMU2.0 then recompile everything to do a real time after?
Thank you for your answers.
- Index
- » Users
- » ouajih
- » Profile