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
0
votes
1 answer

unable to run OpenFOAM docker image

I'm trying to use the OpenFOAM docker image. I installed everything correctly and when I try to run OpenFOAM_Start I get the error: Started machines may have new IP addresses. You may need to re-run the docker-machine env command. Error response…
Foad S. Farimani
  • 12,396
  • 15
  • 78
  • 193
0
votes
1 answer

PVFoamReader not imported with paraview.simple

I am starting to build python scripts for post-processing OpenFoam-5 results on paraview 5.4. I was able to record, alter and run scripts inside the paraview interface. I was also able to run some of these scripts outside of the paraview interface,…
Rodrigo Torres
  • 386
  • 2
  • 13
0
votes
1 answer

OpenFoam: Cannot find blockMeshDict file in polyMesh folder

Using the command terminal, I try to access the blockMeshDict file from the docker. I access the cavity folder, constant folder, then polyMesh folder. I know the blockMeshDict file is supposed to be within the polyMesh folder, but when I enter 'ls'…
A. L
  • 19
  • 2
0
votes
1 answer

mounting sdb on /mnt using docker and openfoam

I recently found the post entitled "How to mount volumes in docker release of openFOAM" post on this site on October 2016. That post asks about automatically mounting an already mounted (under bash or csh) volume through the Docker version of…
0
votes
1 answer

openFoam: Trouble reporting turbulence fields

I run openFoam 4.1, and have a problem extracting the turbulent stress tensor, R, in my k-eps simulation. I asked the same question on cfd-online.com 4 days ago, and have not received a reply, so I am now hoping that maybe someone can help me…
KJA
  • 313
  • 3
  • 14
0
votes
1 answer

Problems in Installing a CFD software, OpenFOAM-4.0, on CentOS SL RHEL

I am an MPhil student doing CFD, and I have some problems when I am trying to install OpenFOAM-4.0 on the computer cluster managed by the university. I followed the instructions given by the following…
0
votes
0 answers

Installation of OpenFOAM throws read-only file system error while using Docker

I'm trying to install OpenFOAM on Mac with Docker. I followed this tutorial. After I ran docker run -ti openfoamplus/of_v30plus_rhel66 /bin/bash to start downloading, it threw the error docker: failed to register layer: Error processing tar…
APCoding
  • 303
  • 2
  • 19
0
votes
0 answers

Picture generation with paraview

I am currently using Openfoam to run simulations that have nearly 180 time steps. The completed timesteps range from -180 to -6. I have to generate pictures using paraview. I have to generate picture for every 10th timestep i.e -180,-170,-160 and…
0
votes
2 answers

What is the main idea of OpenFOAM?

I just want to get the main idea/principle of openFOAM and how you create a simulation, please let me know where I go wrong, So basically you have a object that interacts with gas or liquid and you want to simulate this, so you create model of the…
Cleo
  • 67
  • 8
0
votes
0 answers

Using version control software to maintain OpenFOAM CFD simulation cases

For my master's thesis I am working with the open source CFD simulation tool OpenFOAM. For those unfamiliar with its structure: You usually create a directory for each simulation case. This directory consists of a couple of sub directories, in which…
Niclas
  • 143
  • 6
0
votes
1 answer

Remove a symbol from shared object

I don't have much control over the build process, but I am getting an undefined reference to symbols error when my next piece of code tries to link with the previously compiled shared library. [Although the said symbols are there in the so] here is…
fedvasu
  • 1,232
  • 3
  • 18
  • 38
0
votes
1 answer

Reading text file for specfic keyword included inside brackets '{'

I would like to read a text file which is like below. It has Geometry names --> " hvac,OUTLET,INLET,Lamelle,duct and wall" In this case only 6, but I may vary depending on the different simulation of CFD process. I would like to extract only the…
Balaji Spades
  • 39
  • 1
  • 6
-1
votes
1 answer

Error when trying to connect to openfoam repository in lubuntu and unable to install openfoamXYZ-default

Using latest stable lubuntu: 23.04 used: curl -s https://dl.openfoam.com/add-debian-repo.sh | sudo bash run into issues with sudo apt-get update or install openfoamxyz-default Here's what happens when I run update: Err:8…
Red Beard
  • 13
  • 3
-1
votes
1 answer

How to solve the Laplacian Scheme in OpenFOAM with undefined parameters

I have a script for fvSchemes file and the fvSchemes and fvsolutions files have defined all the solvers. This is my fvSchemes file. FoamFile { version 2.0; format ascii; class dictionary; location "system/fin"; object fvSchemes; } // * * * * * * * *…
Thamasha
  • 347
  • 2
  • 4
  • 9
-1
votes
1 answer

Running command after launching OpenFoam container in the same bash script

I am trying to run a few different processes in a bash script. I am using a Mac. Basically, I am running a CFD software called OpenFOAM that runs in a docker container, which needs to be launched before I can start running the simulation. I am…
user3611
  • 151
  • 2
  • 9
1 2 3
12
13