48 void Foam::interpolatingSolidBodyMotionSolver::calcScale()
52 const pointDist pDist(pMesh, patchSet_,
points0(), do_);
60 (do_ - pDist.primitiveField())/(do_ - di_),
97 patches_(
wordReList(coeffDict().lookup(
"patches"))),
98 patchSet_(mesh.boundaryMesh().patchSet(patches_)),
99 CofG_(coeffDict().lookup(
"CofG")),
100 di_(coeffDict().lookup<scalar>(
"innerDistance")),
101 do_(coeffDict().lookup<scalar>(
"outerDistance")),
141 if (scale_[pointi] > small)
144 if (scale_[pointi] > 1 - small)
147 CofG_ +
s.transformPoint(points0[pointi] - CofG_);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
static pointMesh & New(const word &name, const polyMesh &mesh)
Construct and return the named DemandDrivenMeshObject.
Internal::FieldType & primitiveFieldRef()
Return a reference to the primitive field.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Solid-body motion of the mesh specified by a run-time selectable motion function. Applies SLERP inter...
~interpolatingSolidBodyMotionSolver()
Destructor.
virtual tmp< pointField > curPoints() const
Return point location obtained from the current motion field.
virtual void topoChange(const polyTopoChangeMap &)
Update local data for topology changes.
interpolatingSolidBodyMotionSolver(const word &name, const polyMesh &, const dictionary &dict)
Construct from polyMesh and dictionary.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
Virtual base class for mesh motion solver.
const polyMesh & mesh() const
Return reference to mesh.
void constrain(PointField< Type > &pf, const bool overrideValue=false) const
Apply boundary conditions (single-patch constraints) and.
Mesh representing a set of points created from polyMesh.
Virtual base class for displacement motion solvers.
virtual void mapMesh(const polyMeshMap &)
Update from another mesh using the given map.
pointField & points0()
Return reference to the reference field.
Class containing mesh-to-mesh mapping information.
Mesh consisting of general polyhedral cells.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual bool write(const bool write=true) const
Write using setting from DB.
Septernion class used to perform translations and rotations in 3D space.
vector transformPoint(const vector &v) const
Transform the given coordinate point.
static const septernion I
Base class for defining solid-body motions.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
gmvFile<< "tracers "<< particles.size()<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().x()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().y()<< " ";}gmvFile<< nl;forAllConstIter(Cloud< passiveParticle >, particles, iter){ gmvFile<< iter().position().z()<< " ";}gmvFile<< nl;forAll(lagrangianScalarNames, i){ word name=lagrangianScalarNames[i];IOField< scalar > s(IOobject(name, runTime.name(), cloud::prefix, mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
addToRunTimeSelectionTable(polyPatch, mergedCyclicPolyPatch, word)
word name(const bool)
Return a word representation of a bool.
const dimensionSet dimless
vectorField pointField
pointField is a vectorField.
layerAndWeight min(const layerAndWeight &a, const layerAndWeight &b)
defineTypeNameAndDebug(combustionModel, 0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
quaternion slerp(const quaternion &qa, const quaternion &qb, const scalar t)
Spherical linear interpolation of quaternions.
dimensionedScalar cos(const dimensionedScalar &ds)