Public Member Functions | |
TypeName ("pairPotential") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, pairPotential, dictionary,(const word &name, const dictionary &pairPotentialProperties),(name, pairPotentialProperties)) | |
pairPotential (const word &name, const dictionary &pairPotentialProperties) | |
Construct from components. More... | |
pairPotential (const pairPotential &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~pairPotential () |
Destructor. More... | |
void | setLookupTables () |
scalar | rMin () const |
scalar | dr () const |
scalar | rCut () const |
scalar | rCutSqr () const |
scalar | energy (const scalar r) const |
scalar | force (const scalar r) const |
List< Pair< scalar > > | energyTable () const |
List< Pair< scalar > > | forceTable () const |
bool | writeTables () const |
virtual scalar | unscaledEnergy (const scalar r) const =0 |
scalar | scaledEnergy (const scalar r) const |
scalar | energyDerivative (const scalar r, const bool scaledEnergyDerivative=true) const |
const dictionary & | pairPotentialProperties () const |
bool | writeEnergyAndForceTables (Ostream &os) const |
virtual bool | read (const dictionary &pairPotentialProperties)=0 |
Read pairPotential dictionary. More... | |
void | operator= (const pairPotential &)=delete |
Disallow default bitwise assignment. More... | |
Static Public Member Functions | |
static autoPtr< pairPotential > | New (const word &name, const dictionary &pairPotentialProperties) |
Return a reference to the selected viscosity model. More... | |
Protected Member Functions | |
void | scaleEnergy (scalar &e, const scalar r) const |
Protected Attributes | |
word | name_ |
dictionary | pairPotentialProperties_ |
scalar | rCut_ |
scalar | rCutSqr_ |
scalar | rMin_ |
scalar | dr_ |
List< scalar > | forceLookup_ |
List< scalar > | energyLookup_ |
energyScalingFunction * | esfPtr_ |
bool | writeTables_ |
Definition at line 57 of file pairPotential.H.
pairPotential | ( | const word & | name, |
const dictionary & | pairPotentialProperties | ||
) |
Construct from components.
Definition at line 56 of file pairPotential.C.
|
delete |
Disallow default bitwise copy construction.
|
inlinevirtual |
Destructor.
Definition at line 131 of file pairPotential.H.
|
protected |
Definition at line 40 of file pairPotential.C.
References Foam::e, pairPotential::esfPtr_, pairPotential::name_, energyScalingFunction::New(), pairPotential::pairPotentialProperties_, and energyScalingFunction::scaleEnergy().
TypeName | ( | "pairPotential" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
pairPotential | , | ||
dictionary | , | ||
(const word &name, const dictionary &pairPotentialProperties) | , | ||
(name, pairPotentialProperties) | |||
) |
|
static |
Return a reference to the selected viscosity model.
Definition at line 31 of file pairPotentialNew.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, dictionary::lookup(), Foam::name(), and Foam::nl.
void setLookupTables | ( | ) |
Definition at line 77 of file pairPotential.C.
Referenced by azizChen::azizChen(), coulomb::coulomb(), dampedCoulomb::dampedCoulomb(), exponentialRepulsion::exponentialRepulsion(), lennardJones::lennardJones(), maitlandSmith::maitlandSmith(), and noInteraction::noInteraction().
|
inline |
Definition at line 28 of file pairPotentialI.H.
References pairPotential::rMin_.
|
inline |
Definition at line 34 of file pairPotentialI.H.
|
inline |
Definition at line 40 of file pairPotentialI.H.
|
inline |
Definition at line 46 of file pairPotentialI.H.
Foam::scalar energy | ( | const scalar | r | ) | const |
Definition at line 131 of file pairPotential.C.
References Foam::abort(), Foam::e, Foam::FatalError, FatalErrorInFunction, k, and Foam::nl.
Foam::scalar force | ( | const scalar | r | ) | const |
Definition at line 94 of file pairPotential.C.
References Foam::abort(), f(), Foam::FatalError, FatalErrorInFunction, k, and Foam::nl.
Foam::List< Foam::Pair< Foam::scalar > > energyTable | ( | ) | const |
Definition at line 153 of file pairPotential.C.
References UList< T >::first(), forAll, and k.
Referenced by pairPotential::writeEnergyAndForceTables().
Foam::List< Foam::Pair< Foam::scalar > > forceTable | ( | ) | const |
Definition at line 116 of file pairPotential.C.
References UList< T >::first(), forAll, and k.
Referenced by pairPotential::writeEnergyAndForceTables().
|
inline |
Definition at line 52 of file pairPotentialI.H.
|
pure virtual |
Implemented in noInteraction, maitlandSmith, lennardJones, exponentialRepulsion, dampedCoulomb, coulomb, and azizChen.
Foam::scalar scaledEnergy | ( | const scalar | r | ) | const |
Definition at line 168 of file pairPotential.C.
References Foam::e.
Foam::scalar energyDerivative | ( | const scalar | r, |
const bool | scaledEnergyDerivative = true |
||
) | const |
Definition at line 178 of file pairPotential.C.
|
inline |
Definition at line 167 of file pairPotential.H.
References pairPotential::pairPotentialProperties_.
Referenced by coulomb::read(), dampedCoulomb::read(), lennardJones::read(), and noInteraction::read().
bool writeEnergyAndForceTables | ( | Ostream & | os | ) | const |
Definition at line 29 of file pairPotentialIO.C.
References Foam::e, Foam::endl(), pairPotential::energyTable(), UList< T >::first(), forAll, pairPotential::forceTable(), IOstream::good(), Foam::Info, pairPotential::name_, Foam::nl, and token::SPACE.
|
pure virtual |
Read pairPotential dictionary.
Implemented in noInteraction, maitlandSmith, lennardJones, exponentialRepulsion, dampedCoulomb, coulomb, and azizChen.
Definition at line 222 of file pairPotential.C.
Referenced by azizChen::read(), coulomb::read(), dampedCoulomb::read(), exponentialRepulsion::read(), lennardJones::read(), maitlandSmith::read(), and noInteraction::read().
|
delete |
Disallow default bitwise assignment.
|
protected |
Definition at line 64 of file pairPotential.H.
Referenced by pairPotential::scaleEnergy(), and pairPotential::writeEnergyAndForceTables().
|
protected |
Definition at line 65 of file pairPotential.H.
Referenced by pairPotential::pairPotentialProperties(), and pairPotential::scaleEnergy().
|
protected |
Definition at line 67 of file pairPotential.H.
|
protected |
Definition at line 68 of file pairPotential.H.
|
protected |
Definition at line 70 of file pairPotential.H.
Referenced by pairPotential::rMin().
|
protected |
Definition at line 71 of file pairPotential.H.
|
protected |
Definition at line 73 of file pairPotential.H.
|
protected |
Definition at line 74 of file pairPotential.H.
|
mutableprotected |
Definition at line 76 of file pairPotential.H.
Referenced by pairPotential::scaleEnergy().
|
protected |
Definition at line 78 of file pairPotential.H.