Chi-Tech
chi_grid_vtk_utils.h File Reference
#include <cstdint>
#include <string>
#include <vector>
#include <map>

Go to the source code of this file.

Namespaces

namespace  chi_mesh
 

Typedefs

typedef vtkSmartPointer< vtkUnstructuredGrid > chi_mesh::vtkUGridPtr
 
typedef std::pair< vtkUGridPtr, std::string > chi_mesh::vtkUGridPtrAndName
 

Functions

void chi_mesh::UploadCellGeometryDiscontinuous (const chi_mesh::MeshContinuum &grid, const chi_mesh::Cell &cell, int64_t &node_counter, vtkNew< vtkPoints > &points, vtkNew< vtkUnstructuredGrid > &ugrid)
 
void chi_mesh::UploadCellGeometryContinuous (const chi_mesh::Cell &cell, const std::vector< uint64_t > &vertex_map, vtkNew< vtkUnstructuredGrid > &ugrid)
 
void chi_mesh::UploadFaceGeometry (const chi_mesh::CellFace &cell_face, const std::vector< uint64_t > &vertex_map, vtkNew< vtkUnstructuredGrid > &ugrid)
 
int chi_mesh::FindHighestDimension (std::vector< vtkUGridPtrAndName > &ugrid_blocks)
 
vtkUGridPtr chi_mesh::ConsolidateGridBlocks (std::vector< vtkUGridPtrAndName > &ugrid_blocks, const std::string &block_id_array_name="BlockID")
 
std::vector< vtkUGridPtrAndName > chi_mesh::GetBlocksOfDesiredDimension (std::vector< vtkUGridPtrAndName > &ugrid_blocks, int desired_dimension)
 
std::vector< uint64_t > chi_mesh::BuildBlockCellExtents (std::vector< vtkUGridPtrAndName > &ugrid_blocks, int desired_dimension)
 
void chi_mesh::SetBlockIDArrays (std::vector< vtkUGridPtrAndName > &ugrid_blocks)
 
std::vector< int > chi_mesh::BuildCellMaterialIDsFromField (vtkUGridPtr &ugrid, const std::string &field_name, const std::string &file_name)
 
vtkNew< vtkUnstructuredGrid > chi_mesh::PrepareVtkUnstructuredGrid (const chi_mesh::MeshContinuum &grid, bool discontinuous=true)
 
void chi_mesh::WritePVTUFiles (vtkNew< vtkUnstructuredGrid > &ugrid, const std::string &file_base_name)