Public Member Functions | |
TypeInfo ("dynamicPointStructure") | |
dynamicPointStructure (systemControl &control) | |
dynamicPointStructure (const dynamicPointStructure &ps)=delete | |
dynamicPointStructure (dynamicPointStructure &&)=delete | |
dynamicPointStructure & | operator= (const dynamicPointStructure &)=delete |
dynamicPointStructure & | operator= (dynamicPointStructure &&)=delete |
~dynamicPointStructure () override=default | |
const realx3PointField_D & | velocity () const |
realx3PointField_D & | velocity () |
bool | beforeIteration () override |
In the time loop before iterate. More... | |
bool | iterate () override |
This is called in time loop. More... | |
bool | predict (real dt, realx3PointField_D &acceleration) |
prediction step (if any), is called in beforeIteration More... | |
bool | correct (real dt, realx3PointField_D &acceleration) |
correction step, is called in iterate More... | |
![]() | |
TypeInfo ("pointStructure") | |
pointStructure (systemControl &control) | |
an empty pointStructure, good for reading from file More... | |
pointStructure (systemControl &control, const realx3Vector &posVec) | |
construct from point positions, assume all points are active More... | |
pointStructure (const pointStructure &)=delete | |
pointStructure (pointStructure &&)=delete | |
pointStructure & | operator= (const pointStructure &)=delete |
pointStructure & | operator= (pointStructure &&)=delete |
~pointStructure () override=default | |
bool | beforeIteration () override |
In the time loop before iterate. More... | |
bool | iterate () override |
This is called in time loop. More... | |
bool | afterIteration () override |
This is called in time loop, after iterate. More... | |
auto & | boundaries () |
const auto & | boundaries () const |
Time & | time () override |
const Time & | time () const override |
boundaryBase & | boundary (size_t i) override |
const boundaryBase & | boundary (size_t i) const override |
const auto & | simDomain () const |
const auto & | thisDomain () const |
const auto & | extendedDomain () const |
auto | internalDomainBox () const |
bool | read (iIstream &is, const IOPattern &iop) override |
read the point structure from the input stream. More... | |
bool | write (iOstream &os, const IOPattern &iop) const override |
Write. More... | |
![]() | |
virtual word | typeName () const =0 |
IOobject (const objectFile &objf, const IOPattern &iop, repository *owner) | |
~IOobject () override | |
IOobject (const IOobject &src)=delete | |
IOobject (IOobject &&src)=delete | |
const IOPattern & | ioPattern () const |
const repository * | owner () const override |
repository * | owner () |
repository * | releaseOwner (bool fromOwner=false) |
bool | isIncluded (const word &objName) const override |
bool | isExcluded (const word &objName) const override |
bool | readObject (bool rdHdr=true) |
bool | writeObject () const |
bool | readObject (iIstream &is, bool rdHdr=true) |
bool | writeObject (iOstream &os) const |
![]() | |
IOfileHeader (const objectFile &objf) | |
const word & | objectName () const |
const word & | objectType () const |
fileSystem | path () const |
bool | outFileBinary () const |
bool | inFileBinary () const |
bool | headerOk (bool silent=false) |
bool | implyRead () const |
Imply read. More... | |
bool | implyWrite () const |
Imply write. More... | |
bool | fileExist () const |
Check if file exists. More... | |
bool | readIfPresent () const |
Check read if present. More... | |
bool | writeHeader () const |
Check if the header should be written to file True: on master + implyWrite + readWriteHeader = true False: otherwise. More... | |
bool | writeHeader (iOstream &os, const word &typeName, bool forceWrite=false) const |
Write the header to the file , typeName comes from caller. More... | |
bool | writeHeader (iOstream &os, bool forceWrite=false) const |
Write the header to the file, typeName comes from the one read from file. More... | |
bool | readHeader () const |
Check if header should be read from file. More... | |
bool | readHeader (iIstream &is, bool silent=false) |
Read the header in the file. More... | |
bool | writeBanner (iOstream &os) const |
write the banner More... | |
bool | writeSeparator (iOstream &os) const |
wirte a separator line More... | |
![]() | |
objectFile (const word &name) | |
objectFile (const word &name, const fileSystem &localPath, const readFlag &rf=readFlag::READ_NEVER, const writeFlag &wf=writeFlag::WRITE_NEVER, bool rwHeader=true) | |
objectFile (const objectFile &src)=default | |
objectFile (objectFile &&src)=default | |
objectFile & | operator= (const objectFile &rhs)=default |
objectFile & | operator= (objectFile &&rhs)=default |
virtual | ~objectFile ()=default |
virtual const word & | name () const |
virtual const fileSystem & | localPath () const |
readFlag | rFlag () const |
writeFlag | wFlag () const |
bool | isReadAlways () const |
bool | isReadNever () const |
bool | isReadIfPresent () const |
bool | isWriteAlways () const |
bool | isWriteNever () const |
bool | readWriteHeader () const |
![]() | |
TypeInfo ("demComponent") | |
Type info. More... | |
demComponent (const word &name, systemControl &control) | |
construct from components More... | |
demComponent (const demComponent &)=delete | |
No copy constructor. More... | |
demComponent (demComponent &&)=delete | |
No move constructor. More... | |
demComponent & | operator= (const demComponent &)=delete |
No copy assignment. More... | |
demComponent & | operator= (demComponent &&)=delete |
No move assignment. More... | |
virtual | ~demComponent ()=default |
destructor More... | |
const auto & | control () const |
Const ref to systemControl. More... | |
auto & | control () |
Ref to systemControl. More... | |
real | dt () const |
Time step of integration. More... | |
real | currentTime () const |
Current simulation time. More... | |
uint32 | currentIter () const |
return current iteration number More... | |
timeInfo | TimeInfo () const |
return time info of the simulaiton More... | |
const auto & | time () const |
auto & | time () |
const auto & | timers () const |
Const ref to timers. More... | |
auto & | timers () |
Ref to timers. More... | |
virtual bool | beforeTimeLoop () |
This is called before the start of time loop. More... | |
virtual bool | afterTimeLoop () |
This is called after the time loop. More... | |
![]() | |
TypeInfo ("internalPoints") | |
internalPoints () | |
internalPoints (const realx3Vector &posVec) | |
Construct from point positions, assume all points are active. More... | |
internalPoints (const internalPoints &)=delete | |
No Copy construct. More... | |
internalPoints (internalPoints &&)=default | |
Move construct. More... | |
internalPoints & | operator= (const internalPoints &)=delete |
No Copy assignment. More... | |
internalPoints & | operator= (internalPoints &&)=default |
Move assignment. More... | |
~internalPoints () override=default | |
Destructor. More... | |
const pFlagTypeDevice & | activePointsMaskDevice () const |
const pFlagTypeHost & | activePointsMaskHost () const |
const PointsType & | pointPosition () const |
PointsType & | pointPosition () |
auto | pointPositionHost () const |
auto | pointPositionDevice () const |
PointsTypeHost | activePointsHost () const |
uint32 | size () const |
uint32 | capacity () const |
bool | empty () const |
uint32 | numActive () const |
bool | isAllActive () const |
auto | activeRange () const |
bool | deletePoints (scatteredFieldAccess< uint32, memory_space > delPoints) |
delete points at indices given in delPoints. More... | |
uint32 | updateFlag (const domain &dm, const std::array< real, 6 > &dist) |
void | fillNeighborsLists (ViewType1D< uint32, memory_space > leftList, ViewType1D< uint32, memory_space > rightList, ViewType1D< uint32, memory_space > bottomList, ViewType1D< uint32, memory_space > topList, ViewType1D< uint32, memory_space > rearList, ViewType1D< uint32, memory_space > frontList) |
bool | insertPoints (const realx3Vector &points, anyList &varList) |
bool | insertPointsOnly (const realx3Vector_D &points, message &msg, anyList &varList) |
bool | read (iIstream &is) |
Read. More... | |
bool | write (iOstream &os) const |
Write. More... | |
bool | read (iIstream &is, const IOPattern &iop) |
Read. More... | |
bool | write (iOstream &os, const IOPattern &iop) const |
Write. More... | |
![]() | |
subscriber (const word &name) | |
subscriber (const subscriber &) | |
Copy constructor, only copies the name, not the list. More... | |
subscriber (subscriber &&) | |
Move constructor, moves the name and the list, also change the subriber of the object in the list More... | |
subscriber & | operator= (const subscriber &) |
Copy assignemnt, only assign the name, do not assign the list. More... | |
subscriber & | operator= (subscriber &&) |
Move assignment, move assign name and list, also change the subcriber of the object in the list More... | |
virtual | ~subscriber () |
virtual bool | subscribe (message msg, observer *obsevr) const |
virtual bool | unsubscribe (observer *obsevr) const |
bool | notify (uint32 iter, real t, real dt, const message msg, const anyList &varList) |
bool | notify (const timeInfo &ti, const message msg, const anyList &varList) |
const word & | subscriberName () const |
Private Attributes | |
realx3PointField_D | velocity_ |
uniquePtr< integration > | integrationPos_ = nullptr |
uniquePtr< integration > | integrationVel_ = nullptr |
Timer | velocityUpdateTimer_ |
word | integrationMethod_ |
integration method for velocity and position More... | |
Definition at line 35 of file dynamicPointStructure.hpp.
|
explicit |
Definition at line 25 of file dynamicPointStructure.cpp.
References END_REPORT, fatalErrorInFunction, fatalExit, Green_Text, and REPORT.
|
delete |
|
delete |
|
overridedefault |
TypeInfo | ( | "dynamicPointStructure" | ) |
|
delete |
|
delete |
|
inline |
Definition at line 74 of file dynamicPointStructure.hpp.
References dynamicPointStructure::velocity_.
Referenced by particles::velocity().
|
inline |
Definition at line 80 of file dynamicPointStructure.hpp.
References dynamicPointStructure::velocity_.
|
overridevirtual |
In the time loop before iterate.
Implements demComponent.
Definition at line 83 of file dynamicPointStructure.cpp.
References pointStructure::beforeIteration(), Timer::end(), dynamicPointStructure::integrationPos_, dynamicPointStructure::integrationVel_, Timer::start(), pointField< T, MemorySpace >::updateBoundariesSlaveToMasterIfRequested(), dynamicPointStructure::velocity_, and dynamicPointStructure::velocityUpdateTimer_.
|
overridevirtual |
This is called in time loop.
Perform the main calculations when the component should evolve along time.
Implements demComponent.
Definition at line 94 of file dynamicPointStructure.cpp.
References pointStructure::iterate().
bool predict | ( | real | dt, |
realx3PointField_D & | acceleration | ||
) |
prediction step (if any), is called in beforeIteration
Definition at line 104 of file dynamicPointStructure.cpp.
References pFlow::grainParticlesKernels::acceleration().
bool correct | ( | real | dt, |
realx3PointField_D & | acceleration | ||
) |
correction step, is called in iterate
Definition at line 116 of file dynamicPointStructure.cpp.
References pFlow::grainParticlesKernels::acceleration().
|
private |
Definition at line 41 of file dynamicPointStructure.hpp.
Referenced by dynamicPointStructure::beforeIteration(), and dynamicPointStructure::velocity().
|
private |
Definition at line 43 of file dynamicPointStructure.hpp.
Referenced by dynamicPointStructure::beforeIteration().
|
private |
Definition at line 45 of file dynamicPointStructure.hpp.
Referenced by dynamicPointStructure::beforeIteration().
|
private |
Definition at line 47 of file dynamicPointStructure.hpp.
Referenced by dynamicPointStructure::beforeIteration().
|
private |
integration method for velocity and position
Definition at line 50 of file dynamicPointStructure.hpp.