Table of content:
The installation guide is prepared under the assumption
that OpenFOAM is installed in standard location: /opt/OpenFoam-8/
To install the 'porousGasificationFoam':
-
Set the OpenFOAM environmental paths by typing (modify the command if your OpenFOAM is installed elsewhere):
$ source /opt/OpenFoam-8/etc/bashrc
-
check the environmental settings
- run any OpenFOAM solver, e.g. icoFoam -help
- type:
$ echo $WM_PROJECT_USER_DIR
-
Optionally change the destination path. The default path is:
$WM_PROJECT_USER_DIR/
. To change destination path edit file porousGasificationMediaDirectories located in the library installation folder. -
Set the package environment by typing:
$ source porousGasificationMediaDirectories
-
Run the install script:
$ . ./Allwmake
-
Test the installation by running the solver:
$ porousGasificationFoam
In case of errors:
-
Make sure the OpenFoam and all required packaches have been correctly installed, by testing one of the tutorial cases provided with OpenFOAM. For more information on installing OpenFoam vist OpenFOAM Foundation website.
-
Open new terminal and again set the nessesary paths:
$ source source /opt/OpenFoam-8/etc/bashrc
$ source <PATH TO porousGasificationMediaDirectories>/porousGasificationMediaDirectiories
-
Check the setting:
run:
icoFoam -help
(output should be 'usage info')
echo $WM_PROJECT_USER_DIR (typically $HOME/OpenFoam/<user_name>-8/
echo $FOAM_HGS
(typically$HOME/OpenFoam/<user_name>-8/porousGasificationMedia
)\If missing set these variables manually.
-
Run instalaltion script and check for errors:
./Allwmake > log_install &
Files for installation and sourcing paths:
-
./README.md
-- readme file -
./porousGasificationMediaDirectories
-- file with enviromental variables needed for the installation -
./Allwmake
-- installation script
porousGasificationFoam's main code, that uses porousGasificationMedia library. All calculations are scheduled here.
porousGasificationMedia library inculding four major parts:
- pyrolysisModels -- classes that evaluate porous medium state and properties.
- thermophysicalModels -- implementation of thermophysical and chemical properties od porous medium.
- fieldPorosityModel -- implementation of mechanical properties of porous medium.
- radiationModels -- heterogeneous radiation model
- setPorosity -- utility for creating porosity fields:
- porosityF -- porosity field
- Df -- Darcy porous resitance tensor
- totalMassPorousGasificationFoam -- Integrate solid state mass over the whole computational domain. The calculation is performed for each stored time step.
The documentation of the model can be generated with Doxygen. To build the documentation the doxygen and the graphviz packages are required. For Ubuntu users the packages can be obtained with the following command:
$ sudo apt-get install doxygen graphviz
To generate the documentation go to the $POROUS_DOC_SRC/doc/Doxygen
directory
and type:
$ ./Allwmake
In order to view the documentation open the
$WM_PROJECT_DIR/doc/Doxygen/html/index.html
in a desired internet browser.