Engee documentation

Pressure Transducer

A pressure sensor that converts the measured pressure into voltage.

blockType: AcausalElectricPowerSystems.Sensors.PressureTransducer

Path in the library:

/Physical Modeling/Electrical/Sensors & Transducers/Pressure Transducer

Description

Block Pressure Transducer It simulates a universal pressure sensor that converts the measured pressure into voltage. Use the unit to measure pressure in different domains. The domain type is determined by the parameter Fluid port type.

The output voltage is linearly proportional to the pressure. The unit outputs zero voltage if the pressure is less than zero. If the input pressure is equal to the parameter value Pressure range, the output voltage is equal to the value of the parameter Full-scale deflection. At higher pressures, the output voltage remains equal to the value of the parameter Full-scale deflection.

Vacuum pressure, atmospheric pressure, or the reference pressure of a sealed chamber can be selected as the reference point for pressure measurement.

If for the parameter Dynamics the value is set Model transducer bandwidth, the block approximates the dynamics of the sensor using a first-order delay. Parameter Bandwidth detects the delay. When selecting a value Model transducer bandwidth You must also specify the initial condition for the delay using the target value Measured pressure.

To use a fixed-step solver or generate code for software and hardware testing, set the parameter Dynamics meaning No dynamics - Situable for HIL. If the sensor bandwidth is wide, you will need a small simulation step, unless the sensor is modeled without dynamics.

Ports

Conserving

# A — pressure measurement
gas

Details

A non-directional port associated with pressure measurement. To use this port, set the parameter Fluid port type value Gas.

Program usage name

gas_port

# + — positive terminal
electricity

Details

A non-directional port connected to the positive terminal.

Program usage name

p

# — negative terminal
electricity

Details

A non-directional port connected to the negative terminal.

Program usage name

n

# A — pressure measurement
thermal liquid

Details

A non-directional port associated with pressure measurement. To use this port, set the parameter Fluid port type value Thermal Liquid.

Program usage name

thermal_liquid_port

# A — pressure measurement
humid air

Details

A non-directional port associated with pressure measurement. To use this port, set the parameter Fluid port type value Moist Air.

Program usage name

moist_air_port

# A — pressure measurement
Isothermal liquid

Details

A non-directional port associated with pressure measurement. To use this port, set the parameter Fluid port type value Isothermal Liquid.

Program usage name

isothermal_liquid_port

Parameters

Parameters

# Fluid port type — type of non-directional port
Thermal Liquid | Gas | Moist Air | Isothermal Liquid

Details

The type of non-directional port associated with pressure measurement. The value of this parameter determines the domain of the port A.

Values

Thermal Liquid | Gas | Moist Air | Isothermal Liquid

Default value

Gas

Program usage name

fluid_port_type

Evaluatable

Yes

# Pressure range — maximum pressure
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 maximum pressure in Pa that the sensor can measure.

Units

Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Default value

1.0e6 Pa

Program usage name

max_pressure

Evaluatable

Yes

# Operation mode — reference point for pressure measurement
Absolute | Gauge | Sealed-Gauge

Details

Operating mode. Select one of the following options to determine the reference point for pressure measurement:

  • Absolute — The unit measures the absolute pressure relative to the ideal vacuum.

  • Gauge — the unit measures pressure relative to atmospheric pressure. If you want to change the reference pressure for the measurement, set the parameter Operation mode meaning Sealed-Gauge.

    For domains, you can set the atmospheric pressure in your hydraulic network, since the pressure for all variables is absolute. The default atmospheric pressure value is 0.101325 MPa. Set the atmospheric pressure using the block in the section Fundamental Engee block libraries according to the value set for the parameter Fluid port type:

  • Sealed-Gauge — the unit measures the pressure relative to the internal sealed chamber. When selecting this value, specify the reference point for pressure measurement in the parameter settings. Reference pressure.

Values

Absolute | Gauge | Sealed-Gauge

Default value

Absolute

Program usage name

operation_mode

Evaluatable

Yes

# Full-scale deflection — output voltage at full deviation
V | uV | mV | kV | MV

Details

Output voltage when the measured pressure is equal to or exceeds the value of the parameter Pressure range.

Units

V | uV | mV | kV | MV

Default value

5.0 V

Program usage name

V_max

Evaluatable

Yes

# Output resistance — output resistance of the converter
Ohm | mOhm | kOhm | MOhm | GOhm

Details

Output resistance of the converter.

Units

Ohm | mOhm | kOhm | MOhm | GOhm

Default value

200.0 Ohm

Program usage name

R

Evaluatable

Yes

# Dynamics — sensor dynamics option
No dynamics - Situable for HIL | Model transducer bandwidth

Details

Sensor dynamics simulation option:

  • No dynamics - Situable for HIL — do not simulate the dynamics of the sensor. If the sensor bandwidth is wide, a small simulation step is required, unless the sensor is modeled without dynamics. Set this value to use a fixed-step solver or generate code for software and hardware testing.

  • Model transducer bandwidth — simulate sensor dynamics using a first-order delay approximation based on the parameter value Bandwidth. Specify a target value of Measured pressure to control the initial delay condition.

Values

No dynamics - Situable for HIL | Model transducer bandwidth

Default value

No dynamics - Situable for HIL

Program usage name

dynamics_model

Evaluatable

Yes

# Bandwidth — bandwidth width
Hz | kHz | MHz | GHz

Details

Bandwidth. This parameter determines the amount of sensor delay.

Dependencies

To use this parameter, set for the parameter Dynamics meaning Model transducer bandwidth.

Units

Hz | kHz | MHz | GHz

Default value

5.0 kHz

Program usage name

bandwidth

Evaluatable

Yes

# Reference pressure — reference pressure
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 reference pressure in the internal sealed chamber.

Dependencies

To use this parameter, set for the parameter Operation mode meaning Sealed-Gauge.

Units

Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg

Default value

101325.0 Pa

Program usage name

reference_pressure

Evaluatable

Yes