functiondiffSimulationResults

Compares simulation results.

Information

Takes two result files and compares them. By default, all selected variables that are not equal in the two files are output to diffPrefix.varName.csv; an empty diffPrefix writes no files.

The output is the names of the variables for which files were generated.

Inputs

TypeNameDefaultDescription
StringactualFile
StringexpectedFile
StringdiffPrefix
RealrelTol1e-3y tolerance
RealrelTolDiffMinMax1e-4y tolerance based on the difference between the maximum and minimum of the signal
RealrangeDelta0.002x tolerance
Stringvarsfill("", 0)
BooleankeepEqualResultsfalse

Outputs

TypeNameDefaultDescription
Booleansuccess
StringfailVars