Skip to content
johnmoore4 edited this page May 21, 2015 · 14 revisions

Each MeshOpt case must contain a file named MeshOpt.config in the current directory. MeshOpt.config is composed of three parameter lists:

  • CaseParameters
  • BLParameters
  • HighOrderParameters

Parameter lists begin with the parameter list name and enclose the list options in brackets. Comments are designated by a '#' and can be placed anywhere in the configuration file. The parameter name and value is always separated by an equal sign, and the assignment is terminated with a semicolon. White space should not matter.

The list of current valid options are detailed below for each of the parameter lists. A sample configuration file containing currently supported parameters and their default values is located in the Demo directory.

CaseParameters

  • GMSHFileName (default = None) -- Path to the original GMSH mesh. Important: The mesh must be saved with the flag 'Mesh.SaveParametric=1' in order to save the parametric coordinates of the nodes. There are a few other nuances with the GMSH file that will be covered later.
  • STEPFileName (default = None) -- Path to the reference CAD geometry. The file must end with the suffix '.stp'.
  • OutputFileName (default = meshopt.msh) -- The name of the high order mesh file to be generated by MeshOpt.

BLParameters

  • GenerateBL (default = false) -- Specifies whether or not to insert a boundary layer. If true a boundary layer with desired thickness Thickness, growth ratio GrowthRatio, and number of layers NLayers will be generated on all surfaces with GMSH physical ID BLSurfID.
  • HasBL (default = false) -- Specifies if the GMSH mesh already has a boundary layer. There is currently no check to ensure that the GMSH boundary layer is valid or compatible.
  • BLSurfID (default = 7) -- The physical surface ID on which to generate boundary layers.
  • BLTermID (default = 20) -- The physical surface ID of symmetry or periodic surfaces in 3D.
  • Thickness (default = 0.01) -- The desired thickness of the boundary layer. Note that this will not be the actual thickness of the generated BL, only a target value.
  • GrowthRatio (default = 1.3) -- The growth factor (ratio between two successive thicknesses) of the boundary layer elements.
  • NLayers (default = 1) -- The number of layers to generate in the BL.
  • MaxBLGenIters (default = 25) -- Maximum number of sweeps for the BL generation algorithm to take.

HighOrderParameters

  • Order (default = 2) -- The order of the mesh elements to generate.
  • OptimizedNodeSpacing (default = false) -- Whether or not to used optimized node spacing.
  • TargetMinQuality (default = 0.9) -- Target minimum quality of the mesh elements.

Clone this wiki locally