Chi-Tech
chi_volumemesher_01_utils.cc
Go to the documentation of this file.
1
#include "
chi_volumemesher.h
"
2
#include "
mesh/MeshContinuum/chi_meshcontinuum.h
"
3
4
//###################################################################
5
chi_mesh::VolumeMesher::VolumeMesher
(
VolumeMesherType
type) :
6
type_(type)
7
{}
8
9
//###################################################################
10
/** Sets the grid member of the volume mesher.*/
11
void
chi_mesh::VolumeMesher::SetContinuum
(
MeshContinuumPtr
&grid)
12
{
13
grid_ptr_ = grid;
14
}
15
16
//###################################################################
17
/** Gets the smart-pointer for the grid.*/
18
chi_mesh::MeshContinuumPtr
&
chi_mesh::VolumeMesher::GetContinuum
()
19
{
20
return
grid_ptr_;
21
}
22
23
//###################################################################
24
/**Sets grid attributes. This is normally a private member of the grid
25
* but this class is a friend.*/
26
void
chi_mesh::VolumeMesher::
27
SetGridAttributes
(
MeshAttributes
new_attribs,
28
std::array<size_t,3> ortho_Nis
/*={0,0,0}*/
)
29
{
30
grid_ptr_->SetAttributes(new_attribs, ortho_Nis);
31
}
32
33
34
//###################################################################
35
/**Gets the volume mesher's type.*/
36
chi_mesh::VolumeMesherType
chi_mesh::VolumeMesher::Type
()
const
37
{
38
return
type_;
39
}
40
chi_meshcontinuum.h
chi_volumemesher.h
chi_mesh::VolumeMesher::GetContinuum
MeshContinuumPtr & GetContinuum()
Definition:
chi_volumemesher_01_utils.cc:18
chi_mesh::VolumeMesher::SetContinuum
void SetContinuum(MeshContinuumPtr &grid)
Definition:
chi_volumemesher_01_utils.cc:11
chi_mesh::VolumeMesher::SetGridAttributes
void SetGridAttributes(MeshAttributes new_attribs, std::array< size_t, 3 > ortho_Nis={0, 0, 0})
Definition:
chi_volumemesher_01_utils.cc:27
chi_mesh::VolumeMesher::VolumeMesher
VolumeMesher(VolumeMesherType type)
Definition:
chi_volumemesher_01_utils.cc:5
chi_mesh::VolumeMesher::Type
VolumeMesherType Type() const
Definition:
chi_volumemesher_01_utils.cc:36
chi_mesh::VolumeMesherType
VolumeMesherType
Definition:
chi_volumemesher.h:15
chi_mesh::MeshContinuumPtr
std::shared_ptr< MeshContinuum > MeshContinuumPtr
Definition:
chi_mesh.h:44
chi_mesh::MeshAttributes
MeshAttributes
Definition:
chi_mesh.h:70
framework
mesh
VolumeMesher
chi_volumemesher_01_utils.cc
Generated by
1.9.3