Serac
0.1
Serac is an implicit thermal strucural mechanics simulation code.
src
serac
numerics
functional
geometric_factors.hpp
1
#pragma once
2
3
#include "serac/numerics/functional/element_restriction.hpp"
// for FaceType
4
#include "
serac/numerics/functional/finite_element.hpp
"
// for Geometry
5
#include "
serac/numerics/functional/domain.hpp
"
6
7
#include "mfem.hpp"
8
9
namespace
serac
{
10
16
struct
GeometricFactors
{
18
GeometricFactors
(){};
19
28
GeometricFactors
(
const
Domain
& domain,
int
q, mfem::Geometry::Type elem_geom);
29
39
GeometricFactors
(
const
Domain
& domain,
int
q, mfem::Geometry::Type elem_geom, FaceType
type
);
40
41
// descriptions copied from mfem
42
44
49
mfem::Vector
X
;
50
52
58
mfem::Vector
J
;
59
61
std::vector<int>
elements
;
62
64
std::size_t
num_elements
;
65
};
66
67
}
// namespace serac
domain.hpp
many of the functions in this file amount to extracting element indices from an mfem::Mesh like
finite_element.hpp
This file contains helper traits and enumerations for classifying finite elements.
serac
Accelerator functionality.
Definition:
serac.cpp:38
serac::type
constexpr SERAC_HOST_DEVICE auto type(const tuple< T... > &values)
a function intended to be used for extracting the ith type from a tuple.
Definition:
tuple.hpp:274
serac::Domain
a class for representing a geometric region that can be used for integration
Definition:
domain.hpp:21
serac::GeometricFactors
a class that computes and stores positions and jacobians at each quadrature point
Definition:
geometric_factors.hpp:16
serac::GeometricFactors::num_elements
std::size_t num_elements
the number of elements in the domain
Definition:
geometric_factors.hpp:64
serac::GeometricFactors::elements
std::vector< int > elements
list of element indices that are part of the associated domain
Definition:
geometric_factors.hpp:61
serac::GeometricFactors::J
mfem::Vector J
Jacobians of the element transformations at all quadrature points.
Definition:
geometric_factors.hpp:58
serac::GeometricFactors::X
mfem::Vector X
Mapped (physical) coordinates of all quadrature points.
Definition:
geometric_factors.hpp:49
serac::GeometricFactors::GeometricFactors
GeometricFactors()
default ctor, leaving this object uninitialized
Definition:
geometric_factors.hpp:18
Generated by
1.9.1