# OpenFOAM ::::::{tab-set} :sync-group: lang :class: lang-tabs :::::{tab-item} En :sync: en OpenFOAM®(Open Field Operation and Manipulation) CFD With [OpenFOAM](http://www.openfoam.com/) it is possible to simulate: - Complex fluid flows with chemical reactions, turbulence, heat transfer, etc. - Solid body dynamics - Electromagnetics On HPCFS, users can access OpenFOAM with the command: ``` bash module load openfoam source $foamDotFile ``` At the start, a local directory for OpenFOAM must be created, where simulations are later stored and where tutorials can be copied for your own use: ``` bash mkdir -p $FOAM_RUN cp -r $FOAM_TUTORIALS $FOAM_RUN ``` For programming, the [PyFoam](http://openfoamwiki.net/index.php/Contrib_PyFoam) library can also be used, which requires installing ``` bash module load python/2.7.3 ``` ## Examples with usage instructions: - ### [Example 1: Lid-driven cavity](cavity.md) - ### [Example 2: damBreak](damBreak.md) - ### [Example 3: sonicFoam](sonicFoam.md) - [OpenFOAM extend](extended.md) - [Binary installation in the home directory](bin_home.md) - [Test computation times for the Lid-driven cavity case](test_cavity.md) - [Test computation times for the Angled duct case](test_angledduct.md) ::::: :::::{tab-item} Slo :sync: sl **OpenFOAM** OpenFOAM®(Open Field Operation and Manipulation) CFD Z [OpenFOAM](http://www.openfoam.com/) je mogoče simulirati: - Kompleksne pretoke fluidov s kemijskimi reakcijami, turbulenco, prenosom toplote itd. - Dinamiko trdnih teles - Elektromagnetiko Na HPCFS lahko uporabniki dosežejo OpenFOAM z ukazom: ``` bash module load openfoam source $foamDotFile ``` Na začetku je potrebno narediti lokalni direktorij za OpenFOAM, kjer se kasneje shranjujejo simulacije in kamor se lahko prenesejo tutoriali za lastno uporabo: ``` bash mkdir -p $FOAM_RUN cp -r $FOAM_TUTORIALS $FOAM_RUN ``` Za programiranje lahko uporabimo še knjižnico [PyFoam](http://openfoamwiki.net/index.php/Contrib_PyFoam), za katero je potrebno namestiti ``` bash module load python/2.7.3 ``` ## Primeri z napotki za uporabo: - ### [Primer 1: Lid-driven cavity](cavity.md) - ### [Primer 2: damBreak](damBreak.md) - ### [Primer 3: sonicFoam](sonicFoam.md) - [OpenFOAM extend](extended.md) - [Binarna namestitev v domači imenik](bin_home.md) - [Testni računski časi za primer Lid-driven cavity](test_cavity.md) - [Testni računski časi za primer Angled duct](test_angledduct.md) ::::: :::::: ```{toctree} :maxdepth: 1 cavity damBreak sonicFoam extended bin_home test_cavity test_angledduct ```