Go to the documentation of this file.
47 mesh_.pointsInstance(),
61 mesh_.pointsInstance(),
87 Info<<
"leastSquaresVectors::calcLeastSquaresVectors() :"
88 <<
"Calculating least square gradient vectors"
96 const labelUList& neighbour = mesh_.neighbour();
105 label own = owner[facei];
106 label nei = neighbour[facei];
116 pVectors_.boundaryField();
123 const labelUList& faceCells =
p.patch().faceCells();
130 const vector& d = pd[patchFacei];
132 dd[faceCells[patchFacei]] +=
sqr(d)/
magSqr(d);
144 label own = owner[facei];
145 label nei = neighbour[facei];
149 pVectors_[facei] = (invDd[own] & d)/
magSqr(d);
150 nVectors_[facei] = -(invDd[nei] & d)/
magSqr(d);
165 const vector& d = pd[patchFacei];
167 patchLsP[patchFacei] = (invDd[faceCells[patchFacei]] & d)/
magSqr(d);
173 Info<<
"leastSquaresVectors::calcLeastSquaresVectors() :"
174 <<
"Finished calculating least square gradient vectors"
182 calcLeastSquaresVectors();
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
virtual ~leastSquaresVectors()
Destructor.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual bool movePoints()
Delete the least square vectors when the mesh moves.
void calcLeastSquaresVectors()
Construct Least-squares gradient vectors.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
leastSquaresVectors(const fvMesh &)
Construct given an fvMesh.
dimensionedSphericalTensor inv(const dimensionedSphericalTensor &dt)
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
Least-squares gradient scheme vectors.
Generic dimensioned Type class.
Mesh data needed to do the Finite Volume discretisation.
static const SymmTensor zero
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const volVectorField & C() const
Return cell centres as volVectorField.
const fvPatch & patch() const
Return patch.
A 1D vector of objects of type <T>, where the size of the vector is known and can be used for subscri...
Templated abstract base-class for optional mesh objects used to automate their allocation to the mesh...
Graphite solid properties.
Generic GeometricField class.
defineTypeNameAndDebug(combustionModel, 0)
dimensioned< scalar > magSqr(const dimensioned< Type > &)
A class representing the concept of 0 used to avoid unnecessary manipulations for objects that are kn...