CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [Technical] Creating 2D cartesian cut cell meshes (https://www.cfd-online.com/Forums/openfoam-meshing/135584-creating-2d-cartesian-cut-cell-meshes.html)

hertzsprung May 15, 2014 07:22

Creating 2D cartesian cut cell meshes
 
I've just started using OpenFOAM to investigate atmospheric flow over terrain. I'm looking for suggestions on creating a cut cell mesh to model the terrain as a patch.

I already have code that adapts a regular grid produced by blockMesh to add a mountain using terrain following coordinates. I'm hoping to reuse the ground patch from this mesh in creating the cut cell mesh. Could snappyHexMesh be coaxed into producing such a mesh, or should I look at writing my own application?

hertzsprung May 20, 2014 18:03

This is as far as I've got with snappyHexMesh: http://goo.gl/GWUnSJ

I've created an .obj of the ground patch with writeMeshObj and used this as the surface with refinement level (0 0). Any suggestions are most welcome!


All times are GMT -4. The time now is 19:38.