30 template<
class ParcelType>
35 youngsModulus_(this->dict_, 0.0),
36 poissonsRatio_(this->dict_, 0.0)
40 template<
class ParcelType>
47 youngsModulus_(
cp.youngsModulus_),
48 poissonsRatio_(
cp.poissonsRatio_)
52 template<
class ParcelType>
59 youngsModulus_(this->dict_,
"youngsModulus"),
60 poissonsRatio_(this->dict_,
"poissonsRatio")
64 template<
class ParcelType>
83 template<
class ParcelType>
89 label& nLocateBoundaryHits
92 ParcelType(searchEngine,
position, celli, nLocateBoundaryHits),
94 angularMomentum_(
Zero),
102 template<
class ParcelType>
106 return youngsModulus_.value();
110 template<
class ParcelType>
114 return poissonsRatio_.value();
120 template<
class ParcelType>
127 template<
class ParcelType>
131 return angularMomentum_;
135 template<
class ParcelType>
142 template<
class ParcelType>
146 return collisionRecords_;
150 template<
class ParcelType>
157 template<
class ParcelType>
160 return angularMomentum_;
164 template<
class ParcelType>
171 template<
class ParcelType>
175 return collisionRecords_;
179 template<
class ParcelType>
Class to hold thermo particle constant properties.
scalar youngsModulus() const
Return const access to Young's Modulus.
scalar poissonsRatio() const
Return const access to Poisson's ratio.
constantProperties()
Null constructor.
const vector & angularMomentum() const
Return const access to angular momentum.
vector f_
Force on particle due to collisions [N].
CollidingParcel(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label tetFacei, const label tetPti, const label facei)
Construct from mesh, coordinates and topology.
vector omega() const
Particle angular velocity.
const vector & f() const
Return const access to force.
collisionRecordList collisionRecords_
Particle collision records.
const vector & torque() const
Return const access to torque.
vector angularMomentum_
Angular momentum of Parcel in global reference frame [kg m2/s].
const collisionRecordList & collisionRecords() const
Return const access to the collision records.
vector torque_
Torque on particle due to collisions in global.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Mesh object that implements searches within the local cells and faces.
Calculates the inertia tensor and principal axes and moments of a polyhedra/cells/triSurfaces....
Mesh consisting of general polyhedral cells.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
barycentric coordinates(const polyMesh &mesh, const point &position, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the coordinates given the position and tet topology.
point position(const polyMesh &mesh, const barycentric &coordinates, const label celli, const label facei, const label faceTrii, const scalar stepFraction)
Return the position given the coordinates and tet topology.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool cp(const fileName &src, const fileName &dst, const bool followLink=true)
Copy, recursively if necessary, the source to the destination.