CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Unstructured grid mesh in openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 18, 2024, 04:42
Default Unstructured grid mesh in openfoam
  #1
New Member
 
eddy
Join Date: Jan 2024
Posts: 23
Rep Power: 2
tjwldhks79 is on a distinguished road
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.
tjwldhks79 is offline   Reply With Quote

Old   January 19, 2024, 06:20
Default
  #2
Senior Member
 
Join Date: Apr 2020
Location: UK
Posts: 696
Rep Power: 14
Tobermory will become famous soon enough
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.
Tobermory is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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 13:27
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 05:38
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
[ICEM] Orthogonality/Skew issues in 3D unstructured mesh eddyy19g ANSYS Meshing & Geometry 3 February 13, 2014 09:36


All times are GMT -4. The time now is 01:21.