chrono::ChLoaderGravity Class Reference


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< ChLoadableGetLoadable () override
std::shared_ptr< ChLoadableUVWGetLoadableUVW ()
- Public Member Functions inherited from chrono::ChLoader
virtual bool IsStiff ()

Additional Inherited Members

- Public Attributes inherited from chrono::ChLoaderUVW
std::shared_ptr< ChLoadableUVWloadable
- Public Attributes inherited from chrono::ChLoader
ChVectorDynamic Q

Member Function Documentation

◆ ComputeF()

void chrono::ChLoaderGravity::ComputeF ( double  U,
double  V,
double  W,
ChVectorDynamic<> &  F,
ChVectorDynamic<> *  state_x,
ChVectorDynamic<> *  state_w 

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.

Uparametric coordinate in volume
Vparametric coordinate in volume
Wparametric coordinate in volume
Fresult vector, size = field dim of loadable
state_xif != 0, update state (pos. part) to this, then evaluate F
state_wif != 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