chrono::ChLoaderGravity Class Reference

Description

A very usual type of volume loader: the constant gravitational load on Y.

#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 (const double U, const double V, const double W, ChVectorDynamic<> &F, ChVectorDynamic<> *state_x, ChVectorDynamic<> *state_w) override
 Children classes must provide this function that evaluates F = F(u,v,w) This will be evaluated during ComputeQ() to perform integration over the domain. More...
 
void SetNumIntPoints (int val)
 Sets the number of integration points for gravity (assumed, for now, same number per direction)
 
int GetNumIntPoints () const
 Gets the number of integration points for gravity.
 
void Set_G_acc (ChVector<> m_acc)
 Sets the G (gravity) acceleration vector affecting the loadable object.
 
ChVector Get_G_acc ()
 Gets 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
 Computes Q = integral (N'*F*detJ dudvdz) 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 Types inherited from chrono::ChLoaderUVW
typedef ChLoadableUVW type_loadable
 
- Public Attributes inherited from chrono::ChLoaderUVW
std::shared_ptr< ChLoadableUVWloadable
 
- Public Attributes inherited from chrono::ChLoader
ChVectorDynamic Q
 

Member Function Documentation

◆ ComputeF()

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

Children classes must provide this function that evaluates F = F(u,v,w) This will be evaluated during ComputeQ() to perform integration over the domain.

Parameters
Uparametric coordinate in volume
Vparametric coordinate in volume
Wparametric coordinate in volume
FResult F vector here, size must be = n.field coords.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 file:
  • /builds/uwsbel/chrono/src/chrono/physics/ChLoaderUVW.h