Buildings.Controls.OBC.UnitConversions

Package with blocks for unit conversion

Information

Package with blocks for unit conversions.

Package Content

Name Description
Buildings.Controls.OBC.UnitConversions.From_Btu From_Btu Block that converts energy from British thermal units to joule
Buildings.Controls.OBC.UnitConversions.From_BtuPerHour From_BtuPerHour Block that converts power from British thermal units per hour to watt
Buildings.Controls.OBC.UnitConversions.From_bar From_bar Block that converts pressure from bar to pascal
Buildings.Controls.OBC.UnitConversions.From_cfm From_cfm Block that converts volume flow from cubic feet per minute to cubic meters per second
Buildings.Controls.OBC.UnitConversions.From_degC From_degC Block that converts temperature from degree Celsius to kelvin
Buildings.Controls.OBC.UnitConversions.From_degF From_degF Block that converts temperature from degree Fahrenheit to kelvin
Buildings.Controls.OBC.UnitConversions.From_gal From_gal Block that converts volume from gallon to cubic meter
Buildings.Controls.OBC.UnitConversions.From_hp From_hp Block that converts power from horsepower to watt
Buildings.Controls.OBC.UnitConversions.From_inH2O From_inH2O Block that converts pressure from inch of water gauge (at 60 degF) to pascal
Buildings.Controls.OBC.UnitConversions.From_psi From_psi Block that converts pressure from pound-force per square inch to pascal
Buildings.Controls.OBC.UnitConversions.From_quad From_quad Block that converts energy from quads to joule
Buildings.Controls.OBC.UnitConversions.From_ton From_ton Block that converts power from ton of refrigeration to watt
Buildings.Controls.OBC.UnitConversions.To_Btu To_Btu Block that converts energy from joule to British thermal units
Buildings.Controls.OBC.UnitConversions.To_BtuPerHour To_BtuPerHour Block that converts power from watt to British thermal units per hour
Buildings.Controls.OBC.UnitConversions.To_bar To_bar Block that converts pressure from pascal to bar
Buildings.Controls.OBC.UnitConversions.To_cfm To_cfm Block that converts volume flow from cubic meters per second to cubic feet per minute
Buildings.Controls.OBC.UnitConversions.To_degC To_degC Block that converts temperature from kelvin to degree Celsius
Buildings.Controls.OBC.UnitConversions.To_degF To_degF Block that converts temperature from kelvin to degree Fahrenheit
Buildings.Controls.OBC.UnitConversions.To_gal To_gal Block that converts volume from cubic meter to gallon
Buildings.Controls.OBC.UnitConversions.To_hp To_hp Block that converts power from watt to horsepower
Buildings.Controls.OBC.UnitConversions.To_inH2O To_inH2O Block that converts pressure from pascal to inch of water gauge (at 60 degF)
Buildings.Controls.OBC.UnitConversions.To_psi To_psi Block that converts pressure from pascal to pound-force per square inch
Buildings.Controls.OBC.UnitConversions.To_quad To_quad Block that converts energy from joule to quads
Buildings.Controls.OBC.UnitConversions.To_ton To_ton Block that converts power from watt to ton of refrigeration
Buildings.Controls.OBC.UnitConversions.Validation Validation Collection of models that validate the unit conversion blocks of the CDL

Buildings.Controls.OBC.UnitConversions.From_Btu Buildings.Controls.OBC.UnitConversions.From_Btu

Block that converts energy from British thermal units to joule

Buildings.Controls.OBC.UnitConversions.From_Btu

Information

Converts energy given in British thermal units [Btu] to joule [J].

Connectors

TypeNameDescription
input RealInputuEnergy in British thermal units
output RealOutputyEnergy in joule [J]

Modelica definition

block From_Btu "Block that converts energy from British thermal units to joule" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "Energy") "Energy in British thermal units"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "J", final quantity = "Energy") "Energy in joule"; protected constant Real k = 1055.056 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_Btu;

Buildings.Controls.OBC.UnitConversions.From_BtuPerHour Buildings.Controls.OBC.UnitConversions.From_BtuPerHour

Block that converts power from British thermal units per hour to watt

Buildings.Controls.OBC.UnitConversions.From_BtuPerHour

Information

Converts power given in British thermal units per hour [Btu/h] to watt [W].

Connectors

TypeNameDescription
input RealInputuPower in British thermal units per hour
output RealOutputyPower in watt [W]

Modelica definition

block From_BtuPerHour "Block that converts power from British thermal units per hour to watt" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "Power") "Power in British thermal units per hour"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "W", final quantity = "Power") "Power in watt"; protected constant Real k = 0.2930711 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_BtuPerHour;

Buildings.Controls.OBC.UnitConversions.From_bar Buildings.Controls.OBC.UnitConversions.From_bar

Block that converts pressure from bar to pascal

Buildings.Controls.OBC.UnitConversions.From_bar

Information

Converts pressure given in bar [bar] to pascal [Pa].

Connectors

TypeNameDescription
input RealInputuPressure in bar [bar]
output RealOutputyPressure in pascal [Pa]

Modelica definition

block From_bar "Block that converts pressure from bar to pascal" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "bar", final quantity = "Pressure") "Pressure in bar"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "Pa", final quantity = "Pressure") "Pressure in pascal"; protected constant Real k = 100000. "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_bar;

Buildings.Controls.OBC.UnitConversions.From_cfm Buildings.Controls.OBC.UnitConversions.From_cfm

Block that converts volume flow from cubic feet per minute to cubic meters per second

Buildings.Controls.OBC.UnitConversions.From_cfm

Information

Converts volume flow given in cubic feet per minute [cfm] to cubic meters per second [m3/s].

Connectors

TypeNameDescription
input RealInputuVolume flow in cubic feet per minute
output RealOutputyVolume flow in cubic meters per second [m3/s]

Modelica definition

block From_cfm "Block that converts volume flow from cubic feet per minute to cubic meters per second" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "VolumeFlowRate") "Volume flow in cubic feet per minute"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "m3/s", final quantity = "VolumeFlowRate") "Volume flow in cubic meters per second"; protected constant Real k = 0.000471947 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_cfm;

Buildings.Controls.OBC.UnitConversions.From_degC Buildings.Controls.OBC.UnitConversions.From_degC

Block that converts temperature from degree Celsius to kelvin

Buildings.Controls.OBC.UnitConversions.From_degC

Information

Converts temperature given in degree Celsius [degC] to kelvin [K].

Connectors

TypeNameDescription
input RealInputuTemperature in degree Celsius [degC]
output RealOutputyTemperature in kelvin [K]

Modelica definition

block From_degC "Block that converts temperature from degree Celsius to kelvin" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "degC", final quantity = "ThermodynamicTemperature") "Temperature in degree Celsius"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "K", final quantity = "ThermodynamicTemperature") "Temperature in kelvin"; protected constant Real k = 1. "Multiplier"; constant Real p = 273.15 "Adder"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter gai( final k = k) "Gain factor"; Buildings.Controls.OBC.CDL.Reals.AddParameter conv( final p = p) "Unit converter"; equation connect(conv.y, y); connect(u, gai.u); connect(gai.y, conv.u); end From_degC;

Buildings.Controls.OBC.UnitConversions.From_degF Buildings.Controls.OBC.UnitConversions.From_degF

Block that converts temperature from degree Fahrenheit to kelvin

Buildings.Controls.OBC.UnitConversions.From_degF

Information

Converts temperature given in degree Fahrenheit [degF] to kelvin [K].

Connectors

TypeNameDescription
input RealInputuTemperature in degree Fahrenheit [degF]
output RealOutputyTemperature in kelvin [K]

Modelica definition

block From_degF "Block that converts temperature from degree Fahrenheit to kelvin" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "degF", final quantity = "ThermodynamicTemperature") "Temperature in degree Fahrenheit"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "K", final quantity = "ThermodynamicTemperature") "Temperature in kelvin"; protected constant Real k = 5./9. "Multiplier"; constant Real p = -32. * (5./9.) + 273.15 "Adder"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter gai( final k = k) "Gain factor"; Buildings.Controls.OBC.CDL.Reals.AddParameter conv( final p = p) "Unit converter"; equation connect(conv.y, y); connect(u, gai.u); connect(gai.y, conv.u); end From_degF;

Buildings.Controls.OBC.UnitConversions.From_gal Buildings.Controls.OBC.UnitConversions.From_gal

Block that converts volume from gallon to cubic meter

Buildings.Controls.OBC.UnitConversions.From_gal

Information

Converts volume given in gallon [gal] to cubic meter [m3].

Connectors

TypeNameDescription
input RealInputuVolume in gallon
output RealOutputyVolume in cubic meter [m3]

Modelica definition

block From_gal "Block that converts volume from gallon to cubic meter" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "Volume") "Volume in gallon"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "m3", final quantity = "Volume") "Volume in cubic meter"; protected constant Real k = 0.003785412 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_gal;

Buildings.Controls.OBC.UnitConversions.From_hp Buildings.Controls.OBC.UnitConversions.From_hp

Block that converts power from horsepower to watt

Buildings.Controls.OBC.UnitConversions.From_hp

Information

Converts power given in horsepower [hp] to watt [W].

Connectors

TypeNameDescription
input RealInputuPower in horsepower
output RealOutputyPower in watt [W]

Modelica definition

block From_hp "Block that converts power from horsepower to watt" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "Power") "Power in horsepower"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "W", final quantity = "Power") "Power in watt"; protected constant Real k = 0.7457 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_hp;

Buildings.Controls.OBC.UnitConversions.From_inH2O Buildings.Controls.OBC.UnitConversions.From_inH2O

Block that converts pressure from inch of water gauge (at 60 degF) to pascal

Buildings.Controls.OBC.UnitConversions.From_inH2O

Information

Converts pressure given in inch of water gauge (at 60 degF) [inH2O] to pascal [Pa].

Connectors

TypeNameDescription
input RealInputuPressure in inch of water gauge (at 60 degF)
output RealOutputyPressure in pascal [Pa]

Modelica definition

block From_inH2O "Block that converts pressure from inch of water gauge (at 60 degF) to pascal" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "Pressure") "Pressure in inch of water gauge (at 60 degF)"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "Pa", final quantity = "Pressure") "Pressure in pascal"; protected constant Real k = 248.84 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_inH2O;

Buildings.Controls.OBC.UnitConversions.From_psi Buildings.Controls.OBC.UnitConversions.From_psi

Block that converts pressure from pound-force per square inch to pascal

Buildings.Controls.OBC.UnitConversions.From_psi

Information

Converts pressure given in pound-force per square inch [psi] to pascal [Pa].

Connectors

TypeNameDescription
input RealInputuPressure in pound-force per square inch
output RealOutputyPressure in pascal [Pa]

Modelica definition

block From_psi "Block that converts pressure from pound-force per square inch to pascal" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "Pressure") "Pressure in pound-force per square inch"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "Pa", final quantity = "Pressure") "Pressure in pascal"; protected constant Real k = 6895. "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_psi;

Buildings.Controls.OBC.UnitConversions.From_quad Buildings.Controls.OBC.UnitConversions.From_quad

Block that converts energy from quads to joule

Buildings.Controls.OBC.UnitConversions.From_quad

Information

Converts energy given in quads [quad] to joule [J].

Connectors

TypeNameDescription
input RealInputuEnergy in quads
output RealOutputyEnergy in joule [J]

Modelica definition

block From_quad "Block that converts energy from quads to joule" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "Energy") "Energy in quads"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "J", final quantity = "Energy") "Energy in joule"; protected constant Real k = 1055.56e15 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_quad;

Buildings.Controls.OBC.UnitConversions.From_ton Buildings.Controls.OBC.UnitConversions.From_ton

Block that converts power from ton of refrigeration to watt

Buildings.Controls.OBC.UnitConversions.From_ton

Information

Converts power given in ton of refrigeration [ton] to watt [W].

Connectors

TypeNameDescription
input RealInputuPower in ton of refrigeration
output RealOutputyPower in watt [W]

Modelica definition

block From_ton "Block that converts power from ton of refrigeration to watt" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final quantity = "Power") "Power in ton of refrigeration"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "W", final quantity = "Power") "Power in watt"; protected constant Real k = 3517. "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end From_ton;

Buildings.Controls.OBC.UnitConversions.To_Btu Buildings.Controls.OBC.UnitConversions.To_Btu

Block that converts energy from joule to British thermal units

Buildings.Controls.OBC.UnitConversions.To_Btu

Information

Converts energy given in joule [J] to British thermal units [Btu].

Connectors

TypeNameDescription
input RealInputuEnergy in joule [J]
output RealOutputyEnergy in British thermal units

Modelica definition

block To_Btu "Block that converts energy from joule to British thermal units" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "J", final quantity = "Energy") "Energy in joule"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "Energy") "Energy in British thermal units"; protected constant Real k = 1./1055.056 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_Btu;

Buildings.Controls.OBC.UnitConversions.To_BtuPerHour Buildings.Controls.OBC.UnitConversions.To_BtuPerHour

Block that converts power from watt to British thermal units per hour

Buildings.Controls.OBC.UnitConversions.To_BtuPerHour

Information

Converts power given in watt [W] to British thermal units per hour [Btu/h].

Connectors

TypeNameDescription
input RealInputuPower in watt [W]
output RealOutputyPower in British thermal units per hour

Modelica definition

block To_BtuPerHour "Block that converts power from watt to British thermal units per hour" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "W", final quantity = "Power") "Power in watt"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "Power") "Power in British thermal units per hour"; protected constant Real k = 1./0.2930711 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_BtuPerHour;

Buildings.Controls.OBC.UnitConversions.To_bar Buildings.Controls.OBC.UnitConversions.To_bar

Block that converts pressure from pascal to bar

Buildings.Controls.OBC.UnitConversions.To_bar

Information

Converts pressure given in pascal [Pa] to bar [bar].

Connectors

TypeNameDescription
input RealInputuPressure in pascal [Pa]
output RealOutputyPressure in bar [bar]

Modelica definition

block To_bar "Block that converts pressure from pascal to bar" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "Pa", final quantity = "Pressure") "Pressure in pascal"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "bar", final quantity = "Pressure") "Pressure in bar"; protected constant Real k = 1./100000. "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_bar;

Buildings.Controls.OBC.UnitConversions.To_cfm Buildings.Controls.OBC.UnitConversions.To_cfm

Block that converts volume flow from cubic meters per second to cubic feet per minute

Buildings.Controls.OBC.UnitConversions.To_cfm

Information

Converts volume flow given in cubic meters per second [m3/s] to cubic feet per minute [cfm].

Connectors

TypeNameDescription
input RealInputuVolume flow in cubic meters per second [m3/s]
output RealOutputyVolume flow in cubic feet per minute

Modelica definition

block To_cfm "Block that converts volume flow from cubic meters per second to cubic feet per minute" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "m3/s", final quantity = "VolumeFlowRate") "Volume flow in cubic meters per second"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "VolumeFlowRate") "Volume flow in cubic feet per minute"; protected constant Real k = 1./0.000471947 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_cfm;

Buildings.Controls.OBC.UnitConversions.To_degC Buildings.Controls.OBC.UnitConversions.To_degC

Block that converts temperature from kelvin to degree Celsius

Buildings.Controls.OBC.UnitConversions.To_degC

Information

Converts temperature given in kelvin [K] to degree Celsius [degC].

Connectors

TypeNameDescription
input RealInputuTemperature in kelvin [K]
output RealOutputyTemperature in degree Celsius [degC]

Modelica definition

block To_degC "Block that converts temperature from kelvin to degree Celsius" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "K", final quantity = "ThermodynamicTemperature") "Temperature in kelvin"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "degC", final quantity = "ThermodynamicTemperature") "Temperature in degree Celsius"; protected constant Real k = 1. "Multiplier"; constant Real p = -273.15 "Adder"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter gai( final k = k) "Gain factor"; Buildings.Controls.OBC.CDL.Reals.AddParameter conv( final p = p) "Unit converter"; equation connect(conv.y, y); connect(u, gai.u); connect(gai.y, conv.u); end To_degC;

Buildings.Controls.OBC.UnitConversions.To_degF Buildings.Controls.OBC.UnitConversions.To_degF

Block that converts temperature from kelvin to degree Fahrenheit

Buildings.Controls.OBC.UnitConversions.To_degF

Information

Converts temperature given in kelvin [K] to degree Fahrenheit [degF].

Connectors

TypeNameDescription
input RealInputuTemperature in kelvin [K]
output RealOutputyTemperature in degree Fahrenheit [degF]

Modelica definition

block To_degF "Block that converts temperature from kelvin to degree Fahrenheit" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "K", final quantity = "ThermodynamicTemperature") "Temperature in kelvin"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final unit = "degF", final quantity = "ThermodynamicTemperature") "Temperature in degree Fahrenheit"; protected constant Real k = 9./5. "Multiplier"; constant Real p = (-9./5.) * 273.15 + 32 "Adder"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter gai( final k = k) "Gain factor"; Buildings.Controls.OBC.CDL.Reals.AddParameter conv( final p = p) "Unit converter"; equation connect(conv.y, y); connect(u, gai.u); connect(gai.y, conv.u); end To_degF;

Buildings.Controls.OBC.UnitConversions.To_gal Buildings.Controls.OBC.UnitConversions.To_gal

Block that converts volume from cubic meter to gallon

Buildings.Controls.OBC.UnitConversions.To_gal

Information

Converts volume given in cubic meter [m3] to gallon [gal].

Connectors

TypeNameDescription
input RealInputuVolume in cubic meter [m3]
output RealOutputyVolume in gallon

Modelica definition

block To_gal "Block that converts volume from cubic meter to gallon" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "m3", final quantity = "Volume") "Volume in cubic meter"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "Volume") "Volume in gallon"; protected constant Real k = 1./0.003785412 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_gal;

Buildings.Controls.OBC.UnitConversions.To_hp Buildings.Controls.OBC.UnitConversions.To_hp

Block that converts power from watt to horsepower

Buildings.Controls.OBC.UnitConversions.To_hp

Information

Converts power given in watt [W] to horsepower [hp].

Connectors

TypeNameDescription
input RealInputuPower in watt [W]
output RealOutputyPower in horsepower

Modelica definition

block To_hp "Block that converts power from watt to horsepower" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "W", final quantity = "Power") "Power in watt"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "Power") "Power in horsepower"; protected constant Real k = 1./0.7457 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_hp;

Buildings.Controls.OBC.UnitConversions.To_inH2O Buildings.Controls.OBC.UnitConversions.To_inH2O

Block that converts pressure from pascal to inch of water gauge (at 60 degF)

Buildings.Controls.OBC.UnitConversions.To_inH2O

Information

Converts pressure given in pascal [Pa] to inch of water gauge (at 60 degF) [inH2O].

Connectors

TypeNameDescription
input RealInputuPressure in pascal [Pa]
output RealOutputyPressure in inch of water gauge (at 60 degF)

Modelica definition

block To_inH2O "Block that converts pressure from pascal to inch of water gauge (at 60 degF)" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "Pa", final quantity = "Pressure") "Pressure in pascal"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "Pressure") "Pressure in inch of water gauge (at 60 degF)"; protected constant Real k = 1./248.84 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_inH2O;

Buildings.Controls.OBC.UnitConversions.To_psi Buildings.Controls.OBC.UnitConversions.To_psi

Block that converts pressure from pascal to pound-force per square inch

Buildings.Controls.OBC.UnitConversions.To_psi

Information

Converts pressure given in pascal [Pa] to pound-force per square inch [psi].

Connectors

TypeNameDescription
input RealInputuPressure in pascal [Pa]
output RealOutputyPressure in pound-force per square inch

Modelica definition

block To_psi "Block that converts pressure from pascal to pound-force per square inch" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "Pa", final quantity = "Pressure") "Pressure in pascal"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "Pressure") "Pressure in pound-force per square inch"; protected constant Real k = 1./6895. "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_psi;

Buildings.Controls.OBC.UnitConversions.To_quad Buildings.Controls.OBC.UnitConversions.To_quad

Block that converts energy from joule to quads

Buildings.Controls.OBC.UnitConversions.To_quad

Information

Converts energy given in joule [J] to quads [quad].

Connectors

TypeNameDescription
input RealInputuEnergy in joule [J]
output RealOutputyEnergy in quads

Modelica definition

block To_quad "Block that converts energy from joule to quads" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "J", final quantity = "Energy") "Energy in joule"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "Energy") "Energy in quads"; protected constant Real k = 1./1055.56e15 "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_quad;

Buildings.Controls.OBC.UnitConversions.To_ton Buildings.Controls.OBC.UnitConversions.To_ton

Block that converts power from watt to ton of refrigeration

Buildings.Controls.OBC.UnitConversions.To_ton

Information

Converts power given in watt [W] to ton of refrigeration [ton].

Connectors

TypeNameDescription
input RealInputuPower in watt [W]
output RealOutputyPower in ton of refrigeration

Modelica definition

block To_ton "Block that converts power from watt to ton of refrigeration" Buildings.Controls.OBC.CDL.Interfaces.RealInput u( final unit = "W", final quantity = "Power") "Power in watt"; Buildings.Controls.OBC.CDL.Interfaces.RealOutput y( final quantity = "Power") "Power in ton of refrigeration"; protected constant Real k = 1./3517. "Multiplier"; Buildings.Controls.OBC.CDL.Reals.MultiplyByParameter conv( final k = k) "Unit converter"; equation connect(u, conv.u); connect(conv.y, y); end To_ton;