Questions tagged [openfoam]
OpenFOAM is a free, open source CFD software package developed by OpenCFD Ltd at ESI Group and distributed by the OpenFOAM Foundation.
56 questions
0
votes
0
answers
270
views
snappyHexMesh not meshing correct region
I created a simple model of cylindrical container to perform heat transfer simulation using FreeCAD for CAD modelling. I exported the model in stl format along with domain boundaries and faces. I have ...
0
votes
1
answer
125
views
Aerofoil study using CFD, struggling to find aerofoil coordinates
I’ve been messing around with Ansys and I’m struggling to find the aerofoil coordinates for a NACA 66-012?
I looked on Airfoil tools, but it doesn’t allow you to generate a 6 series aerofoil, only 4 ...
0
votes
1
answer
890
views
Can I use periodic boundary conditions for `U` but not for `p`?
Cross-posted from Stack Overflow. (https://stackoverflow.com/questions/70686368/can-i-use-periodic-boundary-conditions-for-u-but-not-for-p)
I am trying to numerically compute the drag force around a ...
0
votes
2
answers
1k
views
Openfoam: simplefoam: command not found
I was trying to install OpenFoam exactly as mentioned on their website.
But when I run simpleFoam -help it says command not found, even after restarting my PC.
I am ...
2
votes
0
answers
193
views
What is temporal order of accuracy of the PISO algorithm?
A few Computational Fluid Dynamics (CFD) codes implement the so called PISO (Pressure-Implicit with Splitting of Operators) algorithm for pressure-velocity coupling.
My concern is what is actual ...
2
votes
1
answer
2k
views
How to calculate skewness for a mesh?
I am writing a code to calculate mesh quality stats such as: cell volume, face areas and non-orthogonality between faces (basically something like OpenFOAM's ...
2
votes
3
answers
647
views
Flux sign and face normal confusion in finite volume method
I implemented a solver for the 2D steady-state heat equation (without heat generation and homogeneous material) $\nabla. (k\nabla T) = 0$, using finite volume method, however, I am having some ...
0
votes
1
answer
278
views
Getting streamline for a lid driven cavity flow in openFoam/ParaView
I have installed openFoam on Debian GNU/Linux and learning from official user guide. I have a problem with generating streamlines. I am trying to generate streamlines as explained in the post ...
1
vote
1
answer
3k
views
Differences between openfoam and freefem/fenics
I know a little about fenics and freefem.
There exists a big difference between those and OpenFoam?
They are used in a similar way (editing a file and writing code)? or perhaps it is made for other ...
1
vote
2
answers
615
views
Why OpenFOAM uses its own data structures and linear solvers?
I wonder why OpenFOAM code has its own data structures Lists, HashTables, ... etc. when there is the STL in C++?
Another ...
4
votes
1
answer
2k
views
Can Julia be used to create a large-scale CFD software like OpenFOAM?
I have some experience with some programming languages like C/C++, Fortran, Python, etc but recently, I am getting interested in Julia.
But, I am wondering if Julia could be used to create some large ...
0
votes
0
answers
82
views
The relation between PDE order and discretization order
In Jasak's Ph.D. thesis (2000), a notion is given about discretization of a transport equation:
For good accuracy, it is necessary for the order of the discretization to
be equal to or higher than the ...
2
votes
3
answers
1k
views
How is central difference scheme second-order accurate?
In an arbitrarily unstructured mesh, shown in the figure below, in the context of finite volume method, I want to obtain an approximation of $\phi_f$, where $N$ and $P$ are cell centers of adjacent ...
1
vote
1
answer
2k
views
How to let OpenFOAM write output at fixed time intervals _and_ keep the last few steps?
As described in https://openfoam.com/documentation/user-guide/controlDict.php I can use
writeControl timeStep
writeInterval 1
purgeWrite 10
to keep the ...
2
votes
0
answers
883
views
Understanding MP-PIC implementation in OpenFOAM
The multiphase particle-in-cell (MP-PIC) method is characterized by mapping particle properties from the Lagrangian coordinates to the Eulerian grid. However, the implementation of this method in ...