OpenLB 1.7
Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
olb::AggParticle3D< T > Class Template Reference

#include <aggParticle3D.h>

+ Inheritance diagram for olb::AggParticle3D< T >:
+ Collaboration diagram for olb::AggParticle3D< T >:

Public Member Functions

 AggParticle3D ()
 
 AggParticle3D (std::vector< T > pos, T mas=1., T rad=1.)
 
 AggParticle3D (std::vector< T > pos, std::vector< T > vel, T mas=1., T rad=1.)
 
 AggParticle3D (const Particle3D< T > &p)
 
void setMass (T mas)
 
void setRad (T rad)
 
const bool & getAggl ()
 
const bool & getAggl () const
 
void setAggl (bool aggl)
 
void serialize (T serial[])
 
void unserialize (T *)
 
- Public Member Functions inherited from olb::Particle3D< T >
 Particle3D ()
 
 Particle3D (std::vector< T > pos, T mas=1., T rad=1., int id=0, T masAdd=0.)
 
 Particle3D (std::vector< T > pos, std::vector< T > vel, T mas=1., T rad=1., int id=0, T masAdd=0.)
 
 Particle3D (const Particle3D< T > &p)
 
void setPos (std::vector< T > pos)
 
void setStoredPos (std::vector< T > pos)
 
std::vector< T > & getStoredPos ()
 
std::vector< T > & getPos ()
 
const std::vector< T > & getPos () const
 
void setVel (std::vector< T > vel)
 
void setStoredVel (std::vector< T > vel)
 
std::vector< T > & getStoredVel ()
 
int getID ()
 
void setID (int id)
 
std::vector< T > & getVel ()
 
const std::vector< T > & getVel () const
 
void addForce (std::vector< T > &frc)
 
void setForce (std::vector< T > &frc)
 
void resetForce ()
 
std::vector< T > & getForce ()
 
const std::vector< T > & getForce () const
 
void setStoreForce (std::vector< T > &storeForce)
 
void resetStoreForce ()
 
std::vector< T > & getStoreForce ()
 
const std::vector< T > & getStoreForce () const
 
void serialize (T serial[])
 
void unserialize (T *)
 
void print ()
 
void printDeep (std::string message)
 
const T & getMass ()
 
const T & getAddedMass ()
 
const T & getEffectiveMass ()
 
const T & getInvMass ()
 
const T & getInvEffectiveMass ()
 
const T & getMass () const
 
const T & getAddedMass () const
 
const T & getEffectiveMass () const
 
void setMass (T m)
 
void setAddedMass (T m)
 
const T & getRad ()
 
const T & getRad () const
 
void setRad (T r)
 
const int & getCuboid ()
 
void setCuboid (int c)
 
const bool & getActive ()
 
const bool & getActive () const
 
void setActive (bool act)
 

Static Public Attributes

static const int serialPartSize = 14
 
- Static Public Attributes inherited from olb::Particle3D< T >
static const int serialPartSize = 19
 

Additional Inherited Members

- Public Attributes inherited from olb::Particle3D< T >
std::vector< std::pair< size_t, T > > _verletList
 
- Protected Attributes inherited from olb::Particle3D< T >
std::vector< T > _pos
 
std::vector< T > _vel
 
std::vector< T > _force
 
_invMas
 
_invMasAdd
 
_invEffectiveMas
 
_effectiveMas
 
_mas
 
_masAdd
 
_rad
 
int _cuboid
 globIC
 
int _id
 
bool _active
 
std::vector< T > _storePos
 
std::vector< T > _storeVel
 
std::vector< T > _storeForce
 

Detailed Description

template<typename T>
class olb::AggParticle3D< T >

Definition at line 41 of file aggParticle3D.h.

Constructor & Destructor Documentation

◆ AggParticle3D() [1/4]

template<typename T >
olb::AggParticle3D< T >::AggParticle3D ( )

Definition at line 40 of file aggParticle3D.hh.

42{
43 _aggl = false;
44}

◆ AggParticle3D() [2/4]

template<typename T >
olb::AggParticle3D< T >::AggParticle3D ( std::vector< T > pos,
T mas = 1.,
T rad = 1. )

Definition at line 47 of file aggParticle3D.hh.

48 : Particle3D<T>::Particle3D(pos, mas, rad)
49{
50 _aggl = false;
51}

◆ AggParticle3D() [3/4]

template<typename T >
olb::AggParticle3D< T >::AggParticle3D ( std::vector< T > pos,
std::vector< T > vel,
T mas = 1.,
T rad = 1. )

Definition at line 61 of file aggParticle3D.hh.

63 : Particle3D<T>::Particle3D(pos, vel, mas, rad)
64{
65 _aggl = false;
66}

◆ AggParticle3D() [4/4]

template<typename T >
olb::AggParticle3D< T >::AggParticle3D ( const Particle3D< T > & p)

Definition at line 54 of file aggParticle3D.hh.

56{
57 _aggl = false;
58}

Member Function Documentation

◆ getAggl() [1/2]

template<typename T >
const bool & olb::AggParticle3D< T >::getAggl ( )
inline

Definition at line 81 of file aggParticle3D.hh.

82{
83 return _aggl;
84}

◆ getAggl() [2/2]

template<typename T >
const bool & olb::AggParticle3D< T >::getAggl ( ) const
inline

Definition at line 87 of file aggParticle3D.hh.

88{
89 return _aggl;
90}

◆ serialize()

template<typename T >
void olb::AggParticle3D< T >::serialize ( T serial[])

Definition at line 102 of file aggParticle3D.hh.

103{
104 for (int i = 0; i < 3; i++) {
105 serial[i] = this->_pos[i];
106 serial[i + 3] = this->_vel[i];
107 serial[i + 6] = this->_force[i];
108 }
109 serial[9] = this->_mas;
110 serial[10] = this->_rad;
111 serial[11] = this->_cuboid;
112 serial[12] = (double) this->_active;
113 serial[13] = (double) _aggl;
114}
std::vector< T > _vel
Definition particle3D.h:118
std::vector< T > _pos
Definition particle3D.h:117
std::vector< T > _force
Definition particle3D.h:119
int _cuboid
globIC
Definition particle3D.h:128

◆ setAggl()

template<typename T >
void olb::AggParticle3D< T >::setAggl ( bool aggl)
inline

Definition at line 93 of file aggParticle3D.hh.

94{
95 _aggl = aggl;
96 if (aggl) {
97 this->setActive(false);
98 }
99}
void setActive(bool act)

◆ setMass()

template<typename T >
void olb::AggParticle3D< T >::setMass ( T mas)
inline

Definition at line 69 of file aggParticle3D.hh.

70{
71 this->_mas = mas;
72}

◆ setRad()

template<typename T >
void olb::AggParticle3D< T >::setRad ( T rad)
inline

Definition at line 75 of file aggParticle3D.hh.

76{
77 this->_rad = rad;
78}

◆ unserialize()

template<typename T >
void olb::AggParticle3D< T >::unserialize ( T * data)

Definition at line 117 of file aggParticle3D.hh.

118{
119 for (int i = 0; i < 3; i++) {
120 this->_pos[i] = data[i];
121 this->_vel[i] = data[i + 3];
122 this->_force[i] = data[i + 6];
123 }
124 this->_mas = data[9];
125 this->_rad = data[10];
126 this->_cuboid = int(data[11]);
127 this->_active = (bool) data[12];
128 _aggl = (bool) data[13];
129}

Member Data Documentation

◆ serialPartSize

template<typename T >
const int olb::AggParticle3D< T >::serialPartSize = 14
static

Definition at line 55 of file aggParticle3D.h.


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