|
[Sponsors] |
January 18, 2024, 05:42 |
Unstructured grid mesh in openfoam
|
#1 |
New Member
eddy
Join Date: Jan 2024
Posts: 24
Rep Power: 2 |
In a structured grid, we can assign alpha values in the 0 file to distinguish phases since we know the number of each cell. However, if we generate an unstructured grid using another tool and import it, where each cell exists (e.g., a tetrahedral mesh), is it possible to assign alpha values in a similar manner to differentiate phases?
Thanks. |
|
January 19, 2024, 07:20 |
|
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 747
Rep Power: 14 |
If the phase definition geometry is simple, then just use the setFields utility to define the alphas. If the definition is more complex, then something like swak4Foam coded may help, or use the coded functionality. Finally, if you can't define the phase distribution analytically (eg it comes from a different precursor simulation) then you will need to map/interpolate the data onto the cell centres for your new mesh.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[blockMesh] Every cell must be convex in the OpenFOAM mesh grid? | AlexMarvel | OpenFOAM Meshing & Mesh Conversion | 1 | April 27, 2022 14:27 |
decomposePar problem: Cell 0contains face labels out of range | vaina74 | OpenFOAM Pre-Processing | 37 | July 20, 2020 06:38 |
Suggestion for a new sub-forum at OpenFOAM's Forum | wyldckat | Site Help, Feedback & Discussions | 20 | October 28, 2014 10:04 |
Moving mesh | Niklas Wikstrom (Wikstrom) | OpenFOAM Running, Solving & CFD | 122 | June 15, 2014 07:20 |
[ICEM] Orthogonality/Skew issues in 3D unstructured mesh | eddyy19g | ANSYS Meshing & Geometry | 3 | February 13, 2014 10:36 |