BattMo Input
BattMo uses a simple object dictionary structure as unique input for a whole simulation. The structure is easily editable programmatically in matlab. As a file, it is written using the json format provides a basic but yet extremly flexible way to provide a dictionary-like data.
As seen in Your First Example, you can simply provide the path of your input data using the
command parseBattmoJson
jsonstruct = parseBattmoJson('Examples/JsonDataFiles/sample_input.json')
Then, you can modify this structure as you want within Matlab before sending it to the simulator
output = runBatteryJson(jsonstruct)
We use json schema to describe the expected keys or field names in the input, see JSON input specification. All the schemas are collected under the directory JsonSchemas. However, the easiest way to discover the available input parameters is probably to look at examples
In My first Json input file, we guide you through some selected examples. In List of Json File Examples, we provide links to json datasets available in your BattMo installationa and corresponding to different components in the simulation (material properties, geometry, controls …).
Combining different inputs is a standard way to create you own input, for the model you are targetting, and is is easily achieved using the function mergeJsonStructs, see Merging Parameters.