FetchFMU - Maple Help

FMUTester

 FetchFMU
 fetch an FMU from the GitHub TestFMUs repository

 Calling Sequence FetchFMU(model_name, tool_name, tool_version, fmi_version, fmi_type,options)

Parameters

 model_name - string; name of the FMU model tool_name - string; name of the exporting tool tool_version - string; version of the exporting tool fmi_version - string; FMI version ("1.0" or "2.0") fmi_type - string; FMI type ("CoSimulation" or "ModelExchange")

 Returns A list with the full path(s) of the successfully downloaded file(s).

Options

 • outputdir = string
 Specifies the path to the directory where the file will be written. If no outputdir is specified, the file will be written in the current directory. The default value is an empty string.
 • platform = one of "win32", "win64", "linux32", "linux64", "darwin64", "c-code" or NULL
 Specifies the FMU platform to be fetched from the GitHub TestFMUs repository. If platform = NULL, the current platform is automatically detected and the corresponding FMU is fetched. The default value is NULL.
 • addsupportfiles = true or false
 Specifies if the FMU's support files will be downloaded along with the FMU. An FMU's support files include:
 – the input file, e.g., "CoupledClutches_in.csv"
 – the reference file, e.g., "CoupledClutches_ref.csv"
 – the simulation settings file, e.g., "CoupledClutches_ref.opt"
 The default value is false.

Description

 • The FetchFMU procedure downloads an FMU from the Test FMUs GitHub repository.

Examples

 > $\mathrm{with}\left(\mathrm{FMUTester}\right):$

 > $\mathrm{FetchFMU}\left("Rectifier","MapleSim","2018","2.0","CS",'\mathrm{platform}'="win64"\right):$
 > $\mathrm{FetchFMU}\left("CoupledClutches","MapleSim","2016.2","2.0","ME",'\mathrm{platform}'="linux64"\right):$