30 template<
class FaceList,
class Po
intField>
33 const FaceList& faces,
42 localPoints0Ptr_(nullptr)
46 template<
class FaceList,
class Po
intField>
56 localPoints0Ptr_(nullptr)
60 template<
class FaceList,
class Po
intField>
63 const FaceList& faces,
71 localPoints0Ptr_(nullptr)
75 template<
class FaceList,
class Po
intField>
84 localPoints0Ptr_(nullptr)
88 template<
class FaceList,
class Po
intField>
95 points0_(patch.points0_),
96 patch0Ptr_(patch.patch0Ptr_, false),
97 localPoints0Ptr_(nullptr)
101 template<
class FaceList,
class Po
intField>
104 PrimitiveOldTimePatch<FaceList, PointField>&& patch
107 PrimitivePatch<FaceList,
PointField>(move(patch)),
108 points0_(move(patch.points0_)),
109 patch0Ptr_(patch.patch0Ptr_),
110 localPoints0Ptr_(nullptr)
116 template<
class FaceList,
class Po
intField>
125 template<
class FaceList,
class Po
intField>
135 if (!localPoints0Ptr_)
137 const labelList& meshPts = this->meshPoints();
145 locPts[pointi] = points0_[meshPts[pointi]];
160 return *localPoints0Ptr_;
164 template<
class FaceList,
class Po
intField>
170 return patch0Ptr_->faceCentres();
174 template<
class FaceList,
class Po
intField>
180 return patch0Ptr_->faceAreas();
184 template<
class FaceList,
class Po
intField>
190 return patch0Ptr_->faceNormals();
194 template<
class FaceList,
class Po
intField>
203 return NullObjectRef<Field<PointType>>();
207 template<
class FaceList,
class Po
intField>
211 if (has0()) patch0Ptr_->clearOut();
217 template<
class FaceList,
class Po
intField>
221 if (has0()) patch0Ptr_->clearGeom();
227 template<
class FaceList,
class Po
intField>
233 if (has0()) patch0Ptr_->clearGeom();
#define forAll(list, i)
Loop across all elements in list.
void size(const label)
Override size to be inconsistent with allocated storage.
const Field< PointType > & pointNormals0() const
Return old-time point normals for patch.
const Field< PointType > & faceAreas0() const
Return old-time face areas for patch.
virtual void movePoints0(const Field< PointType > &)
Correct patch after moving points.
virtual ~PrimitiveOldTimePatch()
Destructor.
const Field< PointType > & faceCentres0() const
Return old-time face centres for patch.
PrimitiveOldTimePatch(const FaceList &faces, const Field< PointType > &points, const Field< PointType > &points0)
Construct from components.
const Field< PointType > & faceNormals0() const
Return old-time face normals for patch.
const Field< PointType > & localPoints0() const
Return pointField of old-time points in patch.
A list of faces which address into the list of points.
std::remove_reference< PointField >::type::value_type PointType
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
void deleteDemandDrivenData(DataType *&dataPtr)
constexpr bool isRef
Determine whether a type is a reference.
const T & NullObjectRef()
Return const reference to the nullObject of type T.
GeometricField< Type, pointPatchField, pointMesh > PointField