GridCommand
Jump to navigation
Jump to search
Grid
grid - Set grid refinement and adaption parameters, perform optimization
Synopsis
grid
[ quality ] [ ( obtuse | min.angle | max.angle | reb | joint | nodes | dimension | MaterialType ) ] [smooth] MaterialType [regrid] MaterialType [delete]
Description
This command has three major sub components. First, the command can compute and report various measures of the grid quality. Second, the user can perform a regrid on the current mesh and a selected field. Finally, the user can request grid smoothing.
Reporting Options
- quality
- This parameter selects the grid quality reporting option. This will compute the percentage of obtuse elements, the minimum internal element angle, the maximum internal element angle, and a report of the average, worst, and best element quality measures using the quality measure proposed by Randy Bank of UCSD (4.0 * sqrt(3.0) * area / square of (sum of side lengths)) for triangles and the ration of the circimsphere to the circumsphere for tetrahedra. Angles are reported in degrees.
- MaterialType
- This will limit the report to just the material specified.
- obtuse, min.angle, max.angle, reb, joint, nodes, dimension
- This indicates that the code should return one of the seven indicated quality measures as a tcl variable. In order, these refer to the percent obtuse elements, the minimum internal element angle, the maximum internal angle, the average element quality, one over the average of one over the element quality, the number of nodes, and the simulation dimensionality. Angles are reported in degrees. If none of these are chosen, the code reports all the values.
Smoothing
- smooth
- If this option is chosen the grid is smoothed. If a material is specified, only those meshes which match the material are smoothed. No interpolation is performed, so care must be exercised or existing data will be distorted.
- MaterialType
- This indicates the material type of regions to be smoothed.
Regrid
- regrid
- If this option is chosen the grid is refined. The standard error estimator is applied to the [../Post/select.html selected] variable and the grid is refined on the error. A material can be selected to control which regions are refined.
- delete
- This enables deletion as well as addition of nodes. Generally, this is not a good idea - you can unrefine areas needed by another dopant, for example.
- MaterialType
- This indicates the material type of regions to be regridded.
Examples
grid qual
This command computes the current grid quality.
grid silicon smooth
This command smooths the silicon mesh using an averaging technique. Only one smoothing step is applied.
Bugs and Missing Features
None.