Translational Mechanical Converter (2P)
|
Page in progress. |
The interface between the networks of two-phase fluid and translational mechanics.
blockType: AcausalFoundation.TwoPhaseFluid.Elements.TranslationalMechanicalConverter
Path in the library:
|
Description
Block Translational Mechanical Converter (2P) simulates the interface between a two-phase fluid network and a translational motion mechanics network. The block converts the pressure of a two-phase liquid into mechanical force and vice versa.
This unit allows you to simulate a linear actuator driven by a two-phase fluid. However, it does not take into account the mass, friction, or rigid stops that are commonly used in linear actuators. You can simulate these effects separately using blocks. Mass, Translational Friction and Translational Hard Stop.
Port A is an opening through which liquid enters and exits the transducer. Ports C and R represent the body and stem of the converter, respectively. The H port is a wall through which the converter exchanges heat with the environment.
Direction of force
The direction of the force depends on the mechanical orientation of the transducer. If for the parameter Mechanical orientation the value is set Pressure at A causes positive displacement of R relative to C, then the positive flow through the inlet tends to move the rod in a positive direction relative to the transducer housing.
Positive displacement direction
If for the parameter Mechanical orientation the value is set Pressure at A causes negative displacement of R relative to C, then the positive mass flow through the inlet tends to move the rod in a negative direction relative to the transducer housing.
Negative displacement direction
The flow resistance between the A port and the internal space of the converter is assumed to be negligible. The pressure loss between them is approximately zero. Therefore, the pressure in port A is equal to the pressure in the converter:
where
-
— pressure in port A;
-
— pressure in the transducer.
Similarly, the thermal resistance between the H port and the interior of the converter is considered negligible. The temperature gradient between them is approximately zero. Therefore, the temperature in port H is equal to the temperature in the converter:
where
-
— port temperature H;
-
— temperature in the converter.
Liquid volume
The volume of liquid in the converter is the sum of the dead volume and the volume of the displaced liquid. Dead volume is the amount of liquid remaining in the transducer when the stem is offset to zero. This volume allows you to simulate the effects of dynamic compressibility and heat capacity, even when the rod is in the zero position.
The volume of displaced liquid is the amount of liquid added to the transducer as a result of the displacement of the rod. This volume increases as the stem is displaced. The total volume in the converter, depending on the displacement of the rod, is
where
-
— the total volume of liquid in the converter;
-
— dead volume of the converter;
-
is the cross—sectional area of the transducer, assumed to be equal to the cross-sectional area of the inlet;
-
— displacement of the stem;
-
— coefficient of mechanical orientation. If the parameter value is Mechanical orientation
Pressure at A causes positive displacement of R relative to CThen . IfPressure at A causes negative displacement of R relative to CThen .
The displacement of the stem is zero when the volume of the liquid is equal to the dead volume. Then, depending on the value of the parameter Mechanical orientation:
-
If
Pressure at A causes positive displacement of R relative to C, the displacement of the stem increases when the volume of the liquid increases compared to the dead volume. -
If
Pressure at A causes negative displacement of R relative to C, the displacement of the stem decreases when the volume of the liquid increases compared to the dead volume.
The balance of power
At equilibrium, the internal pressure in the transducer counteracts the external pressure of the environment and the force exerted by the mechanical network on the rod. This force is the reverse of the force acting on the fluid network. Thus, the balance of forces in the converter is as follows
where
-
— ambient pressure outside the transducer;
-
— the magnitude of the force exerted by the fluid network on the rod.
Energy conservation
The total energy in the converter can vary due to the energy flow through the inlet, the heat flow through the wall of the converter, and the work performed by the liquid network on the mechanical network. The energy flow, defined by the energy conservation equation, is
where
-
— total energy of the liquid in the converter;
-
— energy flow to the converter via port A;
-
— the heat flow entering the converter through the H port.
If we assume that the kinetic energy of the liquid in the converter is negligible, then the total energy of the liquid decreases to:
where
-
— the mass of the liquid in the converter;
-
— the specific internal energy of the liquid in the converter.
Conservation of mass
The mass of the liquid in the converter can change due to the flow through the inlet represented by port A. Thus, the mass flow rate, determined by the equation of conservation of mass, is
where — the mass flow rate of the liquid in the converter through port A.
A change in the mass of the liquid may be accompanied by a change in the volume of the liquid due to the movement of the stem. It may also be accompanied by a change in the density of the liquid due to changes in pressure or specific internal energy in the converter. Then the mass flow rate in the converter is
where
-
— partial derivative of density with respect to pressure at constant specific internal energy;
-
— partial derivative of density with respect to specific internal energy at constant pressure;
-
— the specific volume of liquid in the converter.
The partial derivatives of the density vary between regions using a cubic polynomial function. With a degree of dryness in the range 0–0.1 This function ensures a smooth change of derivatives between the regions of the supercooled liquid and the two-phase mixture. With a degree of dryness in the range 0.9–1 it provides a smooth change of derivatives between the regions of the two-phase mixture and superheated steam.
The smoothed partial derivatives of density introduce undesirable numerical errors into the initial equation of conservation of mass. To correct these errors, the block adds a correction term.
where
-
— correction member;
-
— The phase transition time constant is the characteristic duration of the phase transition event. This constant ensures that phase transitions do not occur instantaneously, effectively introducing a time delay whenever they occur.
The final form of the mass conservation equation:
The unit uses this equation to calculate the internal pressure in the transducer, taking into account the mass flow through the inlet.
Assumptions and limitations
-
The walls of the converter are rigid. They do not deform under pressure.
-
The flow resistance between the A port and the internal space of the converter is negligible. The pressure is the same in port A and in the internal space of the converter.
-
The thermal resistance between the H port and the internal space of the converter is negligible. The temperature in the H port and in the internal space of the converter are the same.
-
The stem is perfectly sealed. There are no liquid leaks between the rod and the housing.
-
Mechanical effects such as rigid stops, inertia and friction are not taken into account.
Ports
Conserving
#
A
—
two-phase liquid inlet
two-phase liquid
Details
The port of the two-phase liquid corresponds to the input of the converter.
| Program usage name |
|
#
C
—
housing
translational mechanics
Details
Mechanical translational port, corresponds to the body of the converter.
| Program usage name |
|
#
R
—
stock
translational mechanics
Details
Mechanical translational port, corresponds to the stem.
| Program usage name |
|
#
H
—
thermal port
heat
Details
Thermal port, which is the surface of the converter through which heat exchange takes place.
| Program usage name |
|
Parameters
Main
#
Mechanical orientation —
orientation of the converter
Pressure at A causes positive displacement of R relative to C | Pressure at A causes negative displacement of R relative to C
Details
Sets the orientation of the movement of the mechanical part in relation to the change in the volume of the liquid:
-
Pressure at A causes positive displacement of R relative to C— an increase in the volume of liquid leads to a positive displacement of port R relative to port C. -
Pressure at A causes negative displacement of R relative to C— an increase in the volume of liquid leads to a negative displacement of port R relative to port C.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial interface displacement —
the initial offset of port R relative to port C
m | um | mm | cm | km | in | ft | yd | mi | nmi
Details
The initial offset of port R relative to port C. Meaning 0 corresponds to an initial volume of liquid equal to Dead volume.
-
If Mechanical orientation it matters
Pressure at A causes positive displacement of R relative to C, the parameter value must be greater than or equal to0. -
If Mechanical orientation it matters
Pressure at A causes negative displacement of R relative to C, the parameter value must be less than or equal to0.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Interface cross-sectional area —
the area over which the liquid exerts pressure to create a translational force
m^2 | um^2 | mm^2 | cm^2 | km^2 | in^2 | ft^2 | yd^2 | mi^2 | ha | ac
Details
The area perpendicular to the flow direction at the inlet to the converter. This area does not have to be the same as the entrance area. Pressure losses caused by changes in the cross-sectional area of the flow inside the transducer are ignored.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Dead volume —
liquid volume at zero stem displacement
m^3 | um^3 | mm^3 | cm^3 | km^3 | ml | l | gal | igal | in^3 | ft^3 | yd^3 | mi^3
Details
The volume of liquid at the displacement of the rod, equal to 0. The dead volume allows the unit to account for the accumulation of mass and energy in the converter even with zero stem displacement.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Cross-sectional area at port A —
the area normal to the flow section at the inlet to the converter
m^2 | um^2 | mm^2 | cm^2 | km^2 | in^2 | ft^2 | yd^2 | mi^2 | ha | ac
Details
The cross-sectional area of the transducer inlet, indicated by port A. This area does not necessarily have to match the cross-sectional area of the transducer. Pressure losses caused by a change in the cross-sectional area inside the transducer are ignored.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Environment pressure specification —
the method of setting the ambient pressure
Atmospheric pressure | Specified pressure
Details
Sets the method for setting the ambient pressure:
-
Atmospheric pressure— atmospheric pressure; -
Specified pressure— the value set by the parameter Environment pressure.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Environment pressure —
pressure outside the transducer
Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg
Details
Absolute ambient pressure. The ambient pressure counteracts the internal pressure of the transducer and affects the movement of the transducer rod.
Dependencies
To use this parameter, set for the parameter Environment pressure specification meaning Specified pressure.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
Effects and Initial Conditions
#
Initial fluid energy specification —
a thermodynamic variable used to determine initial conditions
Temperature | Vapor quality | Vapor void fraction | Specific enthalpy | Specific internal energy
Details
A thermodynamic variable used to determine the initial conditions of a block.
Parameter value Initial fluid energy specification limits the available initial states for a two-phase liquid. When the value is Initial fluid energy specification set as follows:
-
Temperature— specify the initial state, which is a supercooled liquid or superheated steam. It is not possible to specify a mixture of liquid and steam, since the temperature is constant in the region of the mixture of liquid and steam. -
Vapor quality— specify the initial state, which is a mixture of liquid and steam. You cannot specify a supercooled liquid or superheated steam, since the mass fraction is0and1accordingly, in the entire region. In addition, the unit limits the pressure to a value below the critical pressure. -
Vapor void fraction— specify the initial state, which is a mixture of liquid and steam. You cannot specify a supercooled liquid or superheated steam, since the mass fraction is0and1accordingly, in the entire region. In addition, the unit limits the pressure to a value below the critical pressure. -
Specific enthalpy— specify the specific enthalpy of the liquid. The block does not limit the initial state. -
Specific internal energy— specify the specific internal energy of the liquid. The block does not limit the initial state.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial pressure —
absolute pressure at the beginning of the simulation
Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg
Details
The pressure of the liquid in the transducer at the beginning of the simulation, set relative to absolute zero.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial temperature —
absolute temperature at the beginning of the simulation
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR
Details
The temperature of the liquid in the converter at the beginning of the simulation, set relative to absolute zero.
Dependencies
To use this parameter, set for the parameter Initial fluid energy specification meaning Temperature.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Phase change time constant —
the characteristic duration of the phase transition event
s | ns | us | ms | min | hr | d
Details
The characteristic time to reach equilibrium during the phase transition in the converter. This constant introduces a time delay in the transition between phases. Increase this parameter to decrease the speed of the phase transition, or decrease it to increase the speed.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
# Initial vapor quality — mass fraction of steam at the beginning of the simulation
Details
The mass fraction of steam in the converter at the beginning of the simulation.
Dependencies
To use this parameter, set for the parameter Initial fluid energy specification meaning Vapor quality.
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
# Initial vapor void fraction — volume fraction of steam at the beginning of the simulation
Details
The volume fraction of steam in the converter at the beginning of the simulation.
Dependencies
To use this parameter, set for the parameter Initial fluid energy specification meaning Vapor void fraction.
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial specific enthalpy —
specific enthalpy at the beginning of the simulation
J/kg | kJ/kg | cal/kg | kcal/kg | mm^2/s^2 | cm^2/s^2 | m^2/s^2 | km^2/s^2 | km^2/hr^2 | in^2/s^2 | ft^2/s^2 | ft^2/min^2 | mi^2/s^2 | mi^2/hr^2 | Pa/(kg/m^3) | psi/(lbm/ft^3) | bar/(kg/m^3)
Details
The specific enthalpy of the liquid in the converter at the beginning of the simulation.
Dependencies
To use this parameter, set for the parameter Initial fluid energy specification meaning Specific enthalpy.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial specific internal energy —
specific internal energy at the beginning of the simulation
J/kg | kJ/kg | cal/kg | kcal/kg | mm^2/s^2 | cm^2/s^2 | m^2/s^2 | km^2/s^2 | km^2/hr^2 | in^2/s^2 | ft^2/s^2 | ft^2/min^2 | mi^2/s^2 | mi^2/hr^2 | Pa/(kg/m^3) | psi/(lbm/ft^3) | bar/(kg/m^3)
Details
The specific internal energy of the liquid in the converter at the beginning of the simulation.
Dependencies
To use this parameter, set for the parameter Initial fluid energy specification meaning Specific internal energy.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |