Applies a given constant external force to a force field.
Utility function when using external forces with methods that couple over the force field (all discrete particle methods, e.g.) since the force field is typically reset in each iteration.
#include <ExternalForceToForceFieldAdder.h>
Public Types | |
using | ForceField_T = GhostLayerField< Vector3< real_t >, 1 > |
Public Member Functions | |
ExternalForceToForceFieldAdder (const BlockDataID &forceFieldID, const Vector3< real_t > &externalForce) | |
void | operator() (IBlock *const block) |
void | reset (const Vector3< real_t > &newExternalForce) |
Private Attributes | |
const BlockDataID | forceFieldID_ |
Vector3< real_t > | externalForce_ |
using walberla::pe_coupling::discrete_particle_methods::ExternalForceToForceFieldAdder::ForceField_T = GhostLayerField<Vector3<real_t>, 1> |
|
inline |
|
inline |
|
inline |
|
private |
|
private |