Smith  0.1
Smith is an implicit thermal structural mechanics simulation code.
dirichlet_boundary_conditions.cpp
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 #include "smith/physics/mesh.hpp"
9 
10 namespace smith {
11 
13  mfem::ParFiniteElementSpace& space)
14  : bcs_(mfem_mesh), space_(space)
15 {
16 }
17 
18 DirichletBoundaryConditions::DirichletBoundaryConditions(const Mesh& mesh, mfem::ParFiniteElementSpace& space)
19  : DirichletBoundaryConditions(mesh.mfemParMesh(), space)
20 {
21 }
22 
23 } // namespace smith
A generic class for setting Dirichlet boundary conditions on arbitrary physics.
DirichletBoundaryConditions(const mfem::ParMesh &mfem_mesh, mfem::ParFiniteElementSpace &space)
Construct from mfem::ParMesh.
Helper class for constructing a mesh consistent with Smith.
Definition: mesh.hpp:37
Contains DirichletBoundaryConditions class for interaction with the differentiable solve interfaces.
Smith mesh class which assists in constructing the appropriate parallel mfem meshes and registering a...
Accelerator functionality.
Definition: smith.cpp:36
mfem::ParFiniteElementSpace & space(FieldState field)
Get the space from the primal field of a field states.