Chi-Tech
pwl_slab_00_constrdestr.cc
Go to the documentation of this file.
4
6{
7
9 const chi_mesh::Cell& slab_cell,
10 const chi_mesh::MeshContinuum& ref_grid,
11 const chi_math::QuadratureLine& volume_quadrature)
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];
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
const chi_mesh::MeshContinuum & ref_grid_
Definition: CellMapping.h:117
PieceWiseLinearSlabMapping(const chi_mesh::Cell &slab_cell, const chi_mesh::MeshContinuum &ref_grid, const QuadratureLine &volume_quadrature)
std::vector< CellFace > faces_
Definition: cell.h:82
std::vector< uint64_t > vertex_ids_
Definition: cell.h:81
double Norm() const