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

vtk filter for OpenFOAM

I want to filter a pressure by thresholding using python-vtk import vtk filename = "a.foam" reader = vtk.vtkOpenFOAMReader() reader.SetFileName(filename) reader.CreateCellToPointOn() reader.DecomposePolyhedraOn() …
matsubara
  • 1
  • 2
-1
votes
1 answer

Missing boost files from an unknown path

I receive errors on missing boost files but to my knowledge I already have them installed by YAST (OpenSUSE). However, I still receive the error. I need help fixing this problem. When installation from YAST package did not work, I installed boost…
hphys
  • 47
  • 6
-1
votes
1 answer

Dynamic chart that is updated each time step in paraview

I am using paraview to post process OpenFOAM results. I'm working on an open channel case. In addition to OpenFOAM run results, I've post-processed the flow rate through the inlet. Now I have a file that contains the flow rate in each time step. So,…
-1
votes
1 answer

Openfoam, multiphaseInterfoam, non-constant inlet

I run multiphaseInterfoam, and I have trouble with the inlet being non-constant (I want it to be constant.) Here are my alpha-files\ /--------------------------------- C++ -----------------------------------\ FoamFile { version 2.0; …
KJA
  • 313
  • 3
  • 14
-1
votes
2 answers

Can I sell results from a GPL software

My question is, Can I use GNU General Public License v3 software (in this specific case the OpenFOAM) to do consultancy? The source code will not be changed neither charged. The idea is just charging for the results given by the software. Do I need…
pmbl
  • 11
-2
votes
1 answer

Temperature Dependent Thermal Properties in LaplacianFoam

I'm solving the heat equation using the finite volume method in OpenFOAM and the way it is set up right now is to average the thermal properties of the temperature field. What I want to achieve is to implement the thermal properties that correspond…
-2
votes
1 answer

/bin/bash: No such file or directory when running a shell script from Matlab

I'm creating a Matlab code in windows 10, which in turns uses the Ubuntu environment (inside windows 10) to perform some calculations mixing Matlab and OpenFOAM. I summary, what I do is that I have a Matlab code, which at certain moment calls a…
-3
votes
1 answer

openfoam C++ operator& override

template tmp> operator& ( const fvMatrix&, const tmp>& ); Could anyone help me understand this override function in OpenFoam? As we…
-3
votes
3 answers

How does C++ output an array by default?

My job made me work with OpenFOAM (fluid simulation stuff) which is based on C++. I know nothing about C++, not even how to compile a hello world program. In OpenFOAM you can output a three dimensional array as ascii in a text file. This is okay…
1 2 3
12
13