Skip to content

FECoreMesh

More...

#include <FECoreMesh.h>

Inherited by FEMesh

Public Functions

Name
FECoreMesh()
constructor
virtual ~FECoreMesh()
destructor
virtual void Create(int nodes, int elems, int faces =0, int edges =0) =0
allocate space for mesh
bool IsType(int ntype)
check the type of the mesh
virtual int Elements() const =0
total number of elements
virtual FEElement_ & ElementRef(int n) =0
return reference to element
virtual FEElement * ElementPtr(int n =0) =0
return pointer to element
int Nodes() const
int Edges() const
int Faces() const
FENode & Node(int n)
FEEdge & Edge(int n)
FEFace & Face(int n)
FENode * NodePtr(int n =0)
FEEdge * EdgePtr(int n =0)
FEFace * FacePtr(int n =0)

Protected Attributes

Name
std::vector< FENode > m_Node
FE nodes.
std::vector< FEEdge > m_Edge
FE edges.
std::vector< FEFace > m_Face
FE faces.

Detailed Description

class FECoreMesh;

This class defines a simple mesh structure that provides basic container services for storing mesh data.

Public Functions Documentation

function FECoreMesh

FECoreMesh()

constructor

function ~FECoreMesh

virtual ~FECoreMesh()

destructor

function Create

virtual void Create(
    int nodes,
    int elems,
    int faces =0,
    int edges =0
) =0

allocate space for mesh

Reimplemented by: FEMesh::Create

function IsType

bool IsType(
    int ntype
)

check the type of the mesh

function Elements

virtual int Elements() const =0

total number of elements

Reimplemented by: FEMesh::Elements

function ElementRef

virtual FEElement_ & ElementRef(
    int n
) =0

return reference to element

Reimplemented by: FEMesh::ElementRef

function ElementPtr

virtual FEElement * ElementPtr(
    int n =0
) =0

return pointer to element

Reimplemented by: FEMesh::ElementPtr

function Nodes

inline int Nodes() const

function Edges

inline int Edges() const

function Faces

inline int Faces() const

function Node

inline FENode & Node(
    int n
)

function Edge

inline FEEdge & Edge(
    int n
)

function Face

inline FEFace & Face(
    int n
)

function NodePtr

inline FENode * NodePtr(
    int n =0
)

function EdgePtr

inline FEEdge * EdgePtr(
    int n =0
)

function FacePtr

inline FEFace * FacePtr(
    int n =0
)

Protected Attributes Documentation

variable m_Node

std::vector< FENode > m_Node;

FE nodes.

variable m_Edge

std::vector< FEEdge > m_Edge;

FE edges.

variable m_Face

std::vector< FEFace > m_Face;

FE faces.


Updated on 2024-03-17 at 12:58:44 -0600