Description

ANCF laminated shell element with eight nodes.

This class implements composite material elastic force formulations.

The node numbering is in ccw fashion as in the following scheme:

        v
        ^
        |
D o-----G-----o C
  |     |     |
--H-----+-----F----> u
  |     |     |
A o-----E-----o B

#include <ChElementShellANCF_8.h>

Inheritance diagram for chrono::fea::ChElementShellANCF_8:
Collaboration diagram for chrono::fea::ChElementShellANCF_8:

Classes

class  Layer
 Definition of a layer. More...
 

Public Types

using ShapeVector = ChMatrixNM< double, 1, 24 >
 

Public Member Functions

virtual int GetNnodes () override
 Get the number of nodes used by this element.
 
virtual int GetNdofs () override
 Get the number of coordinates in the field used by the referenced nodes.
 
virtual int GetNodeNdofs (int n) override
 Get the number of coordinates from the n-th node used by this element.
 
void SetNodes (std::shared_ptr< ChNodeFEAxyzDD > nodeA, std::shared_ptr< ChNodeFEAxyzDD > nodeB, std::shared_ptr< ChNodeFEAxyzDD > nodeC, std::shared_ptr< ChNodeFEAxyzDD > nodeD, std::shared_ptr< ChNodeFEAxyzDD > nodeE, std::shared_ptr< ChNodeFEAxyzDD > nodeF, std::shared_ptr< ChNodeFEAxyzDD > nodeG, std::shared_ptr< ChNodeFEAxyzDD > nodeH)
 Specify the nodes of this element.
 
void SetDimensions (double lenX, double lenY)
 Specify the element dimensions.
 
virtual std::shared_ptr< ChNodeFEAbaseGetNodeN (int n) override
 Access the n-th node of this element.
 
std::shared_ptr< ChNodeFEAxyzDDGetNodeA () const
 Get a handle to the first node of this element.
 
std::shared_ptr< ChNodeFEAxyzDDGetNodeB () const
 Get a handle to the second node of this element.
 
std::shared_ptr< ChNodeFEAxyzDDGetNodeC () const
 Get a handle to the third node of this element.
 
std::shared_ptr< ChNodeFEAxyzDDGetNodeD () const
 Get a handle to the fourth node of this element.
 
std::shared_ptr< ChNodeFEAxyzDDGetNodeE () const
 Get a handle to the first node of this element.
 
std::shared_ptr< ChNodeFEAxyzDDGetNodeF () const
 Get a handle to the second node of this element.
 
std::shared_ptr< ChNodeFEAxyzDDGetNodeG () const
 Get a handle to the third node of this element.
 
std::shared_ptr< ChNodeFEAxyzDDGetNodeH () const
 Get a handle to the fourth node of this element.
 
void AddLayer (double thickness, double theta, std::shared_ptr< ChMaterialShellANCF > material)
 Add a layer. More...
 
size_t GetNumLayers () const
 Get the number of layers.
 
const LayerGetLayer (size_t i) const
 Get a handle to the specified layer.
 
void SetGravityOn (bool val)
 Turn gravity on/off.
 
void SetAlphaDamp (double a)
 Set the structural damping.
 
double GetLengthX () const
 Get the element length in the X direction.
 
double GetLengthY () const
 Get the element length in the Y direction.
 
double GetThickness ()
 Get the total thickness of the shell element.
 
void ShapeFunctions (ShapeVector &N, double x, double y, double z)
 Fills the N shape function matrix. More...
 
void ShapeFunctionsDerivativeX (ShapeVector &Nx, double x, double y, double z)
 Fills the Nx shape function derivative matrix with respect to X. More...
 
void ShapeFunctionsDerivativeY (ShapeVector &Ny, double x, double y, double z)
 Fills the Ny shape function derivative matrix with respect to Y. More...
 
void ShapeFunctionsDerivativeZ (ShapeVector &Nz, double x, double y, double z)
 Fills the Nz shape function derivative matrix with respect to Z. More...
 
ChStrainStress3D EvaluateSectionStrainStress (const ChVector<> &loc, int layer_id)
 Return a struct with 6-component strain and stress vectors evaluated at a given quadrature point and layer number. More...
 
virtual void GetStateBlock (ChVectorDynamic<> &mDD) override
 Fills the D vector with the current field values at the nodes of the element, with proper ordering. More...
 
virtual void ComputeKRMmatricesGlobal (ChMatrixRef H, double Kfactor, double Rfactor=0, double Mfactor=0) override
 Sets H as the stiffness matrix K, scaled by Kfactor. More...
 
virtual void ComputeMmatrixGlobal (ChMatrixRef M) override
 Returns the global mass matrix. More...
 
virtual void ComputeNodalMass () override
 Add contribution of element inertia to total nodal masses. More...
 
virtual void ComputeInternalForces (ChVectorDynamic<> &Fi) override
 Computes the internal forces. More...
 
virtual void Update () override
 Update the state of this element.
 
virtual void EvaluateSectionDisplacement (const double u, const double v, ChVector<> &u_displ, ChVector<> &u_rotaz) override
 Gets the xyz displacement of a point on the shell, and the rotation RxRyRz of section reference, at parametric coordinates 'u' and 'v'. More...
 
virtual void EvaluateSectionFrame (const double u, const double v, ChVector<> &point, ChQuaternion<> &rot) override
 Gets the absolute xyz position of a point on the shell, and the absolute rotation of section reference, at parametric coordinates 'u' and 'v'. More...
 
virtual void EvaluateSectionPoint (const double u, const double v, ChVector<> &point) override
 Gets the absolute xyz position of a point on the shell, at parametric coordinates 'u' and 'v'. More...
 
void ComputeInternalJacobians (double Kfactor, double Rfactor)
 Compute Jacobians of the internal forces. More...
 
void ComputeMassMatrix ()
 Compute the mass matrix of the element. More...
 
void ComputeGravityForce (const ChVector<> &g_acc)
 Compute the gravitational forces.
 
double Calc_detJ0 (double x, double y, double z)
 
double Calc_detJ0 (double x, double y, double z, ShapeVector &Nx, ShapeVector &Ny, ShapeVector &Nz, ChMatrixNM< double, 1, 3 > &Nx_d0, ChMatrixNM< double, 1, 3 > &Ny_d0, ChMatrixNM< double, 1, 3 > &Nz_d0)
 
void CalcCoordMatrix (ChMatrixNM< double, 24, 3 > &d)
 
void CalcCoordDerivMatrix (ChVectorN< double, 72 > &dt)
 
virtual int LoadableGet_ndof_x () override
 Gets the number of DOFs affected by this element (position part).
 
virtual int LoadableGet_ndof_w () override
 Gets the number of DOFs affected by this element (velocity part).
 
virtual void LoadableGetStateBlock_x (int block_offset, ChState &mDD) override
 Gets all the DOFs packed in a single vector (position part).
 
virtual void LoadableGetStateBlock_w (int block_offset, ChStateDelta &mDD) override
 Gets all the DOFs packed in a single vector (velocity part).
 
virtual void LoadableStateIncrement (const unsigned int off_x, ChState &x_new, const ChState &x, const unsigned int off_v, const ChStateDelta &Dv) override
 Increment all DOFs using a delta.
 
virtual int Get_field_ncoords () override
 Number of coordinates in the interpolated field, ex=3 for a tetrahedron finite element or a cable, = 1 for a thermal problem, etc.
 
virtual int GetSubBlocks () override
 Get the number of DOFs sub-blocks.
 
virtual unsigned int GetSubBlockOffset (int nblock) override
 Get the offset of the specified sub-block of DOFs in global vector.
 
virtual unsigned int GetSubBlockSize (int nblock) override
 Get the size of the specified sub-block of DOFs in global vector.
 
virtual bool IsSubBlockActive (int nblock) const override
 Check if the specified sub-block of DOFs is active.
 
virtual void EvaluateSectionVelNorm (double U, double V, ChVector<> &Result) override
 Virtual method to plot velocity field distribution. More...
 
virtual void LoadableGetVariables (std::vector< ChVariables * > &mvars) override
 Get the pointers to the contained ChVariables, appending to the mvars vector.
 
virtual void ComputeNF (const double U, const double V, ChVectorDynamic<> &Qi, double &detJ, const ChVectorDynamic<> &F, ChVectorDynamic<> *state_x, ChVectorDynamic<> *state_w) override
 Evaluate N'*F , where N is some type of shape function evaluated at U,V coordinates of the surface, each ranging in -1..+1 F is a load, N'*F is the resulting generalized load Returns also det[J] with J=[dx/du,..], that might be useful in gauss quadrature. More...
 
virtual void ComputeNF (const double U, const double V, const double W, ChVectorDynamic<> &Qi, double &detJ, const ChVectorDynamic<> &F, ChVectorDynamic<> *state_x, ChVectorDynamic<> *state_w) override
 Evaluate N'*F , where N is some type of shape function evaluated at U,V,W coordinates of the volume, each ranging in -1..+1 F is a load, N'*F is the resulting generalized load Returns also det[J] with J=[dx/du,..], that might be useful in gauss quadrature. More...
 
virtual double GetDensity () override
 This is needed so that it can be accessed by ChLoaderVolumeGravity. More...
 
virtual ChVector ComputeNormal (const double U, const double V) override
 Gets the normal to the surface at the parametric coordinate U,V. More...
 
- Public Member Functions inherited from chrono::fea::ChElementShell
virtual bool IsTriangleShell ()
 Return false if quadrilateral shell - hence u,v parametric coordinates assumed in -1..+1, return true if triangular shell - hence u,v are triangle natural coordinates assumed in 0..+1.
 
- Public Member Functions inherited from chrono::fea::ChElementGeneric
ChKblockGenericKstiffness ()
 Access the proxy to stiffness, for sparse solver.
 
virtual void EleIntLoadResidual_F (ChVectorDynamic<> &R, const double c) override
 (This is a default (a bit unoptimal) book keeping so that in children classes you can avoid implementing this EleIntLoadResidual_F function, unless you need faster code)
 
virtual void EleIntLoadResidual_Mv (ChVectorDynamic<> &R, const ChVectorDynamic<> &w, const double c) override
 (This is a default (VERY UNOPTIMAL) book keeping so that in children classes you can avoid implementing this EleIntLoadResidual_Mv function, unless you need faster code.)
 
virtual void EleIntLoadResidual_F_gravity (ChVectorDynamic<> &R, const ChVector<> &G_acc, const double c) override
 (This is a default (VERY UNOPTIMAL) book keeping so that in children classes you can avoid implementing this EleIntLoadResidual_F_gravity function, unless you need faster code. More...
 
virtual void ComputeGravityForces (ChVectorDynamic<> &Fg, const ChVector<> &G_acc) override
 (This is the default implementation (POTENTIALLY INEFFICIENT) so that in children classes you can avoid implementing this ComputeGravityForces() function, unless you need faster code.) This fallback implementation uses a temp ChLoaderGravity that applies the load to elements only if they are inherited by ChLoadableUVW so it can use GetDensity() and Gauss quadrature.
 
virtual void InjectKRMmatrices (ChSystemDescriptor &mdescriptor) override
 Tell to a system descriptor that there are item(s) of type ChKblock in this object (for further passing it to a solver)
 
virtual void KRMmatricesLoad (double Kfactor, double Rfactor, double Mfactor) override
 Adds the current stiffness K and damping R and mass M matrices in encapsulated ChKblock item(s), if any. More...
 
virtual void VariablesFbLoadInternalForces (double factor=1.) override
 Adds the internal forces, expressed as nodal forces, into the encapsulated ChVariables, in the 'fb' part: qf+=forces*factor (This is a default (a bit unoptimal) book keeping so that in children classes you can avoid implementing this VariablesFbLoadInternalForces function, unless you need faster code)
 
virtual void VariablesFbIncrementMq () override
 Adds M*q (internal masses multiplied current 'qb') to Fb, ex. More...
 
- Public Member Functions inherited from chrono::fea::ChElementBase
virtual void EleDoIntegration ()
 This is optionally implemented if there is some internal state that requires integration.
 
- Public Member Functions inherited from chrono::ChLoadableUV
virtual bool IsTriangleIntegrationNeeded ()
 If true, use quadrature over u,v in [0..1] range as triangle area coords (with z=1-u-v) otherwise use default quadrature over u,v in [-1..+1] as rectangular isoparametric coords.
 
- Public Member Functions inherited from chrono::ChLoadableUVW
virtual bool IsTetrahedronIntegrationNeeded ()
 If true, use quadrature over u,v,w in [0..1] range as tetrahedron volumetric coords (with z=1-u-v-w) otherwise use default quadrature over u,v,w in [-1..+1] as box isoparametric coords.
 
virtual bool IsTrianglePrismIntegrationNeeded ()
 If true, use quadrature over u,v in [0..1] range as triangle natural coords (with z=1-u-v), and use linear quadrature over w in [-1..+1], otherwise use default quadrature over u,v,w in [-1..+1] as box isoparametric coords.
 

Friends

class ShellANCF8_Mass
 
class ShellANCF8_Gravity
 
class ShellANCF8_Force
 
class ShellANCF8_Jacobian
 

Additional Inherited Members

- Protected Attributes inherited from chrono::fea::ChElementShell
double mass
 
- Protected Attributes inherited from chrono::fea::ChElementGeneric
ChKblockGeneric Kmatr
 

Member Function Documentation

◆ AddLayer()

void chrono::fea::ChElementShellANCF_8::AddLayer ( double  thickness,
double  theta,
std::shared_ptr< ChMaterialShellANCF material 
)

Add a layer.

Parameters
thicknesslayer thickness
thetafiber angle (radians)
materiallayer material

◆ ComputeInternalForces()

void chrono::fea::ChElementShellANCF_8::ComputeInternalForces ( ChVectorDynamic<> &  Fi)
overridevirtual

Computes the internal forces.

(E.g. the actual position of nodes is not in relaxed reference position) and set values in the Fi vector.

Implements chrono::fea::ChElementBase.

◆ ComputeInternalJacobians()

void chrono::fea::ChElementShellANCF_8::ComputeInternalJacobians ( double  Kfactor,
double  Rfactor 
)

Compute Jacobians of the internal forces.

This function calculates a linear combination of the stiffness (K) and damping (R) matrices, J = Kfactor * K + Rfactor * R for given coeficients Kfactor and Rfactor. This Jacobian will be further combined with the global mass matrix M and included in the global stiffness matrix H in the function ComputeKRMmatricesGlobal().

◆ ComputeKRMmatricesGlobal()

void chrono::fea::ChElementShellANCF_8::ComputeKRMmatricesGlobal ( ChMatrixRef  H,
double  Kfactor,
double  Rfactor = 0,
double  Mfactor = 0 
)
overridevirtual

Sets H as the stiffness matrix K, scaled by Kfactor.

Optionally, also superimposes global damping matrix R, scaled by Rfactor, and mass matrix M, scaled by Mfactor. Matrices are expressed in global reference. Corotational elements can take the local Kl & Rl matrices and rotate them.

Implements chrono::fea::ChElementBase.

◆ ComputeMassMatrix()

void chrono::fea::ChElementShellANCF_8::ComputeMassMatrix ( )

Compute the mass matrix of the element.

Note: in this 'basic' implementation, constant section and constant material are assumed

◆ ComputeMmatrixGlobal()

void chrono::fea::ChElementShellANCF_8::ComputeMmatrixGlobal ( ChMatrixRef  M)
overridevirtual

Returns the global mass matrix.

This is the default implementation, POTENTIALLY VERY INEFFICIENT. Children classes may need to override this with a more efficient version.

Reimplemented from chrono::fea::ChElementGeneric.

◆ ComputeNF() [1/2]

void chrono::fea::ChElementShellANCF_8::ComputeNF ( const double  U,
const double  V,
ChVectorDynamic<> &  Qi,
double &  detJ,
const ChVectorDynamic<> &  F,
ChVectorDynamic<> *  state_x,
ChVectorDynamic<> *  state_w 
)
overridevirtual

Evaluate N'*F , where N is some type of shape function evaluated at U,V coordinates of the surface, each ranging in -1..+1 F is a load, N'*F is the resulting generalized load Returns also det[J] with J=[dx/du,..], that might be useful in gauss quadrature.

Parameters
Uparametric coordinate in surface
Vparametric coordinate in surface
QiReturn result of Q = N'*F here
detJReturn det[J] here
FInput F vector, size is =n. field coords.
state_xif != 0, update state (pos. part) to this, then evaluate Q
state_wif != 0, update state (speed part) to this, then evaluate Q

Implements chrono::ChLoadableUV.

◆ ComputeNF() [2/2]

void chrono::fea::ChElementShellANCF_8::ComputeNF ( const double  U,
const double  V,
const double  W,
ChVectorDynamic<> &  Qi,
double &  detJ,
const ChVectorDynamic<> &  F,
ChVectorDynamic<> *  state_x,
ChVectorDynamic<> *  state_w 
)
overridevirtual

Evaluate N'*F , where N is some type of shape function evaluated at U,V,W coordinates of the volume, each ranging in -1..+1 F is a load, N'*F is the resulting generalized load Returns also det[J] with J=[dx/du,..], that might be useful in gauss quadrature.

Parameters
Uparametric coordinate in volume
Vparametric coordinate in volume
Wparametric coordinate in volume
QiReturn result of N'*F here, maybe with offset block_offset
detJReturn det[J] here
FInput F vector, size is = n.field coords.
state_xif != 0, update state (pos. part) to this, then evaluate Q
state_wif != 0, update state (speed part) to this, then evaluate Q

Implements chrono::ChLoadableUVW.

◆ ComputeNodalMass()

void chrono::fea::ChElementShellANCF_8::ComputeNodalMass ( )
overridevirtual

Add contribution of element inertia to total nodal masses.

This class computes and adds corresponding masses to ElementGeneric member m_TotalMass.

Reimplemented from chrono::fea::ChElementBase.

◆ ComputeNormal()

ChVector chrono::fea::ChElementShellANCF_8::ComputeNormal ( const double  U,
const double  V 
)
overridevirtual

Gets the normal to the surface at the parametric coordinate U,V.

Each coordinate ranging in -1..+1.

Implements chrono::ChLoadableUV.

◆ EvaluateSectionDisplacement()

void chrono::fea::ChElementShellANCF_8::EvaluateSectionDisplacement ( const double  u,
const double  v,
ChVector<> &  u_displ,
ChVector<> &  u_rotaz 
)
overridevirtual

Gets the xyz displacement of a point on the shell, and the rotation RxRyRz of section reference, at parametric coordinates 'u' and 'v'.

Note, u=-1..+1 , v= -1..+1 parametric coordinates, except if triangular shell, where u=0..+1, v=0..+1, natural triangle coords. Results are not corotated.

Implements chrono::fea::ChElementShell.

◆ EvaluateSectionFrame()

void chrono::fea::ChElementShellANCF_8::EvaluateSectionFrame ( const double  u,
const double  v,
ChVector<> &  point,
ChQuaternion<> &  rot 
)
overridevirtual

Gets the absolute xyz position of a point on the shell, and the absolute rotation of section reference, at parametric coordinates 'u' and 'v'.

Note, u=-1..+1 , v= -1..+1 parametric coordinates, except if triangular shell, where u=0..+1, v=0..+1, natural triangle coords. Results are corotated.

Implements chrono::fea::ChElementShell.

◆ EvaluateSectionPoint()

void chrono::fea::ChElementShellANCF_8::EvaluateSectionPoint ( const double  u,
const double  v,
ChVector<> &  point 
)
overridevirtual

Gets the absolute xyz position of a point on the shell, at parametric coordinates 'u' and 'v'.

Note, u=-1..+1 , v= -1..+1 parametric coordinates, except if triangular shell, where u=0..+1, v=0..+1, natural triangle coords. Results are corotated.

Implements chrono::fea::ChElementShell.

◆ EvaluateSectionStrainStress()

ChStrainStress3D chrono::fea::ChElementShellANCF_8::EvaluateSectionStrainStress ( const ChVector<> &  loc,
int  layer_id 
)

Return a struct with 6-component strain and stress vectors evaluated at a given quadrature point and layer number.

Beta

◆ EvaluateSectionVelNorm()

void chrono::fea::ChElementShellANCF_8::EvaluateSectionVelNorm ( double  U,
double  V,
ChVector<> &  Result 
)
overridevirtual

Virtual method to plot velocity field distribution.

Note, u=-1..+1 , v= -1..+1 parametric coordinates, except if triangular shell, where u=0..+1, v=0..+1, natural triangle coords.

Implements chrono::fea::ChElementShell.

◆ GetDensity()

double chrono::fea::ChElementShellANCF_8::GetDensity ( )
overridevirtual

This is needed so that it can be accessed by ChLoaderVolumeGravity.

Density is mass per unit surface.

Implements chrono::ChLoadableUVW.

◆ GetStateBlock()

void chrono::fea::ChElementShellANCF_8::GetStateBlock ( ChVectorDynamic<> &  mD)
overridevirtual

Fills the D vector with the current field values at the nodes of the element, with proper ordering.

If the D vector size is not this->GetNdofs(), it will be resized. For corotational elements, field is assumed in local reference!

Implements chrono::fea::ChElementBase.

◆ ShapeFunctions()

void chrono::fea::ChElementShellANCF_8::ShapeFunctions ( ShapeVector &  N,
double  x,
double  y,
double  z 
)

Fills the N shape function matrix.

NOTE! actually N should be a 3row, 72 column sparse matrix, as N = [s1*eye(3) s2*eye(3) s3*eye(3) s4*eye(3)...]; , but to avoid wasting zero and repeated elements, here it stores only the s1 through s24 values in a 1 row, 24 columns matrix!

◆ ShapeFunctionsDerivativeX()

void chrono::fea::ChElementShellANCF_8::ShapeFunctionsDerivativeX ( ShapeVector &  Nx,
double  x,
double  y,
double  z 
)

Fills the Nx shape function derivative matrix with respect to X.

NOTE! to avoid wasting zero and repeated elements, here it stores only the four values in a 1 row, 24 columns matrix!

◆ ShapeFunctionsDerivativeY()

void chrono::fea::ChElementShellANCF_8::ShapeFunctionsDerivativeY ( ShapeVector &  Ny,
double  x,
double  y,
double  z 
)

Fills the Ny shape function derivative matrix with respect to Y.

NOTE! to avoid wasting zero and repeated elements, here it stores only the four values in a 1 row, 24 columns matrix!

◆ ShapeFunctionsDerivativeZ()

void chrono::fea::ChElementShellANCF_8::ShapeFunctionsDerivativeZ ( ShapeVector &  Nz,
double  x,
double  y,
double  z 
)

Fills the Nz shape function derivative matrix with respect to Z.

NOTE! to avoid wasting zero and repeated elements, here it stores only the four values in a 1 row, 24 columns matrix!


The documentation for this class was generated from the following files:
  • /builds/uwsbel/chrono/src/chrono/fea/ChElementShellANCF_8.h
  • /builds/uwsbel/chrono/src/chrono/fea/ChElementShellANCF_8.cpp