Smith
0.1
Smith is an implicit thermal structural mechanics simulation code.
src
smith
numerics
functional
geometric_factors.hpp
1
// Copyright (c) Lawrence Livermore National Security, LLC and
2
// other Smith 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 "smith/numerics/functional/element_restriction.hpp"
12
#include "
smith/numerics/functional/finite_element.hpp
"
13
#include "
smith/numerics/functional/domain.hpp
"
14
#include "mfem.hpp"
15
16
namespace
smith
{
17
23
struct
GeometricFactors
{
25
GeometricFactors
() {};
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 smith
domain.hpp
many of the functions in this file amount to extracting element indices from an mesh_t like
finite_element.hpp
This file contains helper traits and enumerations for classifying finite elements.
smith
Accelerator functionality.
Definition:
smith.cpp:36
smith::Domain
a class for representing a geometric region that can be used for integration
Definition:
domain.hpp:33
smith::GeometricFactors
a class that computes and stores positions and jacobians at each quadrature point
Definition:
geometric_factors.hpp:23
smith::GeometricFactors::num_elements
std::size_t num_elements
the number of elements in the domain
Definition:
geometric_factors.hpp:57
smith::GeometricFactors::J
mfem::Vector J
Jacobians of the element transformations at all quadrature points.
Definition:
geometric_factors.hpp:54
smith::GeometricFactors::X
mfem::Vector X
Mapped (physical) coordinates of all quadrature points.
Definition:
geometric_factors.hpp:45
smith::GeometricFactors::GeometricFactors
GeometricFactors()
default ctor, leaving this object uninitialized
Definition:
geometric_factors.hpp:25
Generated by
1.9.1