Chi-Tech
chi_mesh::OrthogonalMeshGenerator Class Reference

#include <OrthogonalMeshGenerator.h>

Inheritance diagram for chi_mesh::OrthogonalMeshGenerator:
chi_mesh::MeshGenerator ChiObject

Public Member Functions

 OrthogonalMeshGenerator (const chi::InputParameters &params)
 
- Public Member Functions inherited from chi_mesh::MeshGenerator
virtual void Execute ()
 
 MeshGenerator (const chi::InputParameters &params)
 
virtual std::unique_ptr< UnpartitionedMeshGenerateUnpartitionedMesh (std::unique_ptr< UnpartitionedMesh > input_umesh)
 
- Public Member Functions inherited from ChiObject
 ChiObject ()
 
 ChiObject (const chi::InputParameters &params)
 
void SetStackID (size_t stack_id)
 
size_t StackID () const
 
virtual void PushOntoStack (std::shared_ptr< ChiObject > &new_object)
 
virtual ~ChiObject ()=default
 

Static Public Member Functions

static chi::InputParameters GetInputParameters ()
 
- Static Public Member Functions inherited from chi_mesh::MeshGenerator
static chi::InputParameters GetInputParameters ()
 
- Static Public Member Functions inherited from ChiObject
static chi::InputParameters GetInputParameters ()
 

Protected Member Functions

std::unique_ptr< UnpartitionedMeshGenerateUnpartitionedMesh (std::unique_ptr< UnpartitionedMesh > input_umesh) override
 
- Protected Member Functions inherited from chi_mesh::MeshGenerator
std::vector< int64_t > PartitionMesh (const UnpartitionedMesh &input_umesh, int num_partitions)
 
std::shared_ptr< MeshContinuumSetupMesh (std::unique_ptr< UnpartitionedMesh > input_umesh_ptr, const std::vector< int64_t > &cell_pids)
 
bool CellHasLocalScope (int location_id, const chi_mesh::UnpartitionedMesh::LightWeightCell &lwcell, uint64_t cell_global_id, const std::vector< std::set< uint64_t > > &vertex_subscriptions, const std::vector< int64_t > &cell_partition_ids) const
 

Static Protected Member Functions

static std::unique_ptr< UnpartitionedMeshCreateUnpartitioned1DOrthoMesh (const std::vector< double > &vertices)
 
static std::unique_ptr< UnpartitionedMeshCreateUnpartitioned2DOrthoMesh (const std::vector< double > &vertices_1d_x, const std::vector< double > &vertices_1d_y)
 
static std::unique_ptr< UnpartitionedMeshCreateUnpartitioned3DOrthoMesh (const std::vector< double > &vertices_1d_x, const std::vector< double > &vertices_1d_y, const std::vector< double > &vertices_1d_z)
 
- Static Protected Member Functions inherited from chi_mesh::MeshGenerator
static void BroadcastPIDs (std::vector< int64_t > &cell_pids, int root, MPI_Comm communicator)
 
static std::unique_ptr< chi_mesh::CellSetupCell (const UnpartitionedMesh::LightWeightCell &raw_cell, uint64_t global_id, uint64_t partition_id, const VertexListHelper &vertices)
 
static void SetGridAttributes (chi_mesh::MeshContinuum &grid, MeshAttributes new_attribs, std::array< size_t, 3 > ortho_cells_per_dimension)
 
static void ComputeAndPrintStats (const chi_mesh::MeshContinuum &grid)
 

Protected Attributes

std::vector< std::vector< double > > node_sets_
 
- Protected Attributes inherited from chi_mesh::MeshGenerator
const double scale_
 
const bool replicated_
 
std::vector< MeshGenerator * > inputs_
 
chi::GraphPartitionerpartitioner_ = nullptr
 

Detailed Description

Definition at line 9 of file OrthogonalMeshGenerator.h.

Constructor & Destructor Documentation

◆ OrthogonalMeshGenerator()

chi_mesh::OrthogonalMeshGenerator::OrthogonalMeshGenerator ( const chi::InputParameters params)
explicit

Definition at line 26 of file OrthogonalMeshGenerator.cc.

Member Function Documentation

◆ CreateUnpartitioned1DOrthoMesh()

std::unique_ptr< UnpartitionedMesh > chi_mesh::OrthogonalMeshGenerator::CreateUnpartitioned1DOrthoMesh ( const std::vector< double > &  vertices)
staticprotected

Definition at line 122 of file OrthogonalMeshGenerator.cc.

◆ CreateUnpartitioned2DOrthoMesh()

std::unique_ptr< UnpartitionedMesh > chi_mesh::OrthogonalMeshGenerator::CreateUnpartitioned2DOrthoMesh ( const std::vector< double > &  vertices_1d_x,
const std::vector< double > &  vertices_1d_y 
)
staticprotected

Definition at line 191 of file OrthogonalMeshGenerator.cc.

◆ CreateUnpartitioned3DOrthoMesh()

std::unique_ptr< UnpartitionedMesh > chi_mesh::OrthogonalMeshGenerator::CreateUnpartitioned3DOrthoMesh ( const std::vector< double > &  vertices_1d_x,
const std::vector< double > &  vertices_1d_y,
const std::vector< double > &  vertices_1d_z 
)
staticprotected

Definition at line 297 of file OrthogonalMeshGenerator.cc.

◆ GenerateUnpartitionedMesh()

std::unique_ptr< UnpartitionedMesh > chi_mesh::OrthogonalMeshGenerator::GenerateUnpartitionedMesh ( std::unique_ptr< UnpartitionedMesh input_umesh)
overrideprotectedvirtual

Virtual method to generate the unpartitioned mesh for the next step.

Default behavior here is to return the input umesh unaltered.

Reimplemented from chi_mesh::MeshGenerator.

Definition at line 100 of file OrthogonalMeshGenerator.cc.

◆ GetInputParameters()

chi::InputParameters chi_mesh::OrthogonalMeshGenerator::GetInputParameters ( )
static

Definition at line 12 of file OrthogonalMeshGenerator.cc.

Field Documentation

◆ node_sets_

std::vector<std::vector<double> > chi_mesh::OrthogonalMeshGenerator::node_sets_
protected

Definition at line 31 of file OrthogonalMeshGenerator.h.


The documentation for this class was generated from the following files: