IOSS 2.0
Loading...
Searching...
No Matches
Iocgns::Utils Class Reference

#include <Iocgns_Utils.h>

Static Public Member Functions

static IOSS_NODISCARD std::pair< std::string, int > decompose_name (const std::string &name, bool is_parallel)
 
static IOSS_NODISCARD std::string decompose_sb_name (const std::string &name)
 
static IOSS_NODISCARD size_t index (const Ioss::Field &field)
 
static void cgns_error (int cgnsid, const char *file, const char *function, int lineno, int processor)
 
static void update_db_zone_property (int cgns_file_ptr, const Ioss::Region *region, int myProcessor, bool is_parallel, bool is_parallel_io)
 
static IOSS_NODISCARD int get_db_zone (const Ioss::GroupingEntity *entity)
 
static void set_field_index (const Ioss::Field &field, size_t index, CGNS_ENUMT(GridLocation_t) location)
 
static IOSS_NODISCARD bool is_cell_field (const Ioss::Field &field)
 
template<typename INT >
static void map_cgns_connectivity (const Ioss::ElementTopology *topo, size_t element_count, INT *idata)
 
template<typename INT >
static void unmap_cgns_connectivity (const Ioss::ElementTopology *topo, size_t element_count, INT *idata)
 
template<typename INT >
static void map_cgns_face_to_ioss (const Ioss::ElementTopology *parent_topo, size_t num_to_get, INT *idata)
 
static void map_ioss_face_to_cgns (const Ioss::ElementTopology *parent_topo, size_t num_to_get, CGNSIntVector &data)
 
static IOSS_NODISCARD std::vector< ZoneBCparse_zonebc_sideblocks (int cgns_file_ptr, int base, int zone, int myProcessor)
 
static void generate_boundary_faces (Ioss::Region *region, std::map< std::string, Ioss::FaceUnorderedSet > &boundary_faces, Ioss::Field::BasicType field_type)
 
static void write_flow_solution_metadata (int file_ptr, int base_ptr, Ioss::Region *region, int state, const int *vertex_solution_index, const int *cell_center_solution_index, bool is_parallel_io)
 
static IOSS_NODISCARD int find_solution_index (int cgns_file_ptr, int base, int zone, int step, CGNS_ENUMT(GridLocation_t) location)
 
static IOSS_NODISCARD Ioss::MeshType check_mesh_type (int cgns_file_ptr)
 
static void output_assembly (int file_ptr, const Ioss::Assembly *assembly, bool is_parallel_io, bool appending=false)
 
static void output_assemblies (int file_ptr, const Ioss::Region &region, bool is_parallel_io)
 
static void write_state_meta_data (int file_ptr, const Ioss::Region &region, bool is_parallel_io)
 
static size_t common_write_metadata (int file_ptr, const Ioss::Region &region, std::vector< size_t > &zone_offset, bool is_parallel)
 
static size_t resolve_nodes (Ioss::Region &region, int my_processor, bool is_parallel)
 
static IOSS_NODISCARD std::vector< std::vector< std::pair< size_t, size_t > > > resolve_processor_shared_nodes (Ioss::Region &region, int my_processor)
 
static IOSS_NODISCARD CGNS_ENUMT(ElementType_t) map_topology_to_cgns(const std static IOSS_NODISCARD std::string map_cgns_to_topology_type (CGNS_ENUMT(ElementType_t) type)
 
static void add_sidesets (int cgns_file_ptr, Ioss::DatabaseIO *db)
 
static void add_assemblies (int cgns_file_ptr, Ioss::DatabaseIO *db)
 
static void add_to_assembly (int cgns_file_ptr, Ioss::Region *region, Ioss::EntityBlock *block, int base, int zone)
 
static void add_structured_boundary_conditions (int cgns_file_ptr, Ioss::StructuredBlock *block, bool is_parallel_io)
 
static void add_structured_boundary_conditions_fpp (int cgns_file_ptr, Ioss::StructuredBlock *block)
 
static void add_structured_boundary_conditions_pio (int cgns_file_ptr, Ioss::StructuredBlock *block)
 
static void finalize_database (int cgns_file_ptr, const std::vector< double > &timesteps, Ioss::Region *region, int myProcessor, bool is_parallel_io)
 
static int get_step_times (int cgns_file_ptr, std::vector< double > &timesteps, Ioss::Region *region, double timeScaleFactor, int myProcessor)
 
static void add_transient_variables (int cgns_file_ptr, const std::vector< double > &timesteps, Ioss::Region *region, int myProcessor, bool is_parallel_io)
 
static void set_line_decomposition (int cgns_file_ptr, const std::string &line_decomposition, std::vector< Iocgns::StructuredZoneData * > &zones, int rank, bool verbose)
 
static void decompose_model (std::vector< Iocgns::StructuredZoneData * > &zones, int proc_count, int rank, double load_balance_threshold, bool verbose)
 
static int pre_split (std::vector< Iocgns::StructuredZoneData * > &zones, double avg_work, double load_balance, int proc_rank, int proc_count, bool verbose)
 
static void assign_zones_to_procs (std::vector< Iocgns::StructuredZoneData * > &zones, std::vector< size_t > &work_vector, bool verbose)
 
static IOSS_NODISCARD std::string show_config ()
 
template<typename INT >
static void generate_block_faces (Ioss::ElementTopology *topo, size_t num_elem, const std::vector< INT > &connectivity, Ioss::FaceUnorderedSet &boundary, const std::vector< INT > &zone_local_zone_global)
 

Member Function Documentation

◆ add_assemblies()

void Iocgns::Utils::add_assemblies ( int cgns_file_ptr,
Ioss::DatabaseIO * db )
static

◆ add_sidesets()

void Iocgns::Utils::add_sidesets ( int cgns_file_ptr,
Ioss::DatabaseIO * db )
static

◆ add_structured_boundary_conditions()

void Iocgns::Utils::add_structured_boundary_conditions ( int cgns_file_ptr,
Ioss::StructuredBlock * block,
bool is_parallel_io )
static

◆ add_structured_boundary_conditions_fpp()

void Iocgns::Utils::add_structured_boundary_conditions_fpp ( int cgns_file_ptr,
Ioss::StructuredBlock * block )
static

◆ add_structured_boundary_conditions_pio()

void Iocgns::Utils::add_structured_boundary_conditions_pio ( int cgns_file_ptr,
Ioss::StructuredBlock * block )
static

◆ add_to_assembly()

void Iocgns::Utils::add_to_assembly ( int cgns_file_ptr,
Ioss::Region * region,
Ioss::EntityBlock * block,
int base,
int zone )
static

◆ add_transient_variables()

void Iocgns::Utils::add_transient_variables ( int cgns_file_ptr,
const std::vector< double > & timesteps,
Ioss::Region * region,
int myProcessor,
bool is_parallel_io )
static

◆ assign_zones_to_procs()

void Iocgns::Utils::assign_zones_to_procs ( std::vector< Iocgns::StructuredZoneData * > & zones,
std::vector< size_t > & work_vector,
bool verbose )
static

◆ cgns_error()

void Iocgns::Utils::cgns_error ( int cgnsid,
const char * file,
const char * function,
int lineno,
int processor )
static

◆ check_mesh_type()

Ioss::MeshType Iocgns::Utils::check_mesh_type ( int cgns_file_ptr)
static

◆ common_write_metadata()

size_t Iocgns::Utils::common_write_metadata ( int file_ptr,
const Ioss::Region & region,
std::vector< size_t > & zone_offset,
bool is_parallel )
static

◆ decompose_model()

void Iocgns::Utils::decompose_model ( std::vector< Iocgns::StructuredZoneData * > & zones,
int proc_count,
int rank,
double load_balance_threshold,
bool verbose )
static

◆ decompose_name()

std::pair< std::string, int > Iocgns::Utils::decompose_name ( const std::string & name,
bool is_parallel )
static

◆ decompose_sb_name()

std::string Iocgns::Utils::decompose_sb_name ( const std::string & name)
static

◆ finalize_database()

void Iocgns::Utils::finalize_database ( int cgns_file_ptr,
const std::vector< double > & timesteps,
Ioss::Region * region,
int myProcessor,
bool is_parallel_io )
static

◆ find_solution_index()

int Iocgns::Utils::find_solution_index ( int cgns_file_ptr,
int base,
int zone,
int step,
CGNS_ENUMT(GridLocation_t) location )
static

◆ generate_block_faces()

template<typename INT >
template void Iocgns::Utils::generate_block_faces< int64_t > ( Ioss::ElementTopology * topo,
size_t num_elem,
const std::vector< INT > & connectivity,
Ioss::FaceUnorderedSet & boundary,
const std::vector< INT > & zone_local_zone_global )
static

◆ generate_boundary_faces()

void Iocgns::Utils::generate_boundary_faces ( Ioss::Region * region,
std::map< std::string, Ioss::FaceUnorderedSet > & boundary_faces,
Ioss::Field::BasicType field_type )
static

◆ get_db_zone()

int Iocgns::Utils::get_db_zone ( const Ioss::GroupingEntity * entity)
static

◆ get_step_times()

int Iocgns::Utils::get_step_times ( int cgns_file_ptr,
std::vector< double > & timesteps,
Ioss::Region * region,
double timeScaleFactor,
int myProcessor )
static

◆ index()

size_t Iocgns::Utils::index ( const Ioss::Field & field)
static

◆ is_cell_field()

bool Iocgns::Utils::is_cell_field ( const Ioss::Field & field)
static

◆ map_cgns_connectivity()

template<typename INT >
static void Iocgns::Utils::map_cgns_connectivity ( const Ioss::ElementTopology * topo,
size_t element_count,
INT * idata )
inlinestatic

◆ map_cgns_face_to_ioss()

template<typename INT >
static void Iocgns::Utils::map_cgns_face_to_ioss ( const Ioss::ElementTopology * parent_topo,
size_t num_to_get,
INT * idata )
inlinestatic

◆ map_cgns_to_topology_type()

std::string Iocgns::Utils::map_cgns_to_topology_type ( CGNS_ENUMT(ElementType_t) type)
static

◆ map_ioss_face_to_cgns()

static void Iocgns::Utils::map_ioss_face_to_cgns ( const Ioss::ElementTopology * parent_topo,
size_t num_to_get,
CGNSIntVector & data )
inlinestatic

◆ output_assemblies()

void Iocgns::Utils::output_assemblies ( int file_ptr,
const Ioss::Region & region,
bool is_parallel_io )
static

◆ output_assembly()

void Iocgns::Utils::output_assembly ( int file_ptr,
const Ioss::Assembly * assembly,
bool is_parallel_io,
bool appending = false )
static

◆ parse_zonebc_sideblocks()

std::vector< Iocgns::ZoneBC > Iocgns::Utils::parse_zonebc_sideblocks ( int cgns_file_ptr,
int base,
int zone,
int myProcessor )
static

◆ pre_split()

int Iocgns::Utils::pre_split ( std::vector< Iocgns::StructuredZoneData * > & zones,
double avg_work,
double load_balance,
int proc_rank,
int proc_count,
bool verbose )
static

◆ resolve_nodes()

size_t Iocgns::Utils::resolve_nodes ( Ioss::Region & region,
int my_processor,
bool is_parallel )
static

◆ resolve_processor_shared_nodes()

std::vector< std::vector< std::pair< size_t, size_t > > > Iocgns::Utils::resolve_processor_shared_nodes ( Ioss::Region & region,
int my_processor )
static

◆ set_field_index()

void Iocgns::Utils::set_field_index ( const Ioss::Field & field,
size_t index,
CGNS_ENUMT(GridLocation_t) location )
static

◆ set_line_decomposition()

void Iocgns::Utils::set_line_decomposition ( int cgns_file_ptr,
const std::string & line_decomposition,
std::vector< Iocgns::StructuredZoneData * > & zones,
int rank,
bool verbose )
static

◆ show_config()

std::string Iocgns::Utils::show_config ( )
static

◆ unmap_cgns_connectivity()

template<typename INT >
static void Iocgns::Utils::unmap_cgns_connectivity ( const Ioss::ElementTopology * topo,
size_t element_count,
INT * idata )
inlinestatic

◆ update_db_zone_property()

void Iocgns::Utils::update_db_zone_property ( int cgns_file_ptr,
const Ioss::Region * region,
int myProcessor,
bool is_parallel,
bool is_parallel_io )
static

◆ write_flow_solution_metadata()

void Iocgns::Utils::write_flow_solution_metadata ( int file_ptr,
int base_ptr,
Ioss::Region * region,
int state,
const int * vertex_solution_index,
const int * cell_center_solution_index,
bool is_parallel_io )
static

◆ write_state_meta_data()

void Iocgns::Utils::write_state_meta_data ( int file_ptr,
const Ioss::Region & region,
bool is_parallel_io )
static

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