IFEM  90A354
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
LocalIntegral Class Reference

Abstract base class representing an element level integrated quantity. More...

#include <LocalIntegral.h>

Inheritance diagram for LocalIntegral:
Inheritance graph
[legend]
Collaboration diagram for LocalIntegral:
Collaboration graph
[legend]

Public Member Functions

virtual ~LocalIntegral ()
 Empty destructor.
 
virtual void destruct ()
 Virtual destruction method to clean up after numerical integration.
 
virtual const LocalIntegral * ref () const
 Returns the LocalIntegral object to assemble into the global one.
 
void getSolution (size_t nsd, size_t nen, Matrix *u=nullptr, Matrix *v=nullptr, Matrix *a=nullptr, bool forceCurrent=false) const
 Extracts element solution vectors as nsd by nen matrices. More...
 

Public Attributes

Vectors vec
 Element-level primary solution vectors.
 

Protected Member Functions

 LocalIntegral ()
 The default constructor is protected to allow sub-classes only.
 

Detailed Description

Abstract base class representing an element level integrated quantity.

Member Function Documentation

◆ getSolution()

void LocalIntegral::getSolution ( size_t  nsd,
size_t  nen,
Matrix *  u = nullptr,
Matrix *  v = nullptr,
Matrix *  a = nullptr,
bool  forceCurrent = false 
) const
inline

Extracts element solution vectors as nsd by nen matrices.

Parameters
[in]nsdNumber of space dimensions
[in]nenNumber of element nodes
[out]uFirst element solution vector (deformation)
[out]vSecond element solution vector (velocity)
[out]aThird element solution vector (acceleration)
[in]forceCurrentIf true, return the current values also if previous values are present

This method is intended for extraction of element-level solution vectors (deformation, velocity and acceleration for dynamics problems) on a matrix form, such that equivalent integration point values can be obtained by multiplying with the basis function value vector, fe.N. If the size of vec is 6 or more and forceCurrent is false, the previous values stored in positions {3,4,5} are returned, otherwise the current values stored in positions {0,1,2} are returned.

References vec.

Referenced by ASMs2DLag::integrate(), and ASMs2DLag::integrateElm().


The documentation for this class was generated from the following file: