modelModularExpansionValvesMassFlowRate
Simple model to check modular expansion valves models with fixed mass
flow rate
Extends from Modelica.Icons.Example (Icon for runnable examples).
Information
This is a simple example model to test expansion valves presented in AixLib.Fluid.Actuators.Valves.ExpansionValves.ModularExpansionValves. Therefore, both the valve's inlet and outlet conditions are prescribed. The inlet conditions are prescribed in terms of mass flow rate and temperature; the outlet conditions are prescribed in terms of pressure and temperature. Furthermore, dummy signals are provided for the following data bus signals:
- Set signal for internal controllers.
- Manipulated signals given externally.
- Measured values of controlled variables.
Then, both the internal controllers and the manipulated signals given externaly can be tested by changing the controller mode.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nVal | 3 | Number of valves - each valve will be connected to an individual port_b |
| Modelica.Units.SI.AbsolutePressure | pInl | Medium.pressure(Medium.setBubbleState(Medium.setSat_T(TInl + 5))) | Current pressure at inlet conditions |
| Modelica.Units.SI.Temperature | TInl | 348.15 | Current temperature at inlet conditions |
| Modelica.Units.SI.AbsolutePressure | pOut | Medium.pressure(Medium.setDewState(Medium.setSat_T(TOut))) | Current set point of the compressor's outlet pressure |
| Modelica.Units.SI.Temperature | TOut | 278.15 | Current temperature at outlet conditions |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Controls.Interfaces.ModularHeatPumpControlBus | dataBus | Data bus used to enable communication with dummy signals |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Sources.MassFlowSource_T | source | Source of constant mass flow and temperature | |
| ModularExpansionValves.ModularExpansionValvesSensors | modVal | Modular expansion valves in parallel | |
| Interfaces.PortsAThroughPortB | portsAThroughPortB | Model to connect each valves' outlet pipe with each other | |
| AixLib.Fluid.Sources.Boundary_pT | sink | Sink of constant pressure and temperature | |
| Modelica.Blocks.Routing.Replicator | repValOpe | Replicating the valves' opening signal | |
| Modelica.Blocks.Sources.Sine | valOpe | Input signal to prediscribe expansion valve's opening | |
| Modelica.Blocks.Routing.Replicator | repInt | Replicating the internal set signal | |
| Modelica.Blocks.Routing.Replicator | repCur | Replicating the actual value of the manipulated variables | |
| Modelica.Blocks.Sources.Ramp | ramCur | Ramp to fake actual value of the controlled variables |
Contents
| Name | Description |
|---|---|
| Current medium of the compressor |
Revisions
- October 17, 2017, by Mirko Engelpracht, Christian Vering:
First implementation (see issue 457).