com1DFA.com1DFA.exportFields
- exportFields(cfg, timeStep, fields, dem, outDir, cuSimName, TSave='intermediate', resTypesForced=[])[source]
export result fields to Outputs directory according to result parameters and time step that can be specified in the configuration file option intermediate or final, if final also plotFields for report are exported if intermediate only resTypes are exported
- Parameters
cfg (dict) – configurations
timeStep (float) – acutal time step
fields (dict) – dictionary with resTypes fields
dem (dict) – dictionary with dem info
outDir (str) – outputs Directory
cuSimName (str) – name of current simulation
Tsave (str) – indicator if time step is initial, intermediate or final - to decide which resTypes shall be exported
resTypesForced (list) – list of resTypes that overwrite info from configuration regarding resTypes to be exported
- Return type
exported peak fields are saved in Outputs/com1DFA/peakFiles