OpenFOAM-dev / data /applications /utilities /postProcessing /dataConversion /foamToEnsight /checkMeshMoving.H
Download data/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkMeshMoving.H from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkMeshMoving.H
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkMeshMoving.H
-
curl -L -o checkMeshMoving.H https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkMeshMoving.H
662 Bytes
| // check for "points" in any of the result directories | |
| bool meshMoving = false; | |
| if (Times.size() > 1) | |
| { | |
| // We already loaded a mesh (usually from constant). See if any other | |
| // points files | |
| forAll(Times, timeI) | |
| { | |
| if (Times[timeI].name() != mesh.pointsInstance()) | |
| { | |
| typeIOobject<pointIOField> io | |
| ( | |
| "points", | |
| Times[timeI].name(), | |
| polyMesh::meshSubDir, | |
| mesh, | |
| IOobject::NO_READ | |
| ); | |
| if (io.headerOk()) | |
| { | |
| meshMoving = true; | |
| break; | |
| } | |
| } | |
| } | |
| } | |