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/)
-   -   [snappyHexMesh] Geometry Generation In SnappyHexMeshDict (https://www.cfd-online.com/Forums/openfoam-meshing/61502-geometry-generation-snappyhexmeshdict.html)

henrik January 20, 2009 12:31

Geometry Generation In SnappyHexMeshDict
 
Hi Christian,

in the OF-spirit, the searchable objects are runtime-selectable. Therefore you can create your own, e.g. truckGroup, and link it to the mesh generator at runtime. truckGroup would then read a list of position out of the dictionary.

Alternative, if this stretches your C++ knowledge, I would suggest to use the m4 macro-preprocessor.

Henrik

chtrapp January 21, 2009 05:39

Hello Henrik, you are right
 
Hello Henrik,

you are right, this would be a very good starting point to get into coding my own extensions, since I'm sure that this is a rather simple problem. The m4 option looks to me like the least comfortable solution because as far as I understand m4, getting it to support loops takes some effort.
Anyway, I've heard a rumor that tools for grouping/ replicating geometries in the snappyHexMeshDict have been implemented but not yet documented.

Thanks for your advice, Christian


All times are GMT -4. The time now is 08:16.