Go to the documentation of this file.
42 volumetricBSplinesMotionSolver,
50 Foam::volumetricBSplinesMotionSolver::volumetricBSplinesMotionSolver
64 controlPointsMovement_
66 volBSplinesBase_.getTotalControlPointsNumber(),
80 label pastControlPoints(0);
84 const label nb = boxes[iNURB].getControlPoints().size();
87 forAll(localControlPointsMovement, iCP)
89 localControlPointsMovement[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);
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
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.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
vectorField controlPointsMovement_
Movement of the control points.
Class constructing a number of volumetric B-Splines boxes, read from dynamicMeshDict....
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
virtual void movePoints(const pointField &)
Update local data for geometry changes.
Mesh consisting of general polyhedral cells.
#define forAll(list, i)
Loop across all elements in list.
Field< vector > vectorField
Specialisation of Field<T> for vector.
void setControlPointsMovement(const vectorField &controlPointsMovement)
Set control points movement.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
PtrList< NURBS3DVolume > & boxesRef()
Get non-const reference to the vol. B-splines boxes.
Macros for easy insertion into run-time selection tables.
virtual void solve()
Solve for motion/ Does nothing.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Virtual base class for mesh motion solver.
volBSplinesBase & volBSplinesBase_
Reference to the underlaying volumetric B-Splines base.
const polyMesh & mesh() const
Return reference to mesh.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void boundControlPointMovement(vectorField &controlPointsMovement)
Bound control points movement.
defineTypeNameAndDebug(combustionModel, 0)