NuTo
Numerics Tool
Public Member Functions | List of all members
NuTo::CellIpData Class Reference

Similar to NuTo::CellData. More...

#include <CellIpData.h>

Public Member Functions

 CellIpData (const CellData &cellData, NuTo::Jacobian jacobian, NaturalCoords ipCoords, int ipId)
 ctor More...
 
Eigen::VectorXd GlobalCoordinates () const
 Caluclate the global integration point coordinates. More...
 
CellIds Ids () const
 Access to the cellId and ipId, compressed in CellIds. More...
 
Eigen::VectorXd Value (DofType dofType, int instance=0) const
 Calculates the value of a dof at the integration point. More...
 
const NuTo::JacobianGetJacobian () const
 
double Value (ScalarDofType dofType, int instance=0) const
 
Eigen::VectorXd Apply (DofType dofType, const Nabla::Interface &b, int instance=0) const
 Calculates the gradient (derivative of the value with respect to x) for a given dof type at the integration point. More...
 
const Eigen::MatrixXd & N (DofType dofType) const
 Returns a memoized copy of the N matrix for a given dof type. More...
 
const Eigen::MatrixXd & B (DofType dofType, const Nabla::Interface &b) const
 Returns a memoized copy of the B matrix for a given dof type. More...
 
const Eigen::VectorXd & NodeValueVector (DofType dofType, int instance=0) const
 Returns memoized nodal values. More...
 

Detailed Description

Similar to NuTo::CellData.

Memoizes N and B and allows access to the values and gradients of a dof at this integration point

Constructor & Destructor Documentation

NuTo::CellIpData::CellIpData ( const CellData cellData,
NuTo::Jacobian  jacobian,
NaturalCoords  ipCoords,
int  ipId 
)
inline

ctor

Parameters
cellDatacell data that is constant for all integration points of a cell (cellId, node values)
jacobiantransformation from the natural (xi, eta,...) system to the global system (x,y,..)
ipCoordscoordinates of the current integration point
ipIdid of the current integration point

Member Function Documentation

Eigen::VectorXd NuTo::CellIpData::Apply ( DofType  dofType,
const Nabla::Interface b,
int  instance = 0 
) const
inline

Calculates the gradient (derivative of the value with respect to x) for a given dof type at the integration point.

Parameters
dofTypedof type that is evaluated
bgradient operator that determines how to calculate the derivative (e.g. B::Gradient() for scalars or
instanceid of the dof instance B::Strain() for engineering strains)
Returns
gradient of the dof
const Eigen::MatrixXd& NuTo::CellIpData::B ( DofType  dofType,
const Nabla::Interface b 
) const
inline

Returns a memoized copy of the B matrix for a given dof type.

Parameters
bgradient operator that determines how to calculate the derivative (e.g. B::Gradient() for scalars or B::Strain() for engineering strains)
Returns
B matrix
const NuTo::Jacobian& NuTo::CellIpData::GetJacobian ( ) const
inline
Eigen::VectorXd NuTo::CellIpData::GlobalCoordinates ( ) const
inline

Caluclate the global integration point coordinates.

Returns
global integration point coordinates
CellIds NuTo::CellIpData::Ids ( ) const
inline

Access to the cellId and ipId, compressed in CellIds.

Returns
named pair of cellId and ipId
const Eigen::MatrixXd& NuTo::CellIpData::N ( DofType  dofType) const
inline

Returns a memoized copy of the N matrix for a given dof type.

Returns
N matrix
const Eigen::VectorXd& NuTo::CellIpData::NodeValueVector ( DofType  dofType,
int  instance = 0 
) const
inline

Returns memoized nodal values.

Returns
nodal values for dofType
Parameters
instanceid of the dof instance
Eigen::VectorXd NuTo::CellIpData::Value ( DofType  dofType,
int  instance = 0 
) const
inline

Calculates the value of a dof at the integration point.

Parameters
dofTypedof type that is interpolated
instanceid of the dof instance
Returns
interpolated dof value
double NuTo::CellIpData::Value ( ScalarDofType  dofType,
int  instance = 0 
) const
inline

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