STEP1 Create groups of faces for all patches (undefined surfaces will became in OpenFOAM as defaultFaces patch). For example, for internal simulation, we need 3 groups: inlet, outlet and walls.
STEP2 Mesh geometry.
STEP3 Create group of faces for mesh. This is done by using Create group command in SMESH module and selecting checkbox faces. In the appeared dialog box we must enter name for group (or patch in OpenFOAM), e.g., inlet, outlet, walls. Then, we must select Group using geometry option and click on interesting group in tree view of meshed solid.
STEP4 Export your mesh to I-DEAS format file (filename.unv). This file should be saved to the root of OpenFOAM case (where directories 0, constant, system).
STEP5 Run utility ideasUnvToFoam. For example, if we are using terminal in case root, we should type:
Code:
ideasUnvToFoam filename.unv
Code:
checkMesh
Code:
transformPoints -scale '(0.001 0.001 0.001)'
没有评论:
发表评论