Serac  0.1
Serac is an implicit thermal strucural mechanics simulation code.
geometric_factors.hpp
1 // Copyright (c) Lawrence Livermore National Security, LLC and
2 // other Serac Project Developers. See the top-level LICENSE file for
3 // details.
4 //
5 // SPDX-License-Identifier: (BSD-3-Clause)
6 
7 #pragma once
8 
9 #include <cstddef>
10 
11 #include "serac/numerics/functional/element_restriction.hpp"
14 #include "mfem.hpp"
15 
16 namespace serac {
17 
26 
35  GeometricFactors(const Domain& domain, int q, mfem::Geometry::Type elem_geom);
36 
37  // descriptions copied from mfem
38 
40 
45  mfem::Vector X;
46 
48 
54  mfem::Vector J;
55 
57  std::size_t num_elements;
58 };
59 
60 } // namespace serac
many of the functions in this file amount to extracting element indices from an mesh_t like
This file contains helper traits and enumerations for classifying finite elements.
Accelerator functionality.
Definition: serac.cpp:36
a class for representing a geometric region that can be used for integration
Definition: domain.hpp:33
a class that computes and stores positions and jacobians at each quadrature point
std::size_t num_elements
the number of elements in the domain
mfem::Vector J
Jacobians of the element transformations at all quadrature points.
mfem::Vector X
Mapped (physical) coordinates of all quadrature points.
GeometricFactors()
default ctor, leaving this object uninitialized