Mechanics of Defect Evolution Library
Loading...
Searching...
No Matches
model::ParticleSystemSerial< _ParticleType > Class Template Reference

Serial Version (openMP only). More...

#include <ParticleSystemSerial.h>

Inheritance diagram for model::ParticleSystemSerial< _ParticleType >:
Collaboration diagram for model::ParticleSystemSerial< _ParticleType >:

Public Types

typedef ParticleSystemBaseType::SpatialCellType SpatialCellType
typedef ParticleSystemBaseType::ParticleContainerType ParticleContainerType
Public Types inherited from model::ParticleSystemBase< _ParticleType >
typedef _ParticleType ParticleType
typedef _ParticleType::PositionType PositionType
typedef SpatialCellObserver< _ParticleType, _ParticleType::dim > SpatialCellObserverType
typedef SpatialCellObserverType::SpatialCellType SpatialCellType
typedef std::deque< _ParticleType > ParticleContainerType

Public Member Functions

template<typename FieldType, typename... OtherSourceTypes>
void computeNeighborField (const OtherSourceTypes &... otherSources)
template<typename OtherParticleType, typename FieldType, typename... OtherSourceTypes>
void computeField (std::deque< OtherParticleType > &fpDeq, const OtherSourceTypes &... otherSources) const
template<typename OtherParticleType, typename FieldType, typename... OtherSourceTypes>
void computeField (OtherParticleType &part, const OtherSourceTypes &... otherSources) const
Public Member Functions inherited from model::ParticleSystemBase< _ParticleType >
template<typename ... AdditionalConstructorTypes>
ParticleType * addParticle (const PositionType &p, const AdditionalConstructorTypes &... args)
void clearParticles ()
const ParticleContainerType & particles () const
const SpatialCellObserverType::CellMapType & cells () const
template<typename OtherParticleType, typename FieldType, typename... OtherSourceTypes>
void computeField (OtherParticleType &part, const OtherSourceTypes &... otherSources) const

Friends

template<class T>
T & operator<< (T &os, const ParticleContainerType &pS)

Additional Inherited Members

Static Public Member Functions inherited from model::ParticleSystemBase< _ParticleType >
static void setCellSize (const double &cellSize)

Detailed Description

template<typename _ParticleType>
class model::ParticleSystemSerial< _ParticleType >

Serial Version (openMP only).

Definition at line 40 of file ParticleSystemSerial.h.

Member Typedef Documentation

◆ ParticleContainerType

template<typename _ParticleType>
typedef ParticleSystemBaseType::ParticleContainerType model::ParticleSystemSerial< _ParticleType >::ParticleContainerType

Definition at line 49 of file ParticleSystemSerial.h.

◆ SpatialCellType

template<typename _ParticleType>
typedef ParticleSystemBaseType::SpatialCellType model::ParticleSystemSerial< _ParticleType >::SpatialCellType

Definition at line 48 of file ParticleSystemSerial.h.

Member Function Documentation

◆ computeField() [1/2]

template<typename _ParticleType>
template<typename OtherParticleType, typename FieldType, typename... OtherSourceTypes>
void model::ParticleSystemSerial< _ParticleType >::computeField ( OtherParticleType & part,
const OtherSourceTypes &... otherSources ) const
inline
Parameters
[in]part
[in]otherSourcescomputes the field FieldType for the only particle part, without parallelization

Definition at line 152 of file ParticleSystemSerial.h.

◆ computeField() [2/2]

template<typename _ParticleType>
template<typename OtherParticleType, typename FieldType, typename... OtherSourceTypes>
void model::ParticleSystemSerial< _ParticleType >::computeField ( std::deque< OtherParticleType > & fpDeq,
const OtherSourceTypes &... otherSources ) const
inline

-2 loop over neighbor cells of current particle

-3 loop over particles in the current neighbor cell

Definition at line 102 of file ParticleSystemSerial.h.

◆ computeNeighborField()

template<typename _ParticleType>
template<typename FieldType, typename... OtherSourceTypes>
void model::ParticleSystemSerial< _ParticleType >::computeNeighborField ( const OtherSourceTypes &... otherSources)
inline

-1 loop over all particles in the ParticleSystem (parallelized in OpenMP)

-2 loop over neighbor cells of current particle

-3 loop over particles in the current neighbor cell

Definition at line 54 of file ParticleSystemSerial.h.

◆ operator<<

template<typename _ParticleType>
template<class T>
T & operator<< ( T & os,
const ParticleContainerType & pS )
friend

Operator<< use ParticleType-specific operator<<

Definition at line 163 of file ParticleSystemSerial.h.


The documentation for this class was generated from the following file: