Difference between revisions of "Contrib massBuoyantBoussinesqSimpleFoam"
(→Running a sample case) |
AntonChupin (Talk | contribs) |
||
(7 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{VersionInfo}}{{Version2.0.1}} | + | {{VersionInfo}}{{Version2.0}}{{Version2.0.1}}{{Version2.1}} |
== Brief description == | == Brief description == | ||
Line 39: | Line 39: | ||
and | and | ||
− | <math> | + | <math> p_{ws} = \exp (-0.58002206*10^4*T^{-1} </math> |
<math> + 0.13914993*10^1 </math> | <math> + 0.13914993*10^1 </math> | ||
<math> - 0.48640239*10^{-1}*T </math> | <math> - 0.48640239*10^{-1}*T </math> | ||
Line 64: | Line 64: | ||
Do the following steps: | Do the following steps: | ||
+ | [[Image:temp.png|right|thumb|Temperature distribution]] | ||
+ | |||
+ | [[Image:ScreenShot.png|right|thumb|Contaminant concentration distribution]] | ||
* Download room.tar.gz | * Download room.tar.gz | ||
* tar xzf room.tar.gz | * tar xzf room.tar.gz | ||
Line 71: | Line 74: | ||
* mpirun -np <n> massBuoyantBoussinesqSimpleFoam -parallel >log (note that <n> is number of processors you have set in decomposeParDict). | * 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: | Now openFoam starts solving the problem. To see how residuals are changing do these steps: | ||
Line 93: | Line 95: | ||
== History == | == History == | ||
− | * [[User:Amiraslanpour|Amiraslanpour]] 18:40, 14 Dec 2012 (GMT) : Initial upload | + | * [[User:Amiraslanpour|Mojtaba Amiraslanpour]] ([http://ghazanfarian.ir/Group.htm Complex Heat and Flow Simulation Research Group at University of Zanjan]) |
+ | * 18:40, 14 Dec 2012 (GMT) : Initial upload | ||
+ | |||
+ | [[Category:Incompressible flow solvers]] | ||
+ | [[Category:Heat transfer solvers]] |
Latest revision as of 10:16, 21 October 2013
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