generate.dynamic
Dynamic data are dependent on state in a simple way, e.g. interpolatable x/y pairs data.
The dynamic section in the config.olm.json defines the different dynamic
variables as keys, e.g. “dancoff1” and “dancoff2” below. When the states are
expanded and each variable evaluated at each state, that final value is available
in the template file as dynamic.<KEY>, i.e. dynamic.dancoff1 and
dynamic.dancoff2 would be defined (and potentially different)
for each state as a result of the definition below.
"dynamic": {
"dancoff1": {
"_type": "scale.olm.generate.dynamic:scipy_interp",
"state_var": "coolant_density",
"data_pairs": [
[ 0.1, 0.4621 ],
[ 0.3, 0.3368 ],
[ 0.5, 0.2583 ],
[ 0.7, 0.2044 ],
[ 0.9, 0.1653 ]
],
"method": "linear"
},
"dancoff2": {
"_type": "scale.olm.generate.dynamic:scipy_interp",
"state_var": "coolant_density",
"data_pairs": [
[ 0.1, 0.2967 ],
[ 0.3, 0.2194 ],
[ 0.5, 0.1702 ],
[ 0.7, 0.1359 ],
[ 0.9, 0.1107 ]
],
"method": "linear"
}
}
The following sections show what would be within a single dynamic variable block, based on the value of the “_type” within the block.
scipy_interp
Specified with "_type": "scale.olm.generate.dynamic:scipy_interp" in config.olm.json.
Example input in config.olm.json/generate/dynamic
{
"_type": "scale.olm.generate.dynamic:scipy_interp",
"state_var": "coolant_density",
"data_pairs": [
[
0.3,
0.4
],
[
0.7,
0.5
],
[
1.1,
0.6
]
],
"method": "pchip"
}
Args passed to Python function: scale.olm.generate.dynamic.scipy_interp
{
"_type": "scale.olm.generate.dynamic:scipy_interp",
"state_var": "coolant_density",
"data_pairs": [
[
0.3,
0.4
],
[
0.7,
0.5
],
[
1.1,
0.6
]
],
"state": {
"coolant_density": 0.67
},
"method": "pchip"
}
Data available in template: dynamic
0.4925
See also: scale.olm.generate.dynamic.scipy_interp
type |
object |
||
properties |
|||
|
State Var |
||
type |
string |
||
|
Data Pairs |
||
type |
array |
||
items |
type |
array |
|
maxItems |
2 |
||
minItems |
2 |
||
|
default |
null |
|
allOf |
#/$defs/ScipyInterpMethod |
||
|
Olm Redirect Type |
||
const |
scale.olm.generate.dynamic:scipy_interp |
||
$defs |
|||
|
ScipyInterpMethod |
||
type |
string |
||
enum |
linear, pchip |
||