Single Simulation Functions¶
variable_importer |
|
builtin_importer |
|
initial_importer |
|
output_importer |
-
lowEBMs.Packages.Variables.
variable_importer
(config, initialZMT=True, control=False, parallel=False, parallel_config=0, accuracy=0.001, accuracy_number=1000)[source]¶ Executes all relevant functions to import variables for a single simulation run. From the configuration dictionary, returned by
Configuration.importer
, the relevant information is extracted and the specific importer functions are executed in the following order:\[buliltin \_ importer \quad \rightarrow \quad initial \_ importer \quad \rightarrow \quad output \_ importer\]Note
When doing this manually, maintain the order!
Function-call arguments
Parameters: config (dict) – The configuration dictionary returned by Configuration.importer
Returns: No return
-
lowEBMs.Packages.Variables.
builtin_importer
(rk4input, control=False, parallel=False, parallel_config=0, accuracy=0.001, accuracy_number=1000)[source]¶ Adds the most important variables to the python-builtin functions which are globally accessible. This enables calling and writing variables globally and across different files.
Variables added to the builtin-functions are all arguments of the
[rk4input]
-section from the configuration dictionary, returned byConfiguration.importer
, and three additional ones.Important
Variables from the
[rk4input]
-section are added with their key given in the configuration.ini-file and can be called by the same one later.Here all added variables (
[rk4input]
-variables + additional ones):Function-call arguments
Parameters: rk4input (dict) – The [rk4input]
-section from the configuration dictionary returned byConfiguration.importer
Returns: No return
-
lowEBMs.Packages.Variables.
initial_importer
(initials, initialZMT=True, control=False, parallel=False)[source]¶ Calculates the initial conditions of the primary variables from the
initials
-section.The initial conditions are directly written to their entry in
Variable.Vars
.Function-call arguments
Parameters: initials (dict) – The [initials]
-section from the configuration dictionary returned byConfiguration.importer
Returns: No return