Contrib massBuoyantBoussinesqSimpleFoam
Contents
1 Brief description
Steady-state solver for buoyant, turbulent, incompressible flows with vapor and contaminant scalar transport for HVAC and similar applications.
2 Governing Equations
The solver is based on buoyantBoussinesqSimpleFoam. Two new mass transfer equations are added to solve for water vapor and contaminant concentration fields.
Transport equation for contaminant concentration:
Transport equation for water vapor concentration:
where is diffusion coefficient for contaminant gas/air and is diffusion coefficient for water/air.
3 Calculating humidity
According to ASHRAE Fundamentals 2009 Handbook, humidity is obtained by
In which,
and
4 Installation and running
4.1 Installation
The solver must be compiled at first. For compiling do the following steps:
- Download the solver package
- tar xzf massBuoyantBoussinesqSimpleFoam.tar.gz
- mkdir -p $WM_PROJECT_USER_DIR/applications/solvers (If you already have this folder, skip this step.)
- copy the downloaded package into $WM_PROJECT_USER_DIR/applications/solvers
- cd $WM_PROJECT_USER_DIR/applications/solvers/massBuoyantBoussinesqSimpleFoam
- wmake
4.2 Running a sample case
Note that for using this sample its needed to have swak4foam utility installed.
Do the following steps:
- Download room.tar.gz
- tar xzf room.tar.gz
- Open system/decomposeParDict and change number of processors which is suitable for your machine (Default is set to 2).
- cd room
- decomposePar
- mpirun -np <n> massBuoyantBoussinesqSimpleFoam -parallel >log (note that <n> is number of processors you have set in decomposeParDict).
Now openFoam starts solving the problem. To see how residuals are changing do these steps:
- open an another terminal
- cd room
- gnuplot residuals -
This sample includes a room which have an air inlet and an outlet. Cold clean air is supplied to the room through inlet and after cooling down the temperature and cleaning the room from contaminants is exhausted through outlet. Field Averages for , , and humidity are calculated using swak4foam utility.
5 Download
The solver:
Sample case:
6 History
- Mojtaba Amiraslanpour (Complex Heat and Flow Simulation Research Group at University of Zanjan)
- 18:40, 14 Dec 2012 (GMT) : Initial upload