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

Bank holding the volumetric sources defined in the input file. More...

#include <source_bank.h>

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

Public Member Functions

 SourceBank (const json &json_input)
 Construct a new Source Bank object. Source structs are build using the JSON input file.
Public Member Functions inherited from hummingbird::BankBase< std::unique_ptr< SourceBase > >
const std::unique_ptr< SourceBase > & GetByID (const int id) const
 Get the object by its ID.
const std::unique_ptr< SourceBase > & 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)
 Build internal maps based on JSON input.

Additional Inherited Members

Protected Attributes inherited from hummingbird::BankBase< std::unique_ptr< SourceBase > >
std::unordered_map< int, std::unique_ptr< SourceBase > > 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 volumetric sources defined in the input file.

Definition at line 25 of file source_bank.h.

Constructor & Destructor Documentation

◆ SourceBank()

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

Construct a new Source Bank object. Source structs are build using the JSON input file.

Parameters
json_inputInput file as json object

Definition at line 5 of file source_bank.cc.

Member Function Documentation

◆ Build()

void hummingbird::SourceBank::Build ( const json & json_input)
privatevirtual

Build internal maps based on JSON input.

Parameters
json_inputJSON object containing input file information

Implements hummingbird::BankBase< std::unique_ptr< SourceBase > >.

Definition at line 7 of file source_bank.cc.


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