- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OMPython
OMPython
OMPython
Hello everybody, I have this simple example:
model Ex
inner Modelica.Fluid.System system annotation(
Placement(visible = true, transformation(origin = {-172, 90}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Sources.MassFlowSource_T boundary(redeclare package Medium =
Modelica.Media.Water.StandardWater, m_flow = 10, nPorts = 1) annotation(
Placement(visible = true, transformation(origin = {-130, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
Modelica.Fluid.Sources.FixedBoundary boundary1(redeclare package Medium =
Modelica.Media.Water.StandardWater, nPorts = 1) annotation(
Placement(visible = true, transformation(origin = {4, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 180)));
Modelica.Fluid.Fittings.SimpleGenericOrifice orifice(redeclare package Medium =
Modelica.Media.Water.StandardWater, diameter = 0.2, dp_nominal = 50000, m_flow_nominal = 10, use_zeta = false) annotation(
Placement(visible = true, transformation(origin = {-64, 0}, extent = {{-10, -10}, {10, 10}}, rotation = 0)));
equation
connect(boundary.ports[1], orifice.port_a) annotation(
Line(points = {{-120, 0}, {-74, 0}, {-74, 0}, {-74, 0}}, color = {0, 127, 255}));
connect(orifice.port_b, boundary1.ports[1]) annotation(
Line(points = {{-54, 0}, {-6, 0}, {-6, 0}, {-6, 0}}, color = {0, 127, 255}));
annotation(
uses(Modelica(version = "3.2.3")));
end Ex;
I'd like to simulate this model in OMPython: how can I do? I downloaded OMPython and imported it with import OMPython. Help me, thanks.
- Index
- » Usage and Applications
- » OpenModelica Usage and Applications
- » OMPython