PorousGasificationFoam
Solver for reacting flow through porous media. foam-extend-4.1 equivalent at https://github.com/pjzuk/porousGasificationFoam. Submitted to Computer Physics Communications
Install / Use
/learn @btuznik/PorousGasificationFoamREADME
porousGasificationFoam
Table of content:
<a name="installation"></a>
Installation guide
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 &
<a name="source"></a>
Source guide
Installation part
Files for installation and sourcing paths:
-
./README.md-- readme file -
./porousGasificationMediaDirectories-- file with enviromental variables needed for the installation -
./Allwmake-- installation script
porousGasificationFoam -- solver
porousGasificationFoam's main code, that uses porousGasificationMedia library. All calculations are scheduled here.
porousGasificationMedia -- library
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
Utilities
- 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.
<a name="doc"></a>
Documentation
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.
Related Skills
node-connect
341.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.8kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.6kCommit, push, and open a PR
