MAST
Multidisciplinary-design Adaptation and Sensitivity Toolkit (MAST)
TEST::TestMeshSingleElement Class Reference

Detailed Description

Storage class for a mesh consisting of a single element used in testing.

The single element has an ID of 0 (zero) and is placed into the subdomain of ID 0 (zero).

Definition at line 46 of file mast_mesh.h.

#include <mast_mesh.h>

Inheritance diagram for TEST::TestMeshSingleElement:

Public Member Functions

 TestMeshSingleElement (libMesh::ElemType e_type, RealMatrixX &coordinates)
 Construct a single element mesh using the specified type and nodal coordinates. More...
 
void update_coordinates (RealMatrixX &new_coordinates)
 Update the nodal coordinates in the mesh. More...
 

Public Attributes

libMesh::ReplicatedMesh mesh
 The actual libMesh mesh object. More...
 
int n_dim
 Dimension of the test element (1, 2, 3) More...
 
int n_elems
 Number of elements in the test mesh. More...
 
int n_nodes
 Number of nodes per element in the test mesh. More...
 
libMesh::Elem * reference_elem
 Pointer to the actual libMesh element object. More...
 

Constructor & Destructor Documentation

◆ TestMeshSingleElement()

TEST::TestMeshSingleElement::TestMeshSingleElement ( libMesh::ElemType  e_type,
RealMatrixX coordinates 
)
inline

Construct a single element mesh using the specified type and nodal coordinates.

Nodal connectivity is specified according to the Exodus-II mesh format. Valid element types are currently:

  • 1D: EDGE2
  • 2D: QUAD4
Parameters
e_typelibMesh element type to create
coordinates(3 by n) matrix where each column specifies a node with rows giving the x, y, z locations

Definition at line 68 of file mast_mesh.h.

Member Function Documentation

◆ update_coordinates()

void TEST::TestMeshSingleElement::update_coordinates ( RealMatrixX new_coordinates)
inline

Update the nodal coordinates in the mesh.

Parameters
new_coordinates(3 by n) matrix where each column specifies a node with rows giving the x, y, z locations

Definition at line 113 of file mast_mesh.h.

Member Data Documentation

◆ mesh

libMesh::ReplicatedMesh TEST::TestMeshSingleElement::mesh

The actual libMesh mesh object.

Definition at line 52 of file mast_mesh.h.

◆ n_dim

int TEST::TestMeshSingleElement::n_dim

Dimension of the test element (1, 2, 3)

Definition at line 50 of file mast_mesh.h.

◆ n_elems

int TEST::TestMeshSingleElement::n_elems

Number of elements in the test mesh.

Definition at line 48 of file mast_mesh.h.

◆ n_nodes

int TEST::TestMeshSingleElement::n_nodes

Number of nodes per element in the test mesh.

Definition at line 49 of file mast_mesh.h.

◆ reference_elem

libMesh::Elem* TEST::TestMeshSingleElement::reference_elem

Pointer to the actual libMesh element object.

Definition at line 51 of file mast_mesh.h.


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