pyrk.inp.sim_info module

class pyrk.inp.sim_info.SimInfo(timer=<timer.Timer object>, components={}, iso='u235', e='thermal', n_precursors=6, n_decay=11, n_fic=0, kappa=0.0, rho_ext=None, feedback=False, plotdir='images', infile=None, sim_id=None, db=None)[source]

Bases: object

This class holds information about a reactor kinetics simulation

add_th_component(th_component)[source]

Adds a thermal-hydralic component to this simulation. It should be fully initialized. A single simulation may have many thermal-hydralic components. They are held in a dictionary.

Parameters:th_component (THComponent) – the th_component to add to the system
generate_sim_id()[source]

generates sim id, unique to this simulation.

Return type:str
get_git_revision_hash()[source]
get_git_revision_short_hash()[source]
get_input_blob(filename)[source]
get_timestamp()[source]
init_ne()[source]

Initializes the neutronics object owned by the siminfo object

init_rho_ext(rho_ext)[source]

Initializes reactivity insertion object for the none case.

Parameters:rho_ext (a ReactivityInsertion object or None) – external reactivity
metadata()[source]

A recorder function for the metadata/sim_info table

n_components()[source]

The number of components in the simulation.

n_entries()[source]

The number of entries in the pde to be solved

record()[source]

A recorder function for the metadata/sim_timeseries table

TODO: reconsider the database structure.

register_recorders()[source]

Registers the function pointers that return database rows