blockDescriptorTest.C
Go to the documentation of this file.
1 namespace Foam
2 {
3  inline point faceCorr(const point& p)
4  {
5  return p/mag(p);
6  }
7 }
8 
9 
11 (
12  FixedList<List<point>, 6>& facePoints
13 ) const
14 {
15  forAll(facePoints, facei)
16  {
17  forAll(facePoints[facei], pointi)
18  {
19  facePoints[facei][pointi] = faceCorr(facePoints[facei][pointi]);
20  }
21  }
22 
23  return 6;
24 }
p
volScalarField & p
Definition: createFieldRefs.H:8
forAll
#define forAll(list, i)
Loop across all elements in list.
Definition: stdFoam.H:290
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:62
Foam::blockDescriptor::facePoints
FixedList< pointField, 6 > facePoints(const pointField &points) const
Return the list of face-points for all of the faces of the block.
Definition: blockDescriptor.C:287
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::faceCorr
point faceCorr(const point &p)
Definition: blockDescriptorTest.C:3
Foam::Vector
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
Definition: Vector.H:62
Foam::mag
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Foam::blockDescriptor::correctFacePoints
void correctFacePoints(FixedList< pointField, 6 > &) const
Correct the location of the given face-points.
Definition: blockDescriptor.C:343