OpenFOAM-dev / data /applications /utilities /postProcessing /dataConversion /foamToEnsight /checkData.H
Download data/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkData.H from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 473 Bytes
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkData.H
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkData.H
-
curl -L -o checkData.H https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/applications/utilities/postProcessing/dataConversion/foamToEnsight/checkData.H
473 Bytes
| // ignore special fields or fields that we don't handle | |
| // | |
| bool variableGood = true; | |
| for (label n1=0; n1<Times.size() && variableGood; ++n1) | |
| { | |
| // ignore _0 fields | |
| if (fieldName.size() > 2 && fieldName(fieldName.size() - 2, 2) == "_0") | |
| { | |
| variableGood = false; | |
| } | |
| else | |
| { | |
| variableGood = IOobject | |
| ( | |
| fieldName, | |
| Times[n1].name(), | |
| mesh, | |
| IOobject::NO_READ | |
| ).headerOk(); | |
| } | |
| } | |