Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
Classes | Namespaces | Typedefs | Enumerations | Functions
finite_element_vector.hpp File Reference

This file contains the declaration of structure that manages vectors derived from an MFEM finite element space. More...

#include <functional>
#include <memory>
#include <string>
#include <tuple>
#include "mpi.h"
#include "mfem.hpp"
#include "smith/smith_config.hpp"
#include "smith/infrastructure/variant.hpp"
#include "smith/numerics/functional/functional.hpp"
Include dependency graph for finite_element_vector.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  smith::FiniteElementVector
 Class for encapsulating the data associated with a vector derived from a MFEM finite element space. Specifically, it contains the information needed for both primal finite element state fields and dual finite element vectors. More...
 

Namespaces

 smith
 Accelerator functionality.
 

Typedefs

using smith::GeneralCoefficient = variant< std::shared_ptr< mfem::Coefficient >, std::shared_ptr< mfem::VectorCoefficient > >
 A sum type for encapsulating either a scalar or vector coeffient.
 

Enumerations

enum class  smith::ElementType { smith::H1 , smith::HCURL , smith::HDIV , smith::L2 }
 The type of a finite element basis function. More...
 

Functions

double smith::avg (const FiniteElementVector &fe_vector)
 Find the average value of a finite element vector across all dofs. More...
 
double smith::max (const FiniteElementVector &fe_vector)
 Find the max value of a finite element vector across all dofs. More...
 
double smith::min (const FiniteElementVector &fe_vector)
 Find the min value of a finite element vector across all dofs. More...
 
double smith::innerProduct (const FiniteElementVector &vec1, const FiniteElementVector &vec2)
 Find the inner prodcut between two finite element vectors across all dofs. More...
 

Detailed Description

This file contains the declaration of structure that manages vectors derived from an MFEM finite element space.

Definition in file finite_element_vector.hpp.