SPHinXsys
alpha version
|
The gravity force, derived class of External force. More...
#include <external_force.h>
Inherits SPH::ExternalForce.
Public Member Functions | |
Gravity (Vecd gravity_vector, Vecd reference_position=Vecd(0)) | |
virtual Vecd | InducedAcceleration (Vecd &position) override |
Real | getPotential (Vecd &position) |
Protected Attributes | |
Vecd | global_acceleration_ |
Vecd | zero_potential_reference_ |
The gravity force, derived class of External force.
|
overridevirtual |
This function can be used for runtime control of external force.
Implements SPH::ExternalForce.