PorousGasificationFoam
porousGasificationFoam for reacting flow through porous media. OpenFOAM-8 equivalent (release day) at https://github.com/btuznik/porousGasificationFoam. https://doi.org/10.1016/j.cpc.2022.108407
Install / Use
/learn @pjzuk/PorousGasificationFoamREADME
porousGasificationMedia README
This folder contains files and programs created under GNU GPL v3 License
by Filip Mróz & Pawel Jan Zuk 2025
if you use any part of this work please cite the scientific contribution:
OpenFOAM solver for thermal and chemical conversion in porous media Pawel Jan Zuk, Bartosz Tużnik, Tadeusz Rymarz, Kamil Kwiatkowski, Marek Dudyński, Flavio C. C. Galeazzo, Guenther C. Krieger Filho Submitted to Computer Physics Communications
This is a OpenFOAM-v2406 build which can be also obtained form https://github.com/pjzuk/porousGasificationFoam
The authors provide the equivalent (on the day of release) implementation in OpenFOAM 8, which can be obtained from repository: https://github.com/btuznik/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
-
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 from inside of porousGasificationFoam folder:
$ 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.
-
Open new terminal and again set the nessesary paths:
$ source source source /<PATH TO OpenFOAM-v2406 installation folder>/OpenFOAM-v2406/etc/bashrc
$ source <PATH TO porousGasificationMediaDirectories>/porousGasificationMediaDirectiories -
Check the setting:
run:
icoFoam -help(output should be 'usage info')
echo $WM_PROJECT_USER_DIR
echo $FOAM_HGS\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
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
85.3kCreate 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
342.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
342.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
