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
1
vote
1 answer

Using the scale transfer function for the Point Gaussian representation in Paraview?

I have run the cyclone case from the OpenFOAM tutorials and want to view it using the builtin paraFOAM viewer which is based on Paraview 5.4.0. The simulation has a number of particles in the diameter range of [2e-5, 1e-4] and i would like to scale…
nluigi
  • 1,263
  • 2
  • 15
  • 35
1
vote
1 answer

HTCondor with OpenFOAM

I'm trying to launch some calculations in OpenFOAM from HTCondor. So far, we have only one multicore server OpenFOAM ready. OpenFOAM is installed from source (not using docker) following the instructions in:…
fern17
  • 467
  • 6
  • 20
1
vote
1 answer

Is it possible to load OpenFOAM solution file using ParaView Python Shell without using GUI?

I have OpenFOAM solution file obtained on HPC (cluster computer system) in which I have no GUI access. I have Python code that works on Python Shell of ParaView without any problem but I need to open ParaView to use the code. I want to run this…
mantrasuser3
  • 99
  • 2
  • 12
1
vote
0 answers

OpenFOAM installation for Windows - \config.json: The system cannot find the file specified

I am trying to install OpenFOAM on Windows 10 following the instruction on the official website (http://www.openfoam.com/download/install-binary-windows.php). When I click OF_Env_Create to initiate Docker environment I get an error message: open…
Sim81
  • 1,574
  • 2
  • 9
  • 15
1
vote
1 answer

how to open paraView in a Docker window

This is the same problem discussed in Cannot connect to X server using docker on OS X - Part II but never resolved. In MacOS El Capitan, I'm running the OpenFOAM binary under Docker as there is no native version. I want to use paraView to view…
tcp
  • 31
  • 3
1
vote
1 answer

Converting Mesh File To STL

How can I convert a mesh file (.meshdat or .msh) into STL file format? I have a 3D mesh file. I need to convert it into STL for a CFD problem.
user4179448
1
vote
1 answer

Installing OpenFoam on Mac OS

Can anyone give instructions that work? There have been various posts on this but nothing that works for me. My attempt below is the best I can do. Trying to install OpenFoam v1606+ on OS X El Capitan. I downloaded Docker and successfully ran…
tcp
  • 31
  • 3
1
vote
1 answer

How to mount volumes in docker release of openFOAM

I am running the docker release of openFOAM. While running openFOAM, I can't access any of the volumes that I have set up in /mnt. I can see them when I run: bash-4.1$ lsblk NAME MAJ:MIN RM SIZE RO TYPE …
user7093238
1
vote
1 answer

How to plot particle trajectory in paraview

I have Lagrangian data (particle id, diameter, and velocity) came from particulate flow simulation with OpenFOAM and I wanted to plot the particle trajectories inside the paraview. I have created the VTK files through the time.
behzad baghapour
  • 127
  • 2
  • 11
1
vote
1 answer

How can I specify the port range for OpenMPI to use?

I'm using Open MPI 1.6.5 to run OpenFOAM in parallel on 3 nodes. I'm allowed to open only a few TCP ports for security reasons. So I opened ports 49990-50009 for Open MPI and set the values in openmpi-mca-params.conf as…
Ping Wang
  • 11
  • 1
  • 2
1
vote
1 answer

Cannot connect to X server using docker on OS X - Part II

I'm having the same difficulty as the one expressed here: Cannot connect to X server using docker on OSX I'm very confused about the recommended instructions in the above link (I'm a novice on docker), and I'm hoping to get clarification about the…
ASR
  • 11
  • 1
  • 2
1
vote
0 answers

getting error : ‘Foam::solverPersistentData::typeName’ is ambiguous

while executing ./Allwmake getting the ambiguous error. error is given below. Found nvcc -- enabling CUDA support. SOURCE=lduMatrixConversion/lduMatrixConversion.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast…
1
vote
2 answers

C++ - Cannot declare variable to be of abstract type

I'm trying to write some code in C++ (for OpenFOAM) but I'm getting the error given in the title for this bit of code: // Copy set void backup ( const polyMesh& mesh, const word& fromName, const topoSet& fromSet, const word&…
user3460758
  • 957
  • 7
  • 15
  • 25
1
vote
0 answers

c++ Hidden Unique Pointer

I have some code which depends on some include files which are partly defined at the start of source files (which is usual) and others which are used within functions. I typical example for that are the OpenFOAM solver sources. Because the scheme of…
Gerhard Stein
  • 1,543
  • 13
  • 25
1
vote
1 answer

openfoam openmpi error: libmpi.so.0 not found

Whenever I try to compile a solver in openfoam, I get the error: /usr/bin/ld: warning: libmpi.so.0, needed by /opt/openfoam211/platforms/linux64GccDPOpt/lib/openmpi-system/libPstream.so, not found (try using -rpath or -rpath-link) /usr/bin/ld:…
Foamer007
  • 13
  • 1
  • 3