|
Smith
0.1
Smith is an implicit thermal structural mechanics simulation code.
|
This file contains the declaration of structure that manages the MFEM objects that make up the state for a given field. More...
#include <functional>#include <memory>#include <optional>#include <type_traits>#include <utility>#include "mfem.hpp"#include "smith/infrastructure/variant.hpp"#include "smith/physics/state/finite_element_vector.hpp"#include "smith/numerics/functional/domain.hpp"#include "smith/numerics/functional/tensor.hpp"

Go to the source code of this file.
Classes | |
| class | smith::FiniteElementState |
| Class for encapsulating the critical MFEM components of a primal finite element field. More... | |
Namespaces | |
| smith | |
| Accelerator functionality. | |
Typedefs | |
| template<typename T > | |
| using | smith::detail::first_argument = std::decay_t< decltype(first_argument_helper(std::declval< T >()))> |
Functions | |
| template<int dim> | |
| void | smith::detail::setMfemVectorFromTensorOrDouble (mfem::Vector &v_mfem, const tensor< double, dim > &v) |
| Helper function to copy a tensor into an mfem Vector. | |
| void | smith::detail::setMfemVectorFromTensorOrDouble (mfem::Vector &v_mfem, double v) |
| Helper function to copy a double into a singleton mfem Vector. | |
| template<typename Ret , typename Arg , typename... Rest> | |
| Arg | smith::detail::first_argument_helper (Ret(*)(Arg, Rest...)) |
| Helper for extracting type of first argument of a free function. | |
| template<typename Ret , typename F , typename Arg , typename... Rest> | |
| Arg | smith::detail::first_argument_helper (Ret(F::*)(Arg, Rest...)) |
| Helper for extracting type of first argument of a class method. More... | |
| template<typename Callable > | |
| auto | smith::detail::evaluateTensorFunctionOnMfemVector (const mfem::Vector &X_mfem, Callable &&f) |
| Evaluate a function of a tensor with an mfem Vector object. | |
| bool | smith::is_scalar_valued (const GeneralCoefficient &coef) |
| convenience function for querying the type stored in a GeneralCoefficient | |
| bool | smith::is_vector_valued (const GeneralCoefficient &coef) |
| convenience function for querying the type stored in a GeneralCoefficient | |
| double | smith::norm (const FiniteElementState &state, const double p=2) |
| Find the Lp norm of a finite element state across all dofs. More... | |
| double | smith::computeL2Error (const FiniteElementState &state, mfem::VectorCoefficient &exact_solution) |
| Find the L2 norm of the error of a vector-valued finite element state with respect to an exact solution. More... | |
| double | smith::computeL2Error (const FiniteElementState &state, mfem::Coefficient &exact_solution) |
| Find the L2 norm of the error of a scalar-valued finite element state with respect to an exact solution. More... | |
Variables | |
| template<typename F > | |
| decltype(first_argument_helper(&F::operator())) | smith::detail::first_argument_helper (F) |
This file contains the declaration of structure that manages the MFEM objects that make up the state for a given field.
Definition in file finite_element_state.hpp.
| using smith::detail::first_argument = typedef std::decay_t<decltype(first_argument_helper(std::declval<T>()))> |
Extract type of first argument of a free callable
Definition at line 78 of file finite_element_state.hpp.
| Arg smith::detail::first_argument_helper | ( | Ret(F::*)(Arg, Rest...) | ) |
Helper for extracting type of first argument of a class method.
Helper for extracting type of first argument of a const class method.
| decltype(first_argument_helper(&F::operator())) smith::detail::first_argument_helper(F) | ( | F | ) |
Extract type of first argument of a class method
Definition at line 72 of file finite_element_state.hpp.