Download data/src/mesh/blockMesh/blockDescriptor/blockDescriptorTest.C from introvoyz042/OpenFOAM-dev: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/src/mesh/blockMesh/blockDescriptor/blockDescriptorTest.C
- Command line
-
hf download hf://datasets/introvoyz042/OpenFOAM-dev/data/src/mesh/blockMesh/blockDescriptor/blockDescriptorTest.C
-
curl -L -o blockDescriptorTest.C https://huggingface.co/datasets/introvoyz042/OpenFOAM-dev/resolve/main/data/src/mesh/blockMesh/blockDescriptor/blockDescriptorTest.C
405 Bytes
| namespace Foam | |
| { | |
| inline point faceCorr(const point& p) | |
| { | |
| return p/mag(p); | |
| } | |
| } | |
| Foam::label Foam::blockDescriptor::correctFacePoints | |
| ( | |
| FixedList<List<point>, 6>& facePoints | |
| ) const | |
| { | |
| forAll(facePoints, facei) | |
| { | |
| forAll(facePoints[facei], pointi) | |
| { | |
| facePoints[facei][pointi] = faceCorr(facePoints[facei][pointi]); | |
| } | |
| } | |
| return 6; | |
| } | |