Simulation options
Sample simulation options can be found in:
- simulation_options-ode.json (for ODE systems)
- simulation_options-dae.json (for DAE systems)
Section Simulation
Option | Suboption | Description |
---|---|---|
StartTime | Simulation initial time (currently ignored) | |
TimeHorizon | Simulation final time. | |
ReportingInterval | The time interval for obtaining simulation results | |
OutputDirectory | Name or a full path to the directory where the results, stats and log messages are saved. The default is: results-[%d.%m.%Y-%H.%M.%S]. | |
Log | ||
Name |
One of:
|
|
Parameters |
"StdOut": no parameters "TextFile":
|
|
DataReporter | ||
Name |
One of:
|
|
Parameters |
Common parameters for "CSV" and "HDF5" data reporters:
"CSV" specific parameters:
|
Sample Log and DataReporter specifications:
"Log": {
"Name": "StdOut",
"Parameters": {
}
},
"DataReporter": {
"Name": "HDF5",
"Parameters": {
"fileNameResults": "results.hdf5",
"fileNameDerivatives": "derivatives.hdf5"
}
}
"Log": {
"Name": "TextFile",
"Parameters": {
"fileName": "results.log"
}
},
"DataReporter": {
"Name": "CSV",
"Parameters": {
"fileNameResults": "results.csv",
"fileNameDerivatives": "derivatives.csv",
"outputFormat": "fixed",
"delimiter": ";",
"precision": 15
}
}
Section Model
Option | Suboption | Description |
---|---|---|
ComputeStackEvaluator | ||
Library |
One of:
|
|
Name |
"OpenCL" only:
|
|
Parameters |
"Sequential": no parameters "OpenMP":
|
Sample Sequential evaluator specification:
"ComputeStackEvaluator" : {
"Library" : "Sequential",
"Name": "",
"Parameters": {
}
}
Sample OpenMP evaluator specification:
"ComputeStackEvaluator" : {
"Library" : "OpenMP",
"Name": "",
"Parameters": {
"numThreads" : 0
}
}
Sample single-device OpenCL evaluator specification:
"ComputeStackEvaluator" : {
"Library" : "OpenCL",
"Name": "Single-device",
"Parameters": {
"platformID" : 0,
"deviceID" : 0,
"buildProgramOptions" : ""
}
}
Sample multi-device OpenCL evaluator specification where
70% of equations are evaluated on device (0,0) and 30% on device (1,1):
"ComputeStackEvaluator" : {
"Library" : "OpenCL",
"Name": "Multi-device",
"Parameters": {
"Device_0": {
"platformID": 0,
"deviceID" : 0,
"taskPortion": 0.7
},
"Device_1": {
"platformID": 1,
"deviceID" : 1,
"taskPortion": 0.3
},
"buildProgramOptions" : ""
}
}
Section Solver
Option | Description |
---|---|
Library | "Sundials" |
Name |
One of:
|
PrintInfo | Print additional debug information to stdout. |
Parameters |
"Common parameters":
More info about solver parameters can be found in IDAS and CVodes user guides. |
Section LinearSolver
Option | Description |
---|---|
Library |
One of:
|
Name |
"Sundials" solvers (SPILS):
|
PrintInfo | Print additional debug information to stdout. |
Parameters |
SUNDIALS "gmres" specific:
More info about solver parameters can be found in IDAS, CVodes, Amesos and AztecOO user guides. |
Preconditioner | See below |
Sub-section Preconditioner:
Option | Description |
---|---|
Library |
One of:
|
Name |
"AztecOO": ignored (name specified using "AZ_precond" and "AZ_subdomain_solve" options) "Ifpack" supported preconditioners:
|
PrintInfo | Print additional debug information to stdout. |
Parameters |
"AztecOO" preconditioner parameters:
More info about parameters can be found in AztecOO, Ifpack and ML user guides. |
Sample Sundials gmres linear solver with Ifpack ILU preconditioner specification:
"LinearSolver": {
"Library": "Sundials",
"Name": "gmres",
"PrintInfo": false,
"Parameters": {
"kspace": 30,
"EpsLin": 0.05,
"JacTimesVecFn": "DifferenceQuotient",
"DQIncrementFactor": 1.0,
"MaxRestarts": 5,
"GSType": "MODIFIED_GS"
},
"Preconditioner" : {
"Library" : "Ifpack",
"Name": "ILU",
"PrintInfo": false,
"Parameters": {
"fact: level-of-fill": 3,
"fact: relax value": 0.0,
"fact: absolute threshold": 1e-5,
"fact: relative threshold": 1.0
}
}
}
Sample Sundials gmres linear solver with Ifpack ILUT preconditioner specification:
"LinearSolver": {
"Library": "Sundials",
"Name": "gmres",
"PrintInfo": false,
"Parameters": {
"kspace": 30,
"EpsLin": 0.05,
"JacTimesVecFn": "DifferenceQuotient",
"DQIncrementFactor": 1.0,
"MaxRestarts": 5,
"GSType": "MODIFIED_GS"
},
"Preconditioner" : {
"Library": "Ifpack",
"Name": "ILUT",
"PrintInfo": false,
"Parameters": {
"fact: ilut level-of-fill": 3.0,
"fact: drop tolerance": 1e-10,
"fact: relax value": 0.0,
"fact: absolute threshold": 1e-5,
"fact: relative threshold": 1.0
}
}
Sample Trilinos Amesos linear solver specification:
"LinearSolver": {
"Library": "Trilinos",
"Name": "Amesos_Klu",
"PrintInfo": false,
"Parameters": {}
}
Sample Trilinos AztecOO gmres linear solver with native AztecOO ILU preconditioner specification:
"LinearSolver": {
"Library": "Trilinos",
"Name": "AztecOO",
"PrintInfo": false,
"Parameters": {
"AZ_solver": "AZ_gmres",
"AZ_kspace": 30,
"AZ_scaling": "AZ_none",
"AZ_reorder": 1,
"AZ_conv": "AZ_r0",
"AZ_keep_info": 1,
"AZ_max_iter": 500,
"AZ_orthog": "AZ_modified",
"AZ_pre_calc": "AZ_calc",
"AZ_output": "AZ_warnings"
},
"Preconditioner": {
"Library": "AztecOO",
"Name": "",
"PrintInfo": false,
"Parameters": {
"AZ_precond": "AZ_dom_decomp",
"AZ_subdomain_solve": "AZ_ilu",
"AZ_graph_fill": 3,
"AZ_athresh": 1e-05,
"AZ_rthresh": 1.0
}
}
}
Sample Trilinos AztecOO gmres linear solver with Ifpack ILU preconditioner specification:
"LinearSolver": {
"Library": "Trilinos",
"Name": "AztecOO",
"PrintInfo": false,
"Parameters": {
"AZ_solver": "AZ_gmres",
"AZ_kspace": 30,
"AZ_scaling": "AZ_none",
"AZ_reorder": 1,
"AZ_conv": "AZ_r0",
"AZ_keep_info": 1,
"AZ_max_iter": 500,
"AZ_orthog": "AZ_modified",
"AZ_pre_calc": "AZ_calc",
"AZ_output": "AZ_none"
},
"Preconditioner" : {
"Library": "Ifpack",
"Name": "ILU",
"PrintInfo": false,
"Parameters": {
"fact: level-of-fill": 3,
"fact: relax value": 0.0,
"fact: absolute threshold": 1e-5,
"fact: relative threshold": 1.0
}
}
}
Sample Trilinos AztecOO gmres linear solver with Ifpack Amesos preconditioner specification:
"LinearSolver": {
"Library": "Trilinos",
"Name": "AztecOO",
"PrintInfo": false,
"Parameters": {
"AZ_solver": "AZ_gmres",
"AZ_kspace": 30,
"AZ_scaling": "AZ_none",
"AZ_reorder": 1,
"AZ_conv": "AZ_r0",
"AZ_keep_info": 1,
"AZ_max_iter": 500,
"AZ_orthog": "AZ_modified",
"AZ_pre_calc": "AZ_calc",
"AZ_output": "AZ_all"
},
"Preconditioner" : {
"Library": "Ifpack",
"Name": "Amesos",
"PrintInfo": false,
"Parameters": {
"amesos: solver type": "Amesos_Klu"
}
}
}