DataTransferKit - Multiphysics Solution Transfer Services  2.0
Public Member Functions | List of all members
DataTransferKit::STKMeshNodalShapeFunction Class Reference

Nodal shape function implementation for STK mesh. More...

#include <DTK_STKMeshNodalShapeFunction.hpp>

Inheritance diagram for DataTransferKit::STKMeshNodalShapeFunction:
DataTransferKit::EntityShapeFunction

Public Member Functions

 STKMeshNodalShapeFunction (const Teuchos::RCP< stk::mesh::BulkData > &bulk_data)
 Constructor. More...
 
void entitySupportIds (const Entity &entity, Teuchos::Array< SupportId > &support_ids) const override
 Given an entity, get the ids of the support locations. More...
 
void evaluateValue (const Entity &entity, const Teuchos::ArrayView< const double > &reference_point, Teuchos::Array< double > &values) const override
 Given an entity and a reference point, evaluate the shape function of the entity at that point. More...
 
void evaluateGradient (const Entity &entity, const Teuchos::ArrayView< const double > &reference_point, Teuchos::Array< Teuchos::Array< double >> &gradients) const override
 Given an entity and a reference point, evaluate the gradient of the shape function of the entity at that point. More...
 
- Public Member Functions inherited from DataTransferKit::EntityShapeFunction
 EntityShapeFunction ()
 Constructor. More...
 
virtual ~EntityShapeFunction ()
 Destructor. More...
 

Detailed Description

Nodal shape function implementation for STK mesh.

STKMeshNodalShapeFunction provides a shape function for node-centered quantities with shape functions evaluated in an element supported by nodes. The node ids serve as the support ids for these shape functions. A corresponding field vector indexed via node ids should be produced to match this shape function.

Definition at line 67 of file DTK_STKMeshNodalShapeFunction.hpp.

Constructor & Destructor Documentation

DataTransferKit::STKMeshNodalShapeFunction::STKMeshNodalShapeFunction ( const Teuchos::RCP< stk::mesh::BulkData > &  bulk_data)

Constructor.

Definition at line 51 of file DTK_STKMeshNodalShapeFunction.cpp.

Member Function Documentation

void DataTransferKit::STKMeshNodalShapeFunction::entitySupportIds ( const Entity entity,
Teuchos::Array< SupportId > &  support_ids 
) const
overridevirtual

Given an entity, get the ids of the support locations.

Parameters
entityGet the degrees of freedom for this entity.
support_idsReturn the ids of the support locations for the given entity in this array.

Implements DataTransferKit::EntityShapeFunction.

Definition at line 60 of file DTK_STKMeshNodalShapeFunction.cpp.

void DataTransferKit::STKMeshNodalShapeFunction::evaluateValue ( const Entity entity,
const Teuchos::ArrayView< const double > &  reference_point,
Teuchos::Array< double > &  values 
) const
overridevirtual

Given an entity and a reference point, evaluate the shape function of the entity at that point.

Parameters
entityEvaluate the shape function of this entity.
reference_pointEvaluate the shape function at this point given in reference coordinates.
valuesEntity shape function evaluated at the reference point.

Implements DataTransferKit::EntityShapeFunction.

Definition at line 94 of file DTK_STKMeshNodalShapeFunction.cpp.

void DataTransferKit::STKMeshNodalShapeFunction::evaluateGradient ( const Entity entity,
const Teuchos::ArrayView< const double > &  reference_point,
Teuchos::Array< Teuchos::Array< double >> &  gradients 
) const
overridevirtual

Given an entity and a reference point, evaluate the gradient of the shape function of the entity at that point.

Parameters
entityEvaluate the shape function of this entity.
reference_pointEvaluate the shape function at this point given in reference coordinates.
gradientsEntity shape function gradients evaluated at the reference point. Return these ordered with respect to those return by getSupportIds() such that gradients[N][D] gives the gradient value of the Nth support location in the Dth spatial dimension.

Reimplemented from DataTransferKit::EntityShapeFunction.

Definition at line 111 of file DTK_STKMeshNodalShapeFunction.cpp.


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