Public Types | |
using | GeometryMotionModel = geometryMotionModel |
using | ContactForceModel = contactForceModel |
using | MotionModel = typename geometryMotionModel::MotionModel |
using | ModelStorage = typename ContactForceModel::contactForceStorage |
using | IdType = typename interaction::IdType |
using | IndexType = typename interaction::IndexType |
using | ExecutionSpace = typename interaction::ExecutionSpace |
using | ContactListType = contactListType< ModelStorage, ExecutionSpace, IdType > |
using | PairsContainerType = typename contactSearch::PairContainerType |
![]() | |
using | IdType = typename interactionBase::IdType |
using | IndexType = typename interactionBase::IndexType |
using | ExecutionSpace = typename interactionBase::ExecutionSpace |
![]() | |
using | IndexType = CELL_INDEX_TYPE |
using | IdType = ID_TYPE |
using | ExecutionSpace = DefaultExecutionSpace |
Public Member Functions | |
TypeInfoTemplate3 ("sphereInteraction", ContactForceModel, MotionModel, ContactListType) | |
sphereInteraction (systemControl &control, const particles &prtcl, const geometry &geom) | |
add_vCtor (interaction, sphereInteraction, systemControl) | |
bool | beforeIteration () override |
bool | iterate () override |
bool | afterIteration () override |
bool | update (const eventMessage &msg) override |
bool | sphereSphereInteraction () |
bool | sphereWallInteraction () |
![]() | |
TypeInfo ("interaction") | |
interaction (systemControl &control, const particles &prtcl, const geometry &geom) | |
virtual | ~interaction ()=default |
create_vCtor (interaction, systemControl,(systemControl &control, const particles &prtcl, const geometry &geom),(control, prtcl, geom)) | |
auto & | contactSearchPtr () |
auto & | contactSearchRef () |
const auto & | fileDict () const |
![]() | |
demInteraction (systemControl &control) | |
demInteraction (systemControl &control, const fileSystem &file) | |
![]() | |
TypeInfoNV ("property") | |
Type info. More... | |
property () | |
Emptry constructor, used for reading from a file. More... | |
property (const wordVector &materials, const realVector &densities) | |
Constructe from materials and densities. More... | |
property (const fileSystem &file) | |
Construct from file. More... | |
property (const dictionary &dict) | |
Construct from dictionary dict. More... | |
property (const property &)=default | |
Default copy. More... | |
property (property &&)=default | |
Default move. More... | |
property & | operator= (const property &)=default |
Default copy assignment. More... | |
property & | operator= (property &&)=default |
Default move assignment. More... | |
~property ()=default | |
Default destructor. More... | |
const auto & | dict () const |
Return dictionary. More... | |
auto | numMaterials () const |
Return number of materials. More... | |
const auto & | materials () const |
Return list of material names. More... | |
const auto & | densities () const |
Return the list of densities. More... | |
const word & | material (uint32 i) const |
Return the material name of material i. More... | |
bool | material (uint32 i, word &name) const |
Get the name of material i. More... | |
real | density (uint32 i) const |
Return density of material i. More... | |
bool | density (uint32 i, real &rho) const |
Get the density of material i. More... | |
bool | nameToIndex (const word &name, uint32 &idx) const |
Get the name of material in index idx Return true, if the name found, otherwise false. More... | |
bool | read (const dictionary &dict) |
Read from dictionary. More... | |
bool | write (dictionary &dict) const |
Write to dictionary. More... | |
![]() | |
TypeInfo ("demComponent") | |
demComponent (const word &name, systemControl &control) | |
virtual | ~demComponent ()=default |
const auto & | control () const |
auto & | control () |
real | dt () const |
real | currentTime () const |
auto & | timers () |
const auto & | timers () const |
![]() | |
eventObserver () | |
eventObserver (const eventSubscriber &subscriber, bool subscribe=true) | |
virtual | ~eventObserver () |
bool | subscribed () const |
bool | subscribe (const eventSubscriber &subscriber) |
void | invalidateSubscriber () |
![]() | |
interactionBase (const particles &prtcl, const geometry &geom) | |
const auto & | pStruct () const |
const auto & | surface () const |
const auto & | Particles () const |
auto & | Geometry () const |
Protected Types | |
using | rpPPInteraction = Kokkos::RangePolicy< Kokkos::IndexType< int32 >, Kokkos::Schedule< Kokkos::Dynamic > > |
range policy for p-p interaction execution More... | |
using | rpPWInteraction = rpPPInteraction |
range policy for p-w interaction execution More... | |
Protected Member Functions | |
bool | createSphereInteraction () |
bool | managePPContactLists () |
bool | managePWContactLists () |
![]() | |
bool | readDictionary (const dictionary &dict) |
read from dict More... | |
bool | writeDictionary (dictionary &dict) const |
write to dict More... | |
bool | makeNameIndex () |
creates a mapp More... | |
Protected Attributes | |
const GeometryMotionModel & | geometryMotion_ |
const reference to geometry More... | |
const sphereParticles & | sphParticles_ |
const reference to particles More... | |
uniquePtr< ContactForceModel > | forceModel_ = nullptr |
contact force model More... | |
uniquePtr< ContactListType > | ppContactList_ = nullptr |
contact list for particle-particle interactoins (keeps the history) More... | |
uniquePtr< ContactListType > | pwContactList_ = nullptr |
contact list for particle-wall interactions (keeps the history) More... | |
Timer | ppInteractionTimer_ |
timer for particle-particle interaction computations More... | |
Timer | pwInteractionTimer_ |
timer for particle-wall interaction computations More... | |
![]() | |
dictionary & | fileDict_ |
interaction file dictionary More... | |
uniquePtr< contactSearch > | contactSearch_ = nullptr |
contact search object for pp and pw interactions More... | |
![]() | |
uniquePtr< dictionary > | dict_ = nullptr |
pointer to the dictionary, if it is constructed from a file/dictionary More... | |
wordVector | materials_ |
list of name of materials More... | |
realVector | densities_ |
list of density of materials More... | |
wordHashMap< uint32 > | nameIndex_ |
rapid mapping from name to index More... | |
uint32 | numMaterials_ = 0 |
number of materials More... | |
![]() | |
word | componentName_ |
systemControl & | control_ |
Timers | timers_ |
![]() | |
const eventSubscriber * | subscriber_ = nullptr |
bool | subscribed_ = false |
![]() | |
const particles & | particles_ |
const geometry & | geometry_ |
Additional Inherited Members | |
![]() | |
static uniquePtr< interaction > | create (systemControl &control, const particles &prtcl, const geometry &geom) |
Definition at line 36 of file sphereInteraction.hpp.
using GeometryMotionModel = geometryMotionModel |
Definition at line 42 of file sphereInteraction.hpp.
using ContactForceModel = contactForceModel |
Definition at line 44 of file sphereInteraction.hpp.
using MotionModel = typename geometryMotionModel::MotionModel |
Definition at line 46 of file sphereInteraction.hpp.
using ModelStorage = typename ContactForceModel::contactForceStorage |
Definition at line 48 of file sphereInteraction.hpp.
using IdType = typename interaction::IdType |
Definition at line 50 of file sphereInteraction.hpp.
using IndexType = typename interaction::IndexType |
Definition at line 52 of file sphereInteraction.hpp.
using ExecutionSpace = typename interaction::ExecutionSpace |
Definition at line 54 of file sphereInteraction.hpp.
using ContactListType = contactListType<ModelStorage, ExecutionSpace, IdType> |
Definition at line 57 of file sphereInteraction.hpp.
using PairsContainerType = typename contactSearch::PairContainerType |
Definition at line 59 of file sphereInteraction.hpp.
|
protected |
range policy for p-p interaction execution
Definition at line 93 of file sphereInteraction.hpp.
|
protected |
range policy for p-w interaction execution
Definition at line 96 of file sphereInteraction.hpp.
|
inline |
Definition at line 104 of file sphereInteraction.hpp.
References sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::createSphereInteraction(), and fatalExit.
|
protected |
Definition at line 26 of file sphereInteraction.cpp.
References VectorSingle< T, MemorySpace >::deviceVector(), endREPORT, and REPORT.
Referenced by sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::sphereInteraction().
|
protected |
|
protected |
TypeInfoTemplate3 | ( | "sphereInteraction< contactForceModel, geometryMotionModel, contactListType >" | , |
ContactForceModel | , | ||
MotionModel | , | ||
ContactListType | |||
) |
add_vCtor | ( | interaction | , |
sphereInteraction< contactForceModel, geometryMotionModel, contactListType > | , | ||
systemControl | |||
) |
|
inlineoverridevirtual |
Implements demComponent.
Definition at line 129 of file sphereInteraction.hpp.
|
inlineoverridevirtual |
Implements demComponent.
Definition at line 135 of file sphereInteraction.hpp.
References interaction::contactSearch_, Timer::end(), fatalErrorInFunction, fatalExit, particles::numActive(), sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::ppContactList_, sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::ppInteractionTimer_, sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::pwContactList_, sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::pwInteractionTimer_, sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::sphereSphereInteraction(), sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::sphereWallInteraction(), sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::sphParticles_, and Timer::start().
|
inlineoverridevirtual |
Implements demComponent.
Definition at line 203 of file sphereInteraction.hpp.
|
inlineoverridevirtual |
Implements eventObserver.
Definition at line 209 of file sphereInteraction.hpp.
bool sphereSphereInteraction |
Definition at line 56 of file sphereInteraction.cpp.
Referenced by sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate().
bool sphereWallInteraction |
Definition at line 95 of file sphereInteraction.cpp.
Referenced by sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate().
|
protected |
const reference to geometry
Definition at line 64 of file sphereInteraction.hpp.
|
protected |
const reference to particles
Definition at line 67 of file sphereInteraction.hpp.
Referenced by sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate().
|
protected |
contact force model
Definition at line 71 of file sphereInteraction.hpp.
|
protected |
contact list for particle-particle interactoins (keeps the history)
Definition at line 74 of file sphereInteraction.hpp.
Referenced by sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate().
|
protected |
contact list for particle-wall interactions (keeps the history)
Definition at line 77 of file sphereInteraction.hpp.
Referenced by sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate().
|
protected |
timer for particle-particle interaction computations
Definition at line 80 of file sphereInteraction.hpp.
Referenced by sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate().
|
protected |
timer for particle-wall interaction computations
Definition at line 83 of file sphereInteraction.hpp.
Referenced by sphereInteraction< contactForceModel, geometryMotionModel, contactListType >::iterate().