export_results#

MotorCAD.export_results(solution_type, file_path)#

Export results from a solution to a CSV file.

Parameters:
solution_typestr

Type of the solution. Options are 'EMagnetic' (E-Magnetic Solution), 'Lab' (Lab Operating Point Solution), 'SteadyState' (Steady State Thermal Solution), and 'Transient' (Transient Thermal Solution).

file_pathstr

Absolute path for the CSV file. The default is the Windows directory on the C: drive. The file path must include the name of the file, with a CSV extension. Use the r'filepath' syntax to force Python to ignore special characters.