PeriDEM 0.2.0
PeriDEM -- Peridynamics-based high-fidelity model for granular media
Loading...
Searching...
No Matches
particleFLoading.h
Go to the documentation of this file.
1/*
2 * -------------------------------------------
3 * Copyright (c) 2021 - 2024 Prashant K. Jha
4 * -------------------------------------------
5 * PeriDEM https://github.com/prashjha/PeriDEM
6 *
7 * Distributed under the Boost Software License, Version 1.0. (See accompanying
8 * file LICENSE)
9 */
10
11#ifndef LOADING_PARTILCE_FLOADING_H
12#define LOADING_PARTILCE_FLOADING_H
13
14#include "particleLoading.h" // base class Loading
15#include "util/point.h" // definition of Point
16
17// forward declaration
18namespace fe {
19class Mesh;
20}
21
22namespace particle {
23class BaseParticle;
24}
25
26namespace loading {
27
32
33public:
38 ParticleFLoading(std::vector<inp::PBCData> &bc_data);
39
47 bool needToProcessParticle(size_t id,
48 const inp::PBCData &bc);
49
57 bool needToComputeDof(const util::Point &x,
58 size_t id,
59 const inp::PBCData &bc);
60
66 void apply(const double &time, particle::BaseParticle *particle);
67};
68
69} // namespace loading
70
71#endif // LOADING_PARTILCE_FLOADING_H
A class to apply force boundary condition.
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.
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 d...
A base class to apply displacement and force boundary condition.
A class to store particle geometry, nodal discretization, and methods.
Collection of methods and data related to finite element and mesh.
Definition baseElem.h:17
Collection of methods and database related to loading.
Collection of methods and data related to particle object.
User-input data for particle neighbor search.
Definition pBCData.h:24
A structure to represent 3d vectors.
Definition point.h:30