Main Content

Pressure Conversion

Convert from pressure units to desired pressure units

  • 库:
  • Aerospace Blockset / Utilities / Unit Conversions

  • Pressure Conversion block

Description

ThePressure Conversionblock computes the conversion factor from specified input pressure units to specified output pressure units and applies the conversion factor to the input signal.

ThePressure Conversionblock port labels change based on the input and output units selected from theInitial unitand theFinal unitlists.

Ports

Input

expand all

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

Dependencies

The input port label depends on theInitial unitsetting.

Data Types:double

Output

expand all

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

Dependencies

The output port label depends on theFinal unitsetting.

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 theInitial unitsetting.

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 theFinal unitsetting.

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™.

Introduced before R2006a