FMUTester
FetchFMU
fetch an FMU from the GitHub TestFMUs repository
Calling Sequence
Parameters
Returns
Options
Description
Examples
Compatibility
FetchFMU(model_name, tool_name, tool_version, fmi_version, fmi_type,options)
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")
A list with the full path(s) of the successfully downloaded file(s).
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.
The FetchFMU procedure downloads an FMU from the Test FMUs GitHub repository.
with⁡FMUTester:
Download the MapleSim 2018 FMI 2.0 CS Rectifier FMU for win64
FetchFMU⁡Rectifier,MapleSim,2018,2.0,CS,platform=win64:
Download the MapleSim 2016.2 FMI 2.0 ME CoupledClutches FMU for linux64. Include available support files.
FetchFMU⁡CoupledClutches,MapleSim,2016.2,2.0,ME,platform=linux64:
The FMUTester[FetchFMU] command was introduced in Maple 2019.
For more information on Maple 2019 changes, see Updates in Maple 2019.
See Also
FMUTester[FMUInfo]
FMUTester[SimulateFMU]
FMUTester[ValidateResult]
Download Help Document