ClosedVolume
Chemical Reactor Design Toolbox Reference Manual
Chemical Reactor Design Toolbox Reference Manual ChemReactorDesign.Basic.Gas.Volumes.ClosedVolume
Description
The component represents a closed gas volume of fixed size.
Mass Balance
with initial conditions depending on the selected thermodynamic model
- Ideal Gas
- Peng Robinson
Energy Balance
with initial condition
Equation of State
Pressure
Ideal Gas
Peng Robinson
with
Volume
The volume is either given by a component parameter or set by a physical input signal which may even be time variant (see Assumptions).
Assumptions and Limitations
- The time response of the volume input signal is assumed to be much slower than the dynamics of the balance component. Thus the volume is regarded as approximately constant.
- In some cases considering the expression work explicitly may slow down the convergence rate.
- If the volume is read from the physical input port,
it must hold:
.
Ports
Conserving
Gas conserving port
Port_A = Gas; %
Gas conserving port
Port_B = Gas; %
The port is only visible when the option
enable2Portis set toOn.Thermal conserving port
Port_C = foundation.thermal.thermal; %
Dependencies: The port is only visible when
isothermalOperationis set toOff.
Input
Physical signals that controls the volume.
Vin = {0,'l'}; % VDependencies: The port is only visible when
volumeInputOutputis set toInput.
Output
Physical signal that represents the current volume
Vout = {0,'l'}; % VDependencies: The port is only visible when
volumeInputOutputis set toOutput.
Parameters
Options
Option to select volume input/output
volumeInputOutput = InOut.Off;
Input|Output|OffOption to select thermal behaviour of the volume.
isothermalOperation = OnOff.On;
Off|OnOption to select compression work
compressionWork = OnOff.On;
Off|OnIf the option is set to
Offthe term
in the
energy balance will be skipped.
Option to enable 2nd Port
enable2ndPort = OnOff.Off;
Geometry
Initial volume
V0 = {1,'l'}; % Volume
Operation Conditions
Initial mole fractions
x0 = {[0;1],'1'};Note Initially only two species are considered. As the number of species can be changed via the properties dialogue, the size of the array must be adjusted accordingly.
Initial pressure
p0 = {1.0,'bar'}; % Initial PressureInitial Temperature
T0 = {298.15,'K'}; % Initial Temperature
Nominal Values
Nominal Values for Number of Moles
n_nom = {1,'mol'};
Nomenclature
![]() |
specific heat for species Ai |
![]() |
molar flow rate of species Ai |
![]() |
molar enthalpy of species Ai |
![]() |
departure enthalpy of the mixture |
![]() |
total number of species |
![]() |
number of moles of species Ai |
![]() |
pressure |
![]() |
initial pressure |
![]() |
heat flow rate (independent of fluid flow) |
![]() |
universal gas constant |
![]() |
time |
![]() |
temperature |
![]() |
initial temperature |
![]() |
volume |
![]() |
molar volume of mixture |
![]() |
mole fraction of species Ai |
![]() |
initial mole fraction of species Ai |
![]() |
compressibility |
![]() |
energy flow rate |


















