Main Content

Pressure Conversion

Convert from pressure units to desired pressure units

  • Pressure Conversion block

Libraries:
Aerospace Blockset / Utilities / Unit Conversions

Description

The Pressure Conversion block computes the conversion factor from specified input pressure units to specified output pressure units and applies the conversion factor to the input signal.

The Pressure Conversion block port labels change based on the input and output units selected from the Initial unit and the Final unit lists.

Examples

Ports

Input

expand all

Pressure, specified as a scalar or array, in initial pressure units.

Dependencies

The input port label depends on the Initial unit setting.

Data Types: double

Output

expand all

Pressure, returned as a scalar or array, in final pressure units.

Dependencies

The output port label depends on the Final unit setting.

Data Types: double

Parameters

expand all

Input units, specified as:

psi

Pound mass per square inch

Pa

Pascals

psf

Pound mass per square foot

atm

Atmospheres

Dependencies

The input port label depends on the Initial unit setting.

Programmatic Use

Block Parameter: IU
Type: character vector
Values: 'psi' | 'Pa' | 'psf' | 'atm'
Default: 'psi'

Output units, specified as:

psi

Pound mass per square inch

Pa

Pascals

psf

Pound mass per square foot

atm

Atmospheres

Dependencies

The output port label depends on the Final unit setting.

Programmatic Use

Block Parameter: OU
Type: character vector
Values: 'psi' | 'Pa' | 'psf' | 'atm'
Default: 'Pa'

Extended Capabilities

C/C++ Code Generation
Generate C and C++ code using Simulink® Coder™.

Version History

Introduced before R2006a