Questions tagged [openfoam]

OpenFOAM is a free, open source computational fluid dynamics (CFD) software package released free and open-source under the GNU General Public License.

OpenFOAM has a large user base across most areas of engineering and science, from both commercial and academic organisations. OpenFOAM has an extensive range of features to solve anything from complex fluid flows involving chemical reactions, turbulence and heat transfer, to solid dynamics and electromagnetics.

The three main forks of OpenFOAM can be found through the following links:

OpenCFD Ltd (ESI Group): http://www.openfoam.com/

The OpenFOAM Foundation Ltd: https://openfoam.org/

OpenFOAM Unofficial Extend Project: https://github.com/Unofficial-Extend-Project-Mirror

Models are implemented using an equation syntax that closely follows the mathematical notation, e.g. to evolve the P-1 radiation model:

∇ ⋅ ( Γ ∇ G ) − a G = − 4 ϵ σ T 4 − E

the following code is used:

// Solve G transport equation
solve
(
    fvm::laplacian(gamma, G_)
  - fvm::Sp(a_, G_)
 ==
  - 4.0*(e_*physicoChemical::sigma*pow4(T_)) - E_
);

Many applications are supplied ready-to-use with the code together with a tutorial suite to showcase the functionality. As an open-source tool, users are able to see the inner workings of the algorithms and models, providing a robust platform for future developments and collaborative research.

189 questions
2
votes
1 answer

Lagrangian particle tracking for already solved flows (post-processing mode)

I am trying to run the particle tracking solver icoUncoupledKinematicParcelFoam in post-processing (I already have the flow files). Do you know where I can find some tutorial if any? I have already solved a flow case such as pitzDaily. I…
Sim81
  • 1,574
  • 2
  • 9
  • 15
2
votes
3 answers

OpenFoam Win 10, Ubuntu Bash installing fails

I am trying to install OpenFoam on ubuntu bash on Win 10. I am following these steps: OpenFoam installation on win 10 Ubuntu bash at this step source $HOME/.bashrc I get the following error: -bash: eval: line 38: syntax error near unexpected…
2
votes
1 answer

Oscillating mesh movement

I want to run a simulation in which the DTCHull mesh oscillates left and right in a sinusoidal manner across the water, as is shown in this diagram (Oldfield et. al. 2015): How would I do this with interDyMFoam? I've seen examples in which…
2
votes
2 answers

paraFoam command is not working

I recently started using Ubuntu for learning OpenFoam and I'm currently using this tutorial for learning http://files.the-foam-house5.webnode.es/200000361-e64a0e745a/Chapter2_Plates.pdf I followed the tutorial up until section 2.3.3 and placed the…
user44033
  • 31
  • 1
  • 3
2
votes
1 answer

Boundary assignment in openFOAM

I created the mesh shown in the image below using snappyHexMesh. I have assigned boundaries in blockMesh, but they have been removed after running snappy. My question is how to create boundaries like inlet/outlet to the mesh shown in the image.…
Moe.A
  • 81
  • 10
2
votes
1 answer

Cannot connect to X server using docker on OSX

I am trying to install openFoam on Mac OS X 10.10.5 (http://www.openfoam.com/download/install-binary.php) by using Docker-toolbox. I can do without problems all the suggested steps, but then, when I try to run the example included in the…
Marco
  • 45
  • 1
  • 4
2
votes
2 answers

Installing OpenFOAM through Docker

I'm having a bad time trying to install OpenFOAM using Docker(on a MacOSX El Capitan). I've been following the official tutorial. When I try to execute the first script (installOpenFOAM+), through the command line: docker-machine ssh default…
Lucas Bragança
  • 547
  • 6
  • 11
2
votes
3 answers

Calling alias Command from python script

I need to run an OpenFOAM command by automatized python script. My python code contains the lines subprocess.Popen(['OF23'], shell=True) subprocess.Popen(['for i in *; do surfaceConvert $i file_path/$i.stlb; done', shell=True) where OF23 is a shell…
Balaji Spades
  • 39
  • 1
  • 6
2
votes
0 answers

Undefined reference to .so file in C++

Working on Open Foam, created my model and sub-model, library is compiled successfully but when I try to compile solver using the same library linker is giving me this…
brbbhatti
  • 21
  • 1
1
vote
0 answers

Creating Docker Container for usage of Openfoam v1612+

I want to be able to use openfoam v1612+ in docker Container. I am using Ubuntu. I am hoping for any Help and if there is any better more organized way. I will write all the steps that i have done so far by following this answer and the error that i…
khaled
  • 33
  • 7
1
vote
2 answers

How to find the version of OpenFOAM installed on WSL-Ubuntu?

I have installed the OpenFOAM package via sudo apt install openfoam on Ubuntu, inside the Windows WSL environment. But I have no idea what version/variant of the FLOSS is installed. I tried the blockMesh -help hoping it would give me some…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
1
vote
1 answer

Running OpenFoam with Python

i want to create a bigger application around OpenFoam, considering that the meshing is done with a Python api, i want to include the ./Allrun script into my Python files. First instict was to import os in python and insert the commands from the…
Nico Su
  • 49
  • 4
1
vote
2 answers

Install Salome Failed with error "No module named '_omnipy'"

I've trying to install SALOME-9.8 on ubuntu 20.04. After the download and extraction, I ran the script salome. But i get the following error: ERROR:salomeContext:Unexpected error: Traceback (most recent call last): File…
1
vote
0 answers

Can I use periodic boundary conditions for `U` but not for `p`?

I am trying to numerically compute the drag force around a cylinder due to pressure-driven flow. Here is a crude diagram: I am using OpenFOAM v2012 (the openfoam.com version, not the openfoam.org version). For the top and bottom walls, as well as…
K.defaoite
  • 103
  • 1
  • 8
1
vote
1 answer

OpenFoam: changing STL position lead to undefine behaviour or crash

I am testing example of the Magnus Effect for OpenFoam-9 https://drive.google.com/file/d/1J2rKIRU8DAZadORyjUfd6OBBcfR-9rLo/view?usp=sharing What I got from https://holzmann-cfd.com/community/training-cases/magnus-effect And it works fine: But when…
1
2
3
12 13