Class PieceWiseLinearBaseMapping

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class PieceWiseLinearBaseMapping : public opensn::CellMapping

Base class for all cell piece-wise linear cell-mappings.

Subclassed by opensn::PieceWiseLinearPolygonMapping, opensn::PieceWiseLinearPolyhedronMapping, opensn::PieceWiseLinearSlabMapping

Public Functions

PieceWiseLinearBaseMapping(std::shared_ptr<MeshContinuum> grid, const Cell &cell, size_t num_nodes, std::vector<std::vector<int>> face_node_mappings)

Constructor.

Protected Static Functions

static std::vector<Vector3> GetVertexLocations(const std::shared_ptr<MeshContinuum> &grid, const Cell &cell)
static std::vector<std::vector<int>> MakeFaceNodeMapping(const Cell &cell)

This section just determines a mapping of face dofs to cell dofs. This is pretty simple since we can just loop over each face dof then subsequently loop over cell dofs, if the face dof node index equals the cell dof node index then the mapping is assigned.

This mapping is not used by any of the methods in this class but is used by methods requiring the surface integrals of the shape functions.