42 volumetricBSplinesMotionSolver,
50 Foam::volumetricBSplinesMotionSolver::volumetricBSplinesMotionSolver
64 controlPointsMovement_
66 volBSplinesBase_.getTotalControlPointsNumber(),
78 auto& pointMovement = tPointMovement.ref();
80 label pastControlPoints(0);
84 const label nb = boxes[iNURB].getControlPoints().
size();
87 forAll(localControlPointsMovement, iCP)
89 localControlPointsMovement[iCP] =
90 controlPointsMovement_[pastControlPoints + iCP];
96 boxes[iNURB].computeNewPoints
98 localControlPointsMovement
102 pointMovement += partialMovement() -
mesh().
points();
104 pastControlPoints += nb;
107 return tPointMovement;
134 if (controlPointsMovement_.size() != controlPointsMovement.
size())
137 <<
"Attempting to replace controlPointsMovement with a set of " 141 controlPointsMovement_ = controlPointsMovement;
150 volBSplinesBase_.boundControlPointMovement(controlPointsMovement);
void size(const label n)
Older name for setAddressableSize.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
virtual void movePoints(const pointField &)
Update local data for geometry changes.
Type & refCast(U &obj)
A dynamic_cast (for references) to Type reference.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Virtual base class for mesh motion solver.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
Macros for easy insertion into run-time selection tables.
virtual void updateMesh(const mapPolyMesh &)
Update the mesh corresponding to given map.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
virtual const pointField & points() const
Return raw points.
#define forAll(list, i)
Loop across all elements in list.
virtual void solve()
Solve for motion/ Does nothing.
void boundControlPointMovement(vectorField &controlPointsMovement)
Bound control points movement.
label size() const noexcept
The number of entries in the list.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
defineTypeNameAndDebug(combustionModel, 0)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
void setControlPointsMovement(const vectorField &controlPointsMovement)
Set control points movement.
Mesh data needed to do the Finite Volume discretisation.
Field< vector > vectorField
Specialisation of Field<T> for vector.
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
Class constructing a number of volumetric B-Splines boxes, read from dynamicMeshDict. Useful for various sensitivities and optMeshMovement classes.
static constexpr const zero Zero
Global zero (0)