chrono::ChLoaderGravity Class Reference
Description
Commonly used volume loader: constant gravitational load.
#include <ChLoaderUVW.h>
Inheritance diagram for chrono::ChLoaderGravity:
Collaboration diagram for chrono::ChLoaderGravity:
Public Member Functions | |
ChLoaderGravity (std::shared_ptr< ChLoadableUVW > mloadable) | |
virtual void | ComputeF (double U, double V, double W, ChVectorDynamic<> &F, ChVectorDynamic<> *state_x, ChVectorDynamic<> *state_w) override |
Evaluate F = F(u,v,w) for this line load. More... | |
void | SetNumIntPoints (int val) |
Set the number of integration points for gravity (assumed, for now, same number per direction). | |
int | GetNumIntPoints () const |
Get the number of integration points for gravity. | |
void | SetGravitationalAcceleration (ChVector3d m_acc) |
Set the G (gravity) acceleration vector affecting the loadable object. | |
ChVector3d | GetGravitationalAcceleration () |
Get the G (gravity) acceleration vector affecting the loadable object. | |
virtual int | GetIntegrationPointsU () override |
virtual int | GetIntegrationPointsV () override |
virtual int | GetIntegrationPointsW () override |
Public Member Functions inherited from chrono::ChLoaderUVWdistributed | |
ChLoaderUVWdistributed (std::shared_ptr< ChLoadableUVW > mloadable) | |
virtual void | ComputeQ (ChVectorDynamic<> *state_x, ChVectorDynamic<> *state_w) override |
Compute the generalized load Q = integral (N'*F*detJ dudvdz), using the ComputeF method. More... | |
Public Member Functions inherited from chrono::ChLoaderUVW | |
ChLoaderUVW (std::shared_ptr< ChLoadableUVW > mloadable) | |
void | SetLoadable (std::shared_ptr< ChLoadableUVW > mloadable) |
virtual std::shared_ptr< ChLoadable > | GetLoadable () override |
std::shared_ptr< ChLoadableUVW > | GetLoadableUVW () |
Public Member Functions inherited from chrono::ChLoader | |
virtual bool | IsStiff () |
Additional Inherited Members | |
Public Attributes inherited from chrono::ChLoaderUVW | |
std::shared_ptr< ChLoadableUVW > | loadable |
Public Attributes inherited from chrono::ChLoader | |
ChVectorDynamic | Q |
Member Function Documentation
◆ ComputeF()
|
overridevirtual |
Evaluate F = F(u,v,w) for this line load.
The vector F is set to zero on entry. The function provided by derived classes is called by ComputeQ to perform integration over the domain.
- Parameters
-
U parametric coordinate in volume V parametric coordinate in volume W parametric coordinate in volume F result vector, size = field dim of loadable state_x if != 0, update state (pos. part) to this, then evaluate F state_w if != 0, update state (speed part) to this, then evaluate F
Implements chrono::ChLoaderUVW.
The documentation for this class was generated from the following files:
- /builds/uwsbel/chrono/src/chrono/physics/ChLoaderUVW.h
- /builds/uwsbel/chrono/src/chrono/physics/ChLoaderUVW.cpp