Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
Namespaces | Functions
boundary_condition_helper.hpp File Reference

This file contains the declarations of helper methods for boundary conditions. More...

#include "mfem.hpp"
Include dependency graph for boundary_condition_helper.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 smith
 Accelerator functionality.
 

Functions

void smith::mfem_ext::GetEssentialTrueDofsFromElementAttribute (const mfem::ParFiniteElementSpace &fespace, const mfem::Array< int > &elem_attr_is_ess, mfem::Array< int > &ess_tdof_list, int component=-1)
 Get a list of essential true dofs, ess_tdof_list , corresponding to the element attributes marked in the array elem_attr_is_ess. More...
 
void smith::mfem_ext::GetEssentialVDofsFromElementAttribute (const mfem::ParFiniteElementSpace &fespace, const mfem::Array< int > &elem_attr_is_ess, mfem::Array< int > &ess_vdofs, int component=-1)
 A method to mark degrees of freedom associated with elements with the attributes specified in element_attr_is_ess. More...
 

Detailed Description

This file contains the declarations of helper methods for boundary conditions.

Definition in file boundary_condition_helper.hpp.

Function Documentation

◆ GetEssentialTrueDofsFromElementAttribute()

void smith::mfem_ext::GetEssentialTrueDofsFromElementAttribute ( const mfem::ParFiniteElementSpace &  fespace,
const mfem::Array< int > &  elem_attr_is_ess,
mfem::Array< int > &  ess_tdof_list,
int  component = -1 
)

Get a list of essential true dofs, ess_tdof_list , corresponding to the element attributes marked in the array elem_attr_is_ess.

Parameters
[in]fespaceThe parallel finite element space
[in]elem_attr_is_essAn mfem::Array which indicates whether each element attribute is essential (the length must equal the number of attributes defined on the mesh)
[out]ess_tdof_listAn mfem::Array containing all the true dofs
[in]componentAn optional argument denoting which component (of a vector space) is essential, -1 implies all components

Definition at line 11 of file boundary_condition_helper.cpp.

◆ GetEssentialVDofsFromElementAttribute()

void smith::mfem_ext::GetEssentialVDofsFromElementAttribute ( const mfem::ParFiniteElementSpace &  fespace,
const mfem::Array< int > &  elem_attr_is_ess,
mfem::Array< int > &  ess_vdofs,
int  component = -1 
)

A method to mark degrees of freedom associated with elements with the attributes specified in element_attr_is_ess.

Parameters
[in]fespaceThe parallel finite element space
[in]elem_attr_is_essAn mfem::Array which indicates whether each element attribute is essential (the length must equal the number of attributes defined on the mesh)
[out]ess_vdofsAn mfem::Array marking the degrees of freedom
[in]componentAn optional argument denoting which component (of a vector space) is essential, -1 implies all components

Definition at line 33 of file boundary_condition_helper.cpp.