![]() |
PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
|
A class to apply force boundary condition. More...
#include <particleFLoading.h>
Public Member Functions | |
| ParticleFLoading (std::vector< inp::PBCData > &bc_data) | |
| Constructor. | |
| bool | needToProcessParticle (size_t id, const inp::PBCData &bc) |
| Function that checks if given particle with id = id needs to be processed within boundary condition data bc. | |
| bool | needToComputeDof (const util::Point &x, size_t id, const inp::PBCData &bc) |
| Function that checks if we need to do computation at a given point x within a particle with id = id. | |
| void | apply (const double &time, particle::BaseParticle *particle) |
| Applies force boundary condition. | |
Public Member Functions inherited from loading::ParticleLoading | |
| ParticleLoading ()=default | |
| Constructor. | |
Additional Inherited Members | |
Protected Attributes inherited from loading::ParticleLoading | |
| std::vector< inp::PBCData > | d_bcData |
| List of displacement bcs. | |
A class to apply force boundary condition.
Definition at line 31 of file particleFLoading.h.
| loading::ParticleFLoading::ParticleFLoading | ( | std::vector< inp::PBCData > & | bc_data | ) |
Constructor.
| bc_data | Boundary condition data |
Definition at line 31 of file particleFLoading.cpp.
References loading::ParticleLoading::d_bcData.
| void loading::ParticleFLoading::apply | ( | const double & | time, |
| particle::BaseParticle * | particle | ||
| ) |
Applies force boundary condition.
| time | Current time |
| particle | Particle object pointer |
Definition at line 85 of file particleFLoading.cpp.
References util::parallel::getNThreads(), util::isGreater(), and util::linearStepFunc().
| bool loading::ParticleFLoading::needToComputeDof | ( | const util::Point & | x, |
| size_t | id, | ||
| const inp::PBCData & | bc | ||
| ) |
Function that checks if we need to do computation at a given point x within a particle with id = id.
| x | Coordinates of a point within particle (reference coordinate) |
| id | Id of particle in all particle list |
| bc | Boundary condition data |
Definition at line 55 of file particleFLoading.cpp.
References util::geometry::GeomData::d_geom_p, inp::PBCData::d_isRegionActive, inp::PBCData::d_pList, inp::PBCData::d_pNotList, inp::PBCData::d_regionGeomData, and inp::PBCData::d_selectionType.
| bool loading::ParticleFLoading::needToProcessParticle | ( | size_t | id, |
| const inp::PBCData & | bc | ||
| ) |
Function that checks if given particle with id = id needs to be processed within boundary condition data bc.
| id | Id of particle in all particle list |
| bc | Boundary condition data |
Definition at line 37 of file particleFLoading.cpp.
References inp::PBCData::d_pList, inp::PBCData::d_pNotList, and inp::PBCData::d_selectionType.