====== Model Loading - From Documenter to SAMM ====== ===== Model Family has Simulator AND Calibrator present ===== ==== Documenter ==== * open any informant and click OK * open any measure and click OK * run all in calibration mode * run all in simulation mode * go to SAMM menu, Loading Files, Framework * Save the diagram Documenter; open SAMM ==== SAMM ==== * Create Model Family, right click in Model Families windows and create * Set File Path * Double click model family * Right click, load * Add sim framework (note: model base name must be root node name from documenter), description: sim * Add cal framework * Go to Windows -> Informants, and right click, load * Main informants (e.g. ''informants/'') * Other informants such as subroutines (e.g. ''views/subroutines'') ==== Calibrator view recipe ==== * If a calibrator recipe does not yet exist you will need to start by creating a view to [[howtos:typical_initview#null_scenario_for_calibrator|make the null scenario]]. Or, if the framework 's input variables have changed since the previous nullScn view you will have to modify or recreate it. * Run the null scenario view. * Run the calibration recipe. * Evaluate history ins for your tracking history - this prepares all the calibrator inputs and data needed for the simulator to be run over historic time. * Right click on the tracking history scenario in the scenarios window and choose "Evaluate history inputs" * Evaluate history outputs for your tracking history - this runs the simulator frame work over historic time and produces the history scenario * Right click on the tracking history scenario in the scenarios window and choose "Evaluate history outputs" * Name your historic scenario, we usually just use the name "history" - this will show up in the simulation framework ==== Simulator view recipe ==== * Enter the simulator (''sim'') framework and pick in the relevant history. * In Documenter: //SAMM | View Scripts | Fixed Scenario// * More instructions [[howtos:typical_initview#fixed_scenario_for_simulator|here]].