Public Member Functions | |
moleculeCloud (const polyMesh &mesh, const potential &pot, bool readFields=true) | |
Construct given mesh and potential references. More... | |
moleculeCloud (const polyMesh &mesh, const potential &pot, const IOdictionary &mdInitialiseDict, bool readFields=true) | |
Construct given mesh, potential and mdInitialiseDict. More... | |
void | evolve () |
Evolve the molecules (move, calculate forces, control state etc) More... | |
void | calculateForce () |
void | applyConstraintsAndThermostats (const scalar targetTemperature, const scalar measuredTemperature) |
const polyMesh & | mesh () const |
const potential & | pot () const |
const List< DynamicList< molecule * > > & | cellOccupancy () const |
const InteractionLists< molecule > & | il () const |
const List< molecule::constantProperties > | constProps () const |
const molecule::constantProperties & | constProps (label id) const |
Random & | rndGen () |
void | writeXYZ (const fileName &fName) const |
Write molecule sites in XYZ format. More... | |
![]() | |
TypeName ("Cloud") | |
Runtime type information. More... | |
Cloud (const polyMesh &mesh, const IDLList< ParticleType > &particles) | |
Construct from mesh and a list of particles. More... | |
Cloud (const polyMesh &mesh, const word &cloudName, const IDLList< ParticleType > &particles) | |
Construct from mesh, cloud name, and a list of particles. More... | |
Cloud (const polyMesh &mesh, const bool checkClass=true) | |
Construct from mesh by reading from file. More... | |
Cloud (const polyMesh &pMesh, const word &cloudName, const bool checkClass=true) | |
Construct from mesh by reading from file with given cloud instance. More... | |
const polyMesh & | pMesh () const |
Return the polyMesh reference. More... | |
label | size () const |
DynamicList< label > & | labels () |
label | nTrackingRescues () const |
Return nTrackingRescues. More... | |
void | trackingRescue () const |
Increment the nTrackingRescues counter. More... | |
const PackedBoolList & | cellHasWallFaces () const |
Whether each cell has any wall faces (demand driven data) More... | |
virtual bool | hasWallImpactDistance () const |
Switch to specify if particles of the cloud can return. More... | |
const const_iterator | begin () const |
const const_iterator | cbegin () const |
const const_iterator | end () const |
const const_iterator | cend () const |
iterator | begin () |
iterator | end () |
void | clear () |
void | addParticle (ParticleType *pPtr) |
Transfer particle to cloud. More... | |
void | deleteParticle (ParticleType &) |
Remove particle from cloud and delete. More... | |
void | cloudReset (const Cloud< ParticleType > &c) |
Reset the particles. More... | |
template<class TrackData > | |
void | move (TrackData &td, const scalar trackTime) |
Move the particles. More... | |
template<class TrackData > | |
void | autoMap (TrackData &td, const mapPolyMesh &) |
Remap the cells of particles corresponding to the. More... | |
IOobject | fieldIOobject (const word &fieldName, const IOobject::readOption r) const |
Helper to construct IOobject for field and current time. More... | |
template<class DataType > | |
void | checkFieldIOobject (const Cloud< ParticleType > &c, const IOField< DataType > &data) const |
Check lagrangian data field. More... | |
template<class DataType > | |
void | checkFieldFieldIOobject (const Cloud< ParticleType > &c, const CompactIOField< Field< DataType >, DataType > &data) const |
Check lagrangian data fieldfield. More... | |
virtual void | readFields () |
Read the field data for the cloud of particles. Dummy at. More... | |
virtual void | writeFields () const |
Write the field data for the cloud of particles Dummy at. More... | |
virtual bool | writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const |
Write using given format, version and compression. More... | |
void | writePositions () const |
Write positions to <cloudName>_positions.obj file. More... | |
Private Member Functions | |
void | buildConstProps () |
void | setSiteSizesAndPositions () |
void | buildCellOccupancy () |
Determine which molecules are in which cells. More... | |
void | calculatePairForce () |
void | evaluatePair (molecule &molI, molecule &molJ) |
bool | evaluatePotentialLimit (molecule &molI, molecule &molJ) const |
void | calculateTetherForce () |
void | calculateExternalForce () |
void | removeHighEnergyOverlaps () |
void | initialiseMolecules (const IOdictionary &mdInitialiseDict) |
void | createMolecule (const point &position, label cell, label tetFace, label tetPt, label id, bool tethered, scalar temperature, const vector &bulkVelocity) |
label | nSites () const |
vector | equipartitionLinearVelocity (scalar temperature, scalar mass) |
vector | equipartitionAngularMomentum (scalar temperature, const molecule::constantProperties &cP) |
moleculeCloud (const moleculeCloud &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const moleculeCloud &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
const polyMesh & | mesh_ |
const potential & | pot_ |
List< DynamicList< molecule * > > | cellOccupancy_ |
InteractionLists< molecule > | il_ |
List< molecule::constantProperties > | constPropList_ |
Random | rndGen_ |
Additional Inherited Members | |
![]() | |
typedef ParticleType | particleType |
typedef IDLList< ParticleType >::iterator | iterator |
typedef IDLList< ParticleType >::const_iterator | const_iterator |
![]() | |
static word | cloudPropertiesName |
Name of cloud properties dictionary. More... | |
Definition at line 56 of file moleculeCloud.H.
|
private |
Disallow default bitwise copy construct.
moleculeCloud | ( | const polyMesh & | mesh, |
const potential & | pot, | ||
bool | readFields = true |
||
) |
Construct given mesh and potential references.
Definition at line 1103 of file moleculeCloud.C.
References molecule::readFields().
moleculeCloud | ( | const polyMesh & | mesh, |
const potential & | pot, | ||
const IOdictionary & | mdInitialiseDict, | ||
bool | readFields = true |
||
) |
Construct given mesh, potential and mdInitialiseDict.
Definition at line 1133 of file moleculeCloud.C.
References clear(), and molecule::readFields().
|
private |
Definition at line 41 of file moleculeCloud.C.
References Foam::abort(), constProp(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, Foam::Info, dictionary::lookup(), IOobject::MUST_READ_IF_MODIFIED, Foam::nl, IOobject::NO_WRITE, List::size(), and dictionary::subDict().
|
private |
Definition at line 96 of file moleculeCloud.C.
References forAllIter, and molecule::constantProperties::nSites().
|
private |
Determine which molecules are in which cells.
Definition at line 109 of file moleculeCloud.C.
References forAll, and forAllIter.
|
private |
Definition at line 128 of file moleculeCloud.C.
References cellOccupancy, forAll, forAllIter, UPstream::nonBlocking, and UPstream::nRequests().
Definition at line 33 of file moleculeCloudI.H.
References pairPotentialList::electrostatic(), molecule::constantProperties::electrostaticSites(), pairPotential::energy(), pairPotentialList::energy(), forAll, pairPotentialList::force(), pairPotential::force(), molecule::id(), Foam::mag(), Foam::magSqr(), molecule::constantProperties::pairPotentialSites(), particle< Type >::position(), molecule::potentialEnergy(), pairPotentialList::rCutSqr(), pairPotential::rCutSqr(), molecule::rf(), molecule::constantProperties::siteCharges(), molecule::siteForces(), molecule::constantProperties::siteIds(), and molecule::sitePositions().
Definition at line 156 of file moleculeCloudI.H.
References pairPotentialList::electrostatic(), molecule::constantProperties::electrostaticSites(), Foam::endl(), pairPotential::energy(), pairPotentialList::energy(), forAll, molecule::id(), Foam::mag(), Foam::magSqr(), molecule::constantProperties::pairPotentialSites(), pairPotentialList::rCutMaxSqr(), pairPotentialList::rCutSqr(), pairPotentialList::rMin(), pairPotential::rMin(), molecule::constantProperties::siteCharges(), molecule::constantProperties::siteIds(), molecule::sitePositions(), and WarningInFunction.
|
private |
Definition at line 216 of file moleculeCloud.C.
References tetherPotentialList::energy(), forAllIter, and tetherPotentialList::force().
|
private |
Definition at line 243 of file moleculeCloud.C.
References forAllIter.
|
private |
Definition at line 252 of file moleculeCloud.C.
References DynamicList::append(), cellOccupancy, Foam::endl(), Foam::findIndex(), forAll, forAllIter, molecule::id(), Foam::Info, Foam::nl, UPstream::nonBlocking, UPstream::nRequests(), particle< Type >::origId(), UPstream::parRun(), Foam::reduce(), and Foam::tab.
|
private |
Definition at line 476 of file moleculeCloud.C.
References Foam::abort(), Foam::cos(), Foam::det(), Foam::endl(), Foam::FatalError, FatalErrorInFunction, Foam::findIndex(), forAll, dictionary::found(), Foam::Info, Foam::inv(), dictionary::lookup(), molecule::constantProperties::mass(), n, zone::name(), Foam::nl, Vector< scalar >::one, p, phi, Foam::constant::mathematical::pi(), Foam::pow(), psi, R, Foam::readScalar(), Foam::sign(), Foam::sin(), List::size(), dictionary::subDict(), WarningInFunction, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
private |
Definition at line 996 of file moleculeCloud.C.
References Foam::abort(), Foam::cos(), Foam::FatalError, FatalErrorInFunction, Foam::I, molecule::constantProperties::mass(), Foam::nl, phi, Foam::constant::mathematical::pi(), molecule::constantProperties::pointMolecule(), psi, Foam::sin(), molecule::SPECIAL_TETHERED, Foam::constant::mathematical::twoPi(), and Vector< scalar >::zero.
|
private |
Definition at line 1087 of file moleculeCloud.C.
References forAllConstIter(), and n.
|
inlineprivate |
Definition at line 299 of file moleculeCloudI.H.
References Foam::constant::physicoChemical::k, and Foam::sqrt().
|
inlineprivate |
Definition at line 314 of file moleculeCloudI.H.
References Foam::constant::physicoChemical::k, molecule::constantProperties::linearMolecule(), molecule::constantProperties::momentOfInertia(), Foam::sqrt(), DiagTensor< Cmpt >::xx(), DiagTensor< Cmpt >::yy(), and DiagTensor< Cmpt >::zz().
|
private |
Disallow default bitwise assignment.
void evolve | ( | ) |
Evolve the molecules (move, calculate forces, control state etc)
Definition at line 1162 of file moleculeCloud.C.
References Cloud::move().
void calculateForce | ( | ) |
Definition at line 1180 of file moleculeCloud.C.
References forAllIter, Tensor::zero, and Vector< scalar >::zero.
void applyConstraintsAndThermostats | ( | const scalar | targetTemperature, |
const scalar | measuredTemperature | ||
) |
Definition at line 1203 of file moleculeCloud.C.
References Foam::endl(), forAllIter, Foam::Info, Foam::max(), Foam::nl, and Foam::sqrt().
|
inline |
Definition at line 344 of file moleculeCloudI.H.
Referenced by molecule::writeFields().
|
inline |
Definition at line 350 of file moleculeCloudI.H.
|
inline |
Definition at line 357 of file moleculeCloudI.H.
|
inline |
Definition at line 364 of file moleculeCloudI.H.
|
inline |
Definition at line 371 of file moleculeCloudI.H.
Referenced by molecule::move().
|
inline |
Definition at line 378 of file moleculeCloudI.H.
|
inline |
Definition at line 384 of file moleculeCloudI.H.
void writeXYZ | ( | const fileName & | fName | ) | const |
Write molecule sites in XYZ format.
Definition at line 1231 of file moleculeCloud.C.
References forAll, forAllConstIter(), Foam::nl, molecule::constantProperties::siteIds(), Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
Referenced by molecule::writeFields().
|
private |
Definition at line 65 of file moleculeCloud.H.
|
private |
Definition at line 67 of file moleculeCloud.H.
|
private |
Definition at line 69 of file moleculeCloud.H.
|
private |
Definition at line 71 of file moleculeCloud.H.
|
private |
Definition at line 73 of file moleculeCloud.H.
|
private |
Definition at line 75 of file moleculeCloud.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.