FetchFMU - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


FMUTester

  

FetchFMU

  

fetch an FMU from the GitHub TestFMUs repository

 

Calling Sequence

Parameters

Returns

Options

Description

Examples

Compatibility

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

withFMUTester:

Download the MapleSim 2018 FMI 2.0 CS Rectifier FMU for win64

FetchFMURectifier,MapleSim,2018,2.0,CS,platform=win64:

Download the MapleSim 2016.2 FMI 2.0 ME CoupledClutches FMU for linux64. Include available support files.

FetchFMUCoupledClutches,MapleSim,2016.2,2.0,ME,platform=linux64:

Compatibility

• 

The FMUTester[FetchFMU] command was introduced in Maple 2019.

• 

For more information on Maple 2019 changes, see Updates in Maple 2019.

See Also

FMUTester

FMUTester[FMUInfo]

FMUTester[SimulateFMU]

FMUTester[ValidateResult]