Chi-Tech
pwl_slab_00_constrdestr.cc
Go to the documentation of this file.
1
#include "
PieceWiseLinearSlabMapping.h
"
2
#include "
mesh/MeshContinuum/chi_meshcontinuum.h
"
3
#include "
math/SpatialDiscretization/CellMappings/PieceWiseLinearBaseMapping.h
"
4
5
namespace
chi_math::cell_mapping
6
{
7
8
PieceWiseLinearSlabMapping::PieceWiseLinearSlabMapping
(
9
const
chi_mesh::Cell
& slab_cell,
10
const
chi_mesh::MeshContinuum
& ref_grid,
11
const
chi_math::QuadratureLine
& volume_quadrature)
12
:
PieceWiseLinearBaseMapping
(ref_grid,
13
slab_cell,
14
2,
// num_nodes
15
MakeFaceNodeMapping(slab_cell)),
16
volume_quadrature_(volume_quadrature)
17
{
18
v0i_
= slab_cell.
vertex_ids_
[0];
19
v1i_
= slab_cell.
vertex_ids_
[1];
20
v0_
=
ref_grid_
.
vertices
[
v0i_
];
21
const
auto
& v1 =
ref_grid_
.
vertices
[
v1i_
];
22
23
chi_mesh::Vector3
v01 = v1 -
v0_
;
24
h_
= v01.
Norm
();
25
26
normals_
[0] = slab_cell.
faces_
[0].normal_;
27
normals_
[1] = slab_cell.
faces_
[1].normal_;
28
}
29
30
}
// namespace chi_math::cell_mapping
PieceWiseLinearBaseMapping.h
PieceWiseLinearSlabMapping.h
chi_meshcontinuum.h
chi_math::CellMapping::ref_grid_
const chi_mesh::MeshContinuum & ref_grid_
Definition:
CellMapping.h:117
chi_math::QuadratureLine
Definition:
quadrature_line.h:13
chi_math::cell_mapping::PieceWiseLinearBaseMapping
Definition:
PieceWiseLinearBaseMapping.h:16
chi_math::cell_mapping::PieceWiseLinearSlabMapping::v1i_
uint64_t v1i_
Definition:
PieceWiseLinearSlabMapping.h:57
chi_math::cell_mapping::PieceWiseLinearSlabMapping::v0i_
uint64_t v0i_
Definition:
PieceWiseLinearSlabMapping.h:56
chi_math::cell_mapping::PieceWiseLinearSlabMapping::v0_
chi_mesh::Vector3 v0_
Definition:
PieceWiseLinearSlabMapping.h:55
chi_math::cell_mapping::PieceWiseLinearSlabMapping::PieceWiseLinearSlabMapping
PieceWiseLinearSlabMapping(const chi_mesh::Cell &slab_cell, const chi_mesh::MeshContinuum &ref_grid, const QuadratureLine &volume_quadrature)
Definition:
pwl_slab_00_constrdestr.cc:8
chi_math::cell_mapping::PieceWiseLinearSlabMapping::h_
double h_
Definition:
PieceWiseLinearSlabMapping.h:60
chi_math::cell_mapping::PieceWiseLinearSlabMapping::normals_
std::array< chi_mesh::Normal, 2 > normals_
Definition:
PieceWiseLinearSlabMapping.h:58
chi_mesh::Cell
Definition:
cell.h:69
chi_mesh::Cell::faces_
std::vector< CellFace > faces_
Definition:
cell.h:82
chi_mesh::Cell::vertex_ids_
std::vector< uint64_t > vertex_ids_
Definition:
cell.h:81
chi_mesh::MeshContinuum
Definition:
chi_meshcontinuum.h:35
chi_mesh::MeshContinuum::vertices
VertexHandler vertices
Definition:
chi_meshcontinuum.h:51
chi_math::cell_mapping
Definition:
FiniteVolumeMapping.cc:6
chi_mesh::Vector3
Definition:
chi_meshvector.h:19
chi_mesh::Vector3::Norm
double Norm() const
Definition:
chi_meshvector.h:341
framework
math
SpatialDiscretization
CellMappings
PieceWiseLinear
pwl_slab_00_constrdestr.cc
Generated by
1.9.3