feat(scenario): scenario runner, extensions and working copy
scenario.py runs all five simulators of the core from a JSON scenario file, with sweeps, and reproduces 20 of the note's data files (14 byte for byte, 6 column-wise). Extensions live outside the core and must reproduce it exactly in a limit case; paadrag_tidsserie is the worked example. arbeidskopi.py gives the user a copy of the model they can change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
parent
464ad38b49
commit
03151cfb3b
36 changed files with 3580 additions and 5 deletions
28
eksempler/scenarioer/notatet/vippe_tak.json
Normal file
28
eksempler/scenarioer/notatet/vippe_tak.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"navn": "vippe_tak",
|
||||
"beskrivelse": "Gjenskaper kolonnene p3cap og p6cap i data/vippe.dat: som vippe.json, men med tak på innsatsen (Tmax = 1,5) og politimetning (K_sat = 1,5).",
|
||||
"modell": "simulate_soc",
|
||||
"parametere": {
|
||||
"P": {
|
||||
"Tmax": 1.5,
|
||||
"ksat": 1.5
|
||||
}
|
||||
},
|
||||
"sjokk": {
|
||||
"faktor": 1.6,
|
||||
"fra": 12,
|
||||
"til": 36
|
||||
},
|
||||
"styring": {
|
||||
"regulator": "P",
|
||||
"reaktivitet": 3
|
||||
},
|
||||
"sveip": {
|
||||
"parameter": "styring.forsinkelse",
|
||||
"verdier": [3, 6]
|
||||
},
|
||||
"utdata": {
|
||||
"format": "notat",
|
||||
"kolonner": ["t", "K"]
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue