Chi-Tech
|
#include <chi_meshhandler.h>
Public Member Functions | |
chi_mesh::MeshContinuumPtr & | GetGrid () const |
bool | HasSurfaceMesher () const |
bool | HasVolumeMesher () const |
chi_mesh::SurfaceMesher & | GetSurfaceMesher () |
chi_mesh::VolumeMesher & | GetVolumeMesher () |
const chi_mesh::SurfaceMesher & | GetSurfaceMesher () const |
const chi_mesh::VolumeMesher & | GetVolumeMesher () const |
void | SetSurfaceMesher (std::shared_ptr< chi_mesh::SurfaceMesher > surface_mesher) |
void | SetVolumeMesher (std::shared_ptr< chi_mesh::VolumeMesher > volume_mesher) |
MeshHandler ()=default | |
MeshHandler (const MeshHandler &)=delete | |
MeshHandler & | operator= (const MeshHandler &)=delete |
Protected Attributes | |
std::shared_ptr< chi_mesh::SurfaceMesher > | surface_mesher_ = nullptr |
std::shared_ptr< chi_mesh::VolumeMesher > | volume_mesher_ = nullptr |
Object for containing all mesh related variables.
Definition at line 12 of file chi_meshhandler.h.
|
default |
Defaulted constructor.
|
delete |
chi_mesh::MeshContinuumPtr & chi_mesh::MeshHandler::GetGrid | ( | ) | const |
Obtains the grid from the volume mesher.
Obtains a pointer to the last created grid. This method will get a smart-pointer to a grid object. If a volume-mesher has not been created, or if a grid is not available, this method will throw std::logic_error
.
Definition at line 12 of file chi_meshhandler.cc.
chi_mesh::SurfaceMesher & chi_mesh::MeshHandler::GetSurfaceMesher | ( | ) |
Obtains a reference to the surface mesher. If not set, will throw std::logic_error
.
Obtains a reference to the surface mesher.
Definition at line 32 of file chi_meshhandler.cc.
const chi_mesh::SurfaceMesher & chi_mesh::MeshHandler::GetSurfaceMesher | ( | ) | const |
Obtains a const reference to the surface mesher. If not set, will throw std::logic_error
.
Obtains a reference to the surface mesher.
Definition at line 56 of file chi_meshhandler.cc.
chi_mesh::VolumeMesher & chi_mesh::MeshHandler::GetVolumeMesher | ( | ) |
Obtains a reference to the volume mesher. If not set, will throw std::logic_error
.
Obtains a reference to the surface mesher.
Definition at line 44 of file chi_meshhandler.cc.
const chi_mesh::VolumeMesher & chi_mesh::MeshHandler::GetVolumeMesher | ( | ) | const |
Obtains a const reference to the volume mesher. If not set, will throw std::logic_error
.
Obtains a reference to the surface mesher.
Definition at line 67 of file chi_meshhandler.cc.
|
inline |
Returns true if the surface mesher has been set.
Definition at line 23 of file chi_meshhandler.h.
|
inline |
Returns true if the volume mesher has been set.
Definition at line 26 of file chi_meshhandler.h.
|
delete |
|
inline |
Sets the active surface mesher.
Definition at line 45 of file chi_meshhandler.h.
|
inline |
Sets the active volume mesher.
Definition at line 49 of file chi_meshhandler.h.
|
protected |
Definition at line 15 of file chi_meshhandler.h.
|
protected |
Definition at line 16 of file chi_meshhandler.h.