hummingbird
Solving the self-adjoint angular flux transport equation using spectral elements on Cartesian geometry
Loading...
Searching...
No Matches
hummingbird::BCBank Class Reference

Bank holding the boundary conditions defined in the input file. More...

#include <bc_bank.h>

Inheritance diagram for hummingbird::BCBank:
[legend]
Collaboration diagram for hummingbird::BCBank:
[legend]

Public Member Functions

 BCBank (const json &json_input)
 Construct a new BCBank object. BCs are built using the json input.
Public Member Functions inherited from hummingbird::BankBase< BC >
const BC & GetByID (const int id) const
 Get the object by its ID.
const BC & GetByName (const std::string &name) const
 Get the object by its name in the JSON input file.
int GetIDByName (const std::string &name) const
 Get the ID of an object by its name in the JSON input file.

Private Member Functions

void Build (const json &json_input) override
 Builds the BC map and assigns it to the id_object_map_ and name_id_map_ members.

Additional Inherited Members

Protected Attributes inherited from hummingbird::BankBase< BC >
std::unordered_map< int, BC > id_object_map_
 ID to object map.
std::unordered_map< std::string, int > name_id_map_
 name to object ID map

Detailed Description

Bank holding the boundary conditions defined in the input file.

Definition at line 21 of file bc_bank.h.

Constructor & Destructor Documentation

◆ BCBank()

hummingbird::BCBank::BCBank ( const json & json_input)

Construct a new BCBank object. BCs are built using the json input.

Parameters
json_inputJSON object containing input file information

Definition at line 4 of file bc_bank.cc.

Member Function Documentation

◆ Build()

void hummingbird::BCBank::Build ( const json & json_input)
overrideprivatevirtual

Builds the BC map and assigns it to the id_object_map_ and name_id_map_ members.

Parameters
json_inputJSON object containing input file information

Implements hummingbird::BankBase< BC >.

Definition at line 6 of file bc_bank.cc.


The documentation for this class was generated from the following files:
  • /home/runner/work/hummingbird/hummingbird/include/banks/bc_bank.h
  • /home/runner/work/hummingbird/hummingbird/src/banks/bc_bank.cc