-
Notifications
You must be signed in to change notification settings - Fork 604
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
checkMesh, functionObjects::checkMesh: Updated and made consistent
Now both the checkMesh utility and functionObject operate in the same manner with the same controls, executing the same checkGeometry and checkTopology functions from the new meshCheck library. The controls have been updated and made more consistent and flexible, in particular by the addition of optional user specification for the non-orthogonality and skewness error thresholds: Application checkMesh Description Checks validity of a mesh. Usage \b checkMesh [OPTION] Options: - \par noTopology Skip checking the mesh topology - \par -allTopology Check all (including non finite-volume specific) addressing - \par -allGeometry Check all (including non finite-volume specific) geometry - \par -meshQuality Check against user defined (in \a system/meshQualityDict) quality settings - \par -region \<name\> Specify an alternative mesh region. - \par -writeSurfaces Reconstruct cellSets and faceSets of problem faces and write to postProcessing directory. - \par -surfaceFormat <format> Format used to write the cellSets and faceSets surfaces e.g. vtk or ensight. - \par -writeSets Reconstruct pointSets of problem points nd write to postProcessing directory. - \par -setFormat <format> Format used to write the pointSets e.g. vtk or ensight. - \par -nonOrthThreshold <threshold value in degrees> Threshold in degrees for reporting non-orthogonality errors, default: 70" - \par -skewThreshold <threshold value> Threshold for reporting skewness errors, default: 4. Class Foam::functionObjects::checkMesh Description Executes primitiveMesh::checkMesh(true) every execute time for which the mesh changed, i.e. moved or changed topology. Useful to check the correctness of changing and morphing meshes. Usage \table Property | Description | Required | Default value type | type name: checkMesh | yes | noTopology | Skip checking the mesh topology | no | false allTopology | Check all addressing | no | false allGeometry | Check all geometry | no | false writeSurfaces | Reconstruct and write problem faces | no | false surfaceFormat | Format for problem faceSets | no | vtk writeSets | Reconstruct and write problem points | no | false setFormat | Format used to write the problem pointSets | no | vtk nonOrthThreshold | Threshold for non-orthogonality errors | no | 70 deg skewThreshold | Threshold for reporting skewness errors | no | 4 \endtable Example of checkMesh specification: \verbatim checkMesh { type checkMesh; libs ("libutilityFunctionObjects.so"); executeControl timeStep; executeInterval 10; allGeometry true; allTopology true; writeSurfaces true; surfaceFormat vtk; writeSets true; setFormat vtk; } \endverbatim or using the standard configuration file: \verbatim #includeFunc checkMesh(executeInterval=10, allGeometry=true) \endverbatim
- Loading branch information
Henry Weller
committed
Oct 24, 2023
1 parent
819c938
commit 4ab9979
Showing
11 changed files
with
278 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
EXE_INC = \ | ||
-I$(LIB_SRC)/finiteVolume/lnInclude \ | ||
-I$(LIB_SRC)/meshCheck/lnInclude | ||
-I$(LIB_SRC)/meshCheck/lnInclude \ | ||
-I$(LIB_SRC)/sampling/lnInclude | ||
|
||
LIB_LIBS = \ | ||
-lfiniteVolume \ | ||
-lmeshCheck | ||
-lmeshCheck \ | ||
-lsampling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.