Chi-Tech
|
#include <chi_unpartitioned_mesh.h>
Data Structures | |
struct | BoundBox |
struct | LightWeightCell |
struct | LightWeightFace |
struct | Options |
Public Member Functions | |
const BoundBox & | GetBoundBox () const |
Options & | GetMeshOptions () |
const Options & | GetMeshOptions () const |
MeshAttributes & | GetMeshAttributes () |
const MeshAttributes & | GetMeshAttributes () const |
const std::vector< std::set< uint64_t > > & | GetVertextCellSubscriptions () const |
void | AddCell (LightWeightCell *&cell) |
size_t | GetNumberOfCells () const |
std::vector< LightWeightCell * > & | GetRawCells () |
const std::vector< LightWeightCell * > & | GetRawCells () const |
const std::vector< chi_mesh::Vertex > & | GetVertices () const |
std::vector< chi_mesh::Vertex > & | GetVertices () |
void | BuildMeshConnectivity () |
void | ComputeCentroidsAndCheckQuality () |
uint64_t | MakeBoundaryID (const std::string &boundary_name) |
void | SetAttributes (MeshAttributes new_attribs, std::array< size_t, 3 > ortho_Nis={0, 0, 0}) |
void | ReadFromVTU (const Options &options) |
void | ReadFromPVTU (const Options &options) |
void | ReadFromEnsightGold (const Options &options) |
void | ReadFromWavefrontOBJ (const Options &options) |
void | ReadFromMsh (const Options &options) |
void | ReadFromExodus (const Options &options) |
void | PushProxyCell (const std::string &type_str, const std::string &sub_type_str, int cell_num_faces, int cell_material_id, const std::vector< std::vector< uint64_t > > &proxy_faces) |
~UnpartitionedMesh () | |
void | CleanUp () |
Protected Types | |
typedef vtkSmartPointer< vtkUnstructuredGrid > | vtkUGridPtr |
typedef std::pair< vtkUGridPtr, std::string > | vtkUGridPtrAndName |
Protected Member Functions | |
void | CopyUGridCellsAndPoints (vtkUnstructuredGrid &ugrid, double scale, int dimension_to_copy) |
void | SetMaterialIDsFromList (const std::vector< int > &material_ids) |
void | SetBoundaryIDsFromBlocks (std::vector< vtkUGridPtrAndName > &bndry_grid_blocks) |
Static Protected Member Functions | |
static LightWeightCell * | CreateCellFromVTKPolyhedron (vtkCell *vtk_cell) |
static LightWeightCell * | CreateCellFromVTKPolygon (vtkCell *vtk_cell) |
static LightWeightCell * | CreateCellFromVTKLine (vtkCell *vtk_cell) |
static LightWeightCell * | CreateCellFromVTKVertex (vtkCell *vtk_cell) |
Protected Attributes | |
std::vector< chi_mesh::Vertex > | vertices_ |
std::vector< LightWeightCell * > | raw_cells_ |
std::vector< LightWeightCell * > | raw_boundary_cells_ |
std::vector< std::set< uint64_t > > | vertex_cell_subscriptions_ |
MeshAttributes | attributes_ = NONE |
Options | mesh_options_ |
std::shared_ptr< BoundBox > | bound_box_ = nullptr |
This object is intented for unpartitioned meshes that still require partitioning.
Definition at line 18 of file chi_unpartitioned_mesh.h.
|
protected |
Definition at line 84 of file chi_unpartitioned_mesh.h.
|
protected |
Definition at line 85 of file chi_unpartitioned_mesh.h.
chi_mesh::UnpartitionedMesh::~UnpartitionedMesh | ( | ) |
Destructor.
Definition at line 11 of file unpartmesh_00a_general.cc.
|
inline |
Definition at line 109 of file chi_unpartitioned_mesh.h.
void chi_mesh::UnpartitionedMesh::BuildMeshConnectivity | ( | ) |
Establishes neighbor connectivity for the light-weight mesh.
Definition at line 12 of file unpartmesh_00b_connectivity.cc.
|
inline |
Definition at line 144 of file chi_unpartitioned_mesh.h.
void chi_mesh::UnpartitionedMesh::ComputeCentroidsAndCheckQuality | ( | ) |
Compute centroids for all cells.
Definition at line 21 of file unpartmesh_00a_general.cc.
|
protected |
Copies the vtk data structures to the current object's internal data.
Definition at line 15 of file unpartmesh_00d_vtk_copies.cc.
|
staticprotected |
Creates a raw slab cell from a vtk-line.
Definition at line 205 of file unpartmesh_00c_vtk_cellsvtk2chi.cc.
|
staticprotected |
Creates a raw polygon cell from a vtk-polygon.
Definition at line 148 of file unpartmesh_00c_vtk_cellsvtk2chi.cc.
|
staticprotected |
Creates a raw polyhedron cell from a vtk-polyhedron.
Definition at line 10 of file unpartmesh_00c_vtk_cellsvtk2chi.cc.
|
staticprotected |
Creates a raw point cell from a vtk-vertex.
Definition at line 253 of file unpartmesh_00c_vtk_cellsvtk2chi.cc.
|
inline |
Definition at line 96 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 101 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 102 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 98 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 99 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 110 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 111 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 112 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 104 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 118 of file chi_unpartitioned_mesh.h.
|
inline |
Definition at line 117 of file chi_unpartitioned_mesh.h.
uint64_t chi_mesh::UnpartitionedMesh::MakeBoundaryID | ( | const std::string & | boundary_name | ) |
Makes or gets a boundary that uniquely identifies the given name.
Definition at line 149 of file unpartmesh_00a_general.cc.
void chi_mesh::UnpartitionedMesh::PushProxyCell | ( | const std::string & | type_str, |
const std::string & | sub_type_str, | ||
int | cell_num_faces, | ||
int | cell_material_id, | ||
const std::vector< std::vector< uint64_t > > & | proxy_faces | ||
) |
Makes a cell from proxy information and pushes the cell to the mesh.
Definition at line 5 of file unpartmesh_05_pushproxycell.cc.
void chi_mesh::UnpartitionedMesh::ReadFromEnsightGold | ( | const Options & | options | ) |
Reads an Ensight-Gold unstructured mesh.
Definition at line 23 of file unpartmesh_01c_readfromensight.cc.
void chi_mesh::UnpartitionedMesh::ReadFromExodus | ( | const Options & | options | ) |
Reads an Exodus unstructured mesh.
Definition at line 23 of file unpartmesh_01f_readfromexodus.cc.
void chi_mesh::UnpartitionedMesh::ReadFromMsh | ( | const Options & | options | ) |
Reads an unpartitioned mesh from a gmesh .msh legacy ASCII format 2 file.
Lambda for reading nodes.
Lamda for checking if an element is 1D.
Lamda for checking if an element is 2D.
Lamda for checking if an element is 2D.
Lambda for checking supported elements.
Lambda giving the cell subtype, given the MSH cell type.
Definition at line 13 of file unpartmesh_01e_readfrommsh.cc.
void chi_mesh::UnpartitionedMesh::ReadFromPVTU | ( | const Options & | options | ) |
Reads a VTK unstructured mesh. This reader will use the following options:
file_name
, of course.material_id_fieldname
, cell data for material_id. Definition at line 23 of file unpartmesh_01b_readfrompvtu.cc.
void chi_mesh::UnpartitionedMesh::ReadFromVTU | ( | const Options & | options | ) |
Reads a VTK unstructured mesh. This reader will use the following options:
file_name
, of course.material_id_fieldname
, cell data for material_id. Definition at line 23 of file unpartmesh_01a_readfromvtu.cc.
void chi_mesh::UnpartitionedMesh::ReadFromWavefrontOBJ | ( | const Options & | options | ) |
Reads an unpartitioned mesh from a wavefront .obj file.
Definition at line 13 of file unpartmesh_01d_readfromwavefrontobj.cc.
void chi_mesh::UnpartitionedMesh::SetAttributes | ( | MeshAttributes | new_attribs, |
std::array< size_t, 3 > | ortho_Nis = {0, 0, 0} |
||
) |
Definition at line 165 of file unpartmesh_00a_general.cc.
|
protected |
Set boundary-ids from boundary grid_blocks.
Definition at line 209 of file unpartmesh_00d_vtk_copies.cc.
|
protected |
Set material-ids from list.
Definition at line 198 of file unpartmesh_00d_vtk_copies.cc.
|
protected |
Definition at line 74 of file chi_unpartitioned_mesh.h.
|
protected |
Definition at line 76 of file chi_unpartitioned_mesh.h.
|
protected |
Definition at line 75 of file chi_unpartitioned_mesh.h.
|
protected |
Definition at line 71 of file chi_unpartitioned_mesh.h.
|
protected |
Definition at line 70 of file chi_unpartitioned_mesh.h.
|
protected |
Definition at line 72 of file chi_unpartitioned_mesh.h.
|
protected |
Definition at line 69 of file chi_unpartitioned_mesh.h.