WOLFRAM SYSTEM MODELER

InverseParameterization

Demonstrates the parameterization of a pump and a pipe for given nominal values

Diagram

Wolfram Language

In[1]:=
SystemModel["Modelica.Fluid.Examples.InverseParameterization"]
Out[1]:=

Information

This information is part of the Modelica Standard Library maintained by the Modelica Association.

A pump, an orifice and two pipes are parameterized with simple nominal values. Note that pipe1 and pipe2 use the flowModel NominalTurbulentFlow and NominalLaminarFlow, respectively, which do not require the specification of geometry data. Instead pathLengths_nominal are obtained internally for given nominal pressure loss and nominal mass flow rate.

The pump controls a pressure ramp from 1.9 bar to 2.1 bar. This causes an appropriate ramp on the mass flow rate of the orifice, which has a boundary pressure of 1 bar. Flow reversal occurs in the pipes, which have a boundary pressure of 2 bar. The Command plotResults can be used to see the pump speed N, which is controlled ideally to obtain the pressure ramp. Moreover the internally obtained nominal design values that fulfill the nominal operating conditions as well as the Reynolds number, m_flows_turbulent, and dps_fg_turbulent are plotted.

Note that the large value for pipe2.flowModel.pathLengths_nominal[1] is only meaningful under the made assumption of laminar flow, which is hardly possible for a real pipe.

Once the geometries have been designed, the NominalTurbulentPipeFlow correlations can easily be replaced with TurbulentPipeFlow or DetailedPipeFlow correlations. Similarly the ControlledPump can be replaced with a PrescribedPump to investigate a real controller or with a Pump with rotational shaft to investigate inertia effects.

The model has the parameter eps_m_flow_turbulent that can be used to change the flow through pipe1 from fully turbulent (eps_m_flow_turbulent=0) to fully laminar (eps_m_flow_turbulent>actual flow). Invoke plotResults and see pipe1.port_a.m_flow. Relating the actual flow to pipe1.flowModel.m_flows_turbulent[1], it can be seen that eps_m_flow_turbulent=0.1 is an appropriate choice for the given pipe diameter.

InverseParametrization.png

Parameters (1)

eps_m_flow_turbulent

Value: 0.1

Type: Real

Description: Turbulent flow |m_flow| >= eps_m_flow_nominal*m_flow_nominal

Components (10)

source

Type: Boundary_pT

Description: Boundary with prescribed pressure, temperature, composition and trace substances

pump

Type: ControlledPump

Description: Centrifugal pump with ideally controlled mass flow rate

orifice

Type: SimpleGenericOrifice

Description: Simple generic orifice defined by pressure loss coefficient and diameter (only for flow from port_a to port_b)

sink

Type: Boundary_pT

Description: Boundary with prescribed pressure, temperature, composition and trace substances

system

Type: System

Description: System properties and default values (ambient, flow direction, initialization)

pipe1

Type: StaticPipe

Description: Basic pipe flow model without storage of mass or energy

sink1

Type: Boundary_pT

Description: Boundary with prescribed pressure, temperature, composition and trace substances

p_set

Type: Ramp

Description: Generate ramp signal

pipe2

Type: StaticPipe

Description: Basic pipe flow model without storage of mass or energy

sink2

Type: Boundary_pT

Description: Boundary with prescribed pressure, temperature, composition and trace substances