Constant Volume Chamber (MA)
Fixed volume capacity with a variable number of humid air ports.
blockType: AcausalFoundation.MoistAir.Elements.ConstantVolumeChamber
Path in the library:
|
Description
Block Constant Volume Chamber (MA) simulates the accumulation of mass and energy in a humid air network. There is a constant volume of moist air in the tank. The tank can exchange mass and energy with the connected humid air network and exchange heat with the environment, allowing the internal pressure and temperature to change over time. The pressure and temperature vary depending on the compressibility and heat capacity of the volume of moist air. Water condenses from the volume of moist air when saturation is reached.
Conservation of mass
The block’s equations use the following notation:
-
— mass consumption;
-
— energy consumption;
-
— heat consumption;
-
— pressure;
-
— density;
-
— universal gas constant;
-
— the volume of humid air inside the chamber;
-
— specific heat at constant volume;
-
— specific enthalpy;
-
— specific internal energy;
-
— mass fraction ( — specific humidity, which is otherwise called the mass fraction of water vapor);
-
— molar fraction;
-
— relative humidity;
-
— humidity coefficient;
-
— temperature;
-
— the time.
Subscript indexes:
-
— properties of dry air, water vapor, and impurity gas, respectively;
-
— water vapor at saturation;
-
— the appropriate port;
-
— properties of the internal volume of humid air.
The net consumption of moist air in the tank is:
,
,
,
,
where
-
— mass flow rate of condensation;
-
— consumption of condensate energy loss;
-
— consumption of added energy by sources of moisture and impurity gas;
-
— the mass flow of water and impurity gas through the port S, respectively.
Values and They are determined by the sources of moisture and impurity gas connected to the S port of the camera, or by the values of the corresponding parameters.
If no ports are used, then the terms of the equation with the subscript corresponding to the port name are equal to 0.
The equation of conservation of mass of water vapor relates the mass flow rate of water vapor to the dynamics of the humidity level in the internal volume of humid air:
.
Similarly, the equation of conservation of impurity gas mass relates the mass flow rate of impurity gas to the dynamics of the impurity gas level in the internal volume of humid air.:
.
The equation of conservation of mass of a mixture relates the mass flow rate of a mixture to the dynamics of pressure, temperature, and mass fractions of the internal volume of moist air.:
.
Finally, the energy conservation equation relates energy consumption to the dynamics of pressure, temperature, and mass fractions of the internal volume of humid air.:
.
The equation of state relates the density of a mixture to pressure and temperature:
.
The universal gas constant of the mixture is:
.
Flow resistance and thermal resistance in the chamber are not modeled:
,
.
When the volume of humid air reaches saturation, condensation of moisture may occur. The specific humidity at saturation is
,
where
-
— relative humidity of the air at saturation (usually );
-
— saturation pressure of water vapor, estimated at temperature .
The mass flow rate of condensation is:
where — parameter value Condensation time constant.
The condensate is subtracted from the volume of moist air, as shown in the conservation equations. The energy associated with the condensate is:
where — specific enthalpy of vaporization, estimated at temperature .
Other parameters for measuring moisture and impurity gas are related by the following dependencies:
,
,
,
,
.
Assumptions and limitations
-
The walls of the chamber are absolutely rigid.
-
There is no flow resistance between ports A, B, C, D and the inside of the camera. To simulate the flow resistance at the entrances to the chamber, use the blocks Variable Local Restriction (MA) and Flow Resistance (MA).
-
There is no thermal resistance between the H port and the inside of the camera. Use the thermal library blocks to simulate the thermal resistance between the humid air mixture and the surrounding environment, including any thermal effects of the chamber wall.
Variables
Use the parameter group Initial Targets to set the priority and initial target values for the block parameter variables before modeling. For more information, see Configuring physical blocks using target values.
Ports
Output
#
mdot_w_out
—
description missing
Details
Description missing
| Data types |
Description missing |
| Complex numbers support |
Description missing |
#
F
—
vector signal containing data on pressure, temperature, humidity and level of impurity gases
`vector'
Details
An output port that outputs a vector signal. The vector contains the results of pressure, temperature, humidity level and impurity gas level measurements inside the component. To decompress this vector signal, use the block Measurement Selector (MA).
| Data types |
|
| Complex numbers support |
No |
Conserving
#
H
—
vessel temperature
`heat
Details
Heat port related to the temperature of the moist air inside the vessel.
| Program usage name |
|
#
B
—
vessel inlet
`moist air
Details
The moist air port corresponding to the second vessel inlet.
Dependencies
To use this port, set the Number of ports parameters to . 2, 3 or 4.
| Program usage name |
|
#
D
—
vessel inlet
`moist air
Details
The moist air port corresponding to the fourth vessel inlet.
Dependencies
To use this port, set the Number of ports parameters to . 4.
| Program usage name |
|
#
A
—
vessel inlet
`moist air
Details
The moist air port corresponding to the vessel inlet.
| Program usage name |
|
#
S
—
addition or removal of moisture and impurity gas
`moist air
Details
Wet Air Source Port. Connect this port to the S port of the humid air final volume unit to add or remove moisture and impurity gas.
Dependencies
To use this port, set the parameters Moisture and trace gas source to Controlled.
| Program usage name |
|
#
C
—
capacitance input
`moist air
Details
The moist air port corresponding to the third vessel inlet.
Dependencies
To use this port, set the Number of ports parameters to 3 or 4.
| Program usage name |
|
Parameters
Initial Conditions
# Initial trace gas mass fraction — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial humidity ratio priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial wet-bulb temperature priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial trace gas mass fraction priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
# Initial water vapor mole fraction — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial temperature priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
# Initial humidity ratio — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
# Initial trace gas mole fraction — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial pressure —
description missing
Pa | uPa | hPa | kPa | MPa | GPa | kgf/m^2 | kgf/cm^2 | kgf/mm^2 | mbar | bar | kbar | atm | ksi | psi | mmHg | inHg
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
# Initial relative humidity — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial specific humidity priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial humidity specification —
description missing
Relative humidity | Specific humidity | Mole fraction | Humidity ratio | Wet-bulb temperature
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
# Initial mass ratio of water droplets to moist air — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial water vapor mole fraction priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial temperature —
description missing
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
# Initial specific humidity — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial trace gas specification —
description missing
Mass fraction | Mole fraction
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial wet-bulb temperature —
description missing
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Initial pressure priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial relative humidity priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial mass ratio of water droplets to moist air priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Initial trace gas mole fraction priority —
description missing
None | Low | High
Details
description missing
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
Moisture and Trace Gas
#
Temperature of added moisture —
description missing
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Added trace gas temperature specification —
method for setting the impurity gas temperature
Atmospheric temperature | Specified temperature
Details
Selection of the impurity gas temperature setting method:
-
Atmospheric temperature- atmospheric temperature is used. -
Specified temperature- value is set with the parameters Temperature of added trace gas.
Dependencies
To use this parameter, set the Moisture and trace gas source parameters to . Constant.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Added moisture temperature specification —
Moisture temperature setting method
Atmospheric temperature | Specified temperature
Details
Selects the method for setting the moisture temperature:
-
Atmospheric temperature- atmospheric temperature is used. -
Specified temperature- value is set with the parameters Temperature of added moisture.
Dependencies
To use this parameter, set the Moisture and trace gas source parameters to . Constant.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Temperature of added trace gas —
description missing
K | degC | degF | degR | deltaK | deltadegC | deltadegF | deltadegR
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Condensation time constant —
condensation time constant
s | ns | us | ms | min | hr | d
Details
A time scale factor characterising the time period for the return of the supersaturated volume of moist air to the saturation level due to condensation of excess moisture.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Water droplets evaporation time constant —
description missing
s | ns | us | ms | min | hr | d
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Rate of trace gas added —
description missing
kg/s | kg/hr | kg/min | g/hr | g/min | g/s | t/hr | lbm/hr | lbm/min | lbm/s
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Moisture added or removed —
add or remove moisture in the form of water vapour or water
Water vapor | Water droplets
Details
Select whether the source adds or removes moisture as water vapour or water:
-
Vapor- the enthalpy of added or removed moisture corresponds to the enthalpy of water vapour, which is greater than the enthalpy of water. -
Liquid- the enthalpy of added or removed moisture corresponds to the enthalpy of water, which is less than the enthalpy of water vapour.
Dependencies
To use this parameter, set the parameter Moisture and trace gas source to . Constant.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
#
Moisture and trace gas source —
source of moisture and impurity gases
None | Constant | Controlled
Details
This parameter controls the usage of the S port and provides the following options for modelling moisture and impurity gas levels within the unit:
-
None- no moisture or impurity gas is introduced into or extracted from the block. The S port is hidden. This value is used by default. -
Constant- moisture and impurity gas are fed into or extracted from the unit at a constant flow rate. The same parameters as in the Moisture Source (MA) and Trace Gas Source (MA) units are made available in the unit settings. The S port is hidden. -
Controlled- Moisture and impurity gas are introduced into or removed from the unit at a time-varying flow rate. Port S is available. Units Moisture Source (MA) and Trace Gas Source (MA) are connected to this port.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
# Water vapor evaporated from liquid or condensed to liquid — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |
# Relative humidity at saturation — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
# Fraction of condensate entrained as water droplets — description missing
Details
description missing
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Rate of moisture added —
description missing
kg/s | kg/hr | kg/min | g/hr | g/min | g/s | t/hr | lbm/hr | lbm/min | lbm/s
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
Main
#
Chamber volume —
description missing
m^3 | um^3 | mm^3 | cm^3 | km^3 | ml | l | gal | igal | in^3 | ft^3 | yd^3 | mi^3
Details
description missing
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Cross-sectional area at port B —
area normal to the flow path at the vessel inlet
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 vessel inlet at port B in the direction normal to the wet air flow path.
Dependencies
To use this parameter, set the Number of ports parameters to . 2, 3 or 4.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Cross-sectional area at port C —
area normal to the flow path at the vessel inlet
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 vessel inlet at port C in the direction normal to the wet air flow path.
Dependencies
To use this parameter, set the parameters Number of ports to 3 or 4.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Cross-sectional area at port A —
area normal to the flow path at the vessel inlet
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 vessel inlet at port A in the direction normal to the wet air flow path.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Cross-sectional area at port D —
area normal to the flow path at the vessel inlet
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 vessel inlet at port D in the direction normal to the wet air flow path.
Dependencies
To use this parameter, set the Number of ports parameters to . 4.
| Units |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
Yes |
#
Number of ports —
number of input ports in the vessel
1 | 2 | 3 | 4
Details
The number of input ports in the chamber. A camera can have one to four ports labelled A to D. When you change the value of the parameters, the corresponding ports are displayed or hidden in the block display.
| Values |
|
| Default value |
|
| Program usage name |
|
| Evaluatable |
No |