1

Previous: Running the case Up: Test case modification Next: Watching phase volumes in

This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

Mesh refinement using refineMesh utility

  • Very coarse mesh was used in previous case

     

  • Refine current mesh using refineMesh utility

     

  • First, delete all time directories (except for 0 )

     

  • Utility refineMesh can refine the mesh

     

  • New refined mesh is placed into a new time directory

     

  • refineMesh can be used directly using default set up (in controlDict set startFrom to latestTime):

    # refineMesh
    # refineMesh
    # paraFoam

refine1
refine2
refine3

Figure: Original mesh, one refinement, two refinements

  • Mesh can be refined locally using refineMesh with dictionary system/refineMeshDict e.g.:

    # cp $FOAM_APP/utilities/mesh/manipulation/refineMesh/\
    refineMeshDict ./system/

     

  • In file system/refineMeshDict can be specified the name of the cell set (rotor) to be refined:

 

// Cells to refine; name of cell set
set rotor;

 

  • Run refineMesh on original mesh:

    # rm -rf 0.00*
    # refineMesh -dict system/refineMeshDict
    # topoSet
    # refineMesh -dict system/refineMeshDict

    # paraFoam

refine21
refine22
refine23

Figure: Original mesh, one refinement, two refinements

  • In file system/refineMeshDict can be specified refinement options

     

  • Example of refining cell set just in one direction (z axis):

     

 

// List of directions to refine, if global or patchLocal
directions
(
//    tan1
//    tan2
    normal
);

 

  • Run refineMesh (two times):

    # rm -rf 0.00*
    # refineMesh -dict system/refineMeshDict
    # topoSet
    # refineMesh -dict system/refineMeshDict
    # checkMesh
    # paraFoam

     

  • It is recommended to use checkMesh to make sure no errors were made during the refinement
refine31
refine32
refine33

Figure: Original mesh, one refinement, two refinements