FMUInfo - Maple Help

Online Help

All Products    Maple    MapleSim


FMUTester

  

FMUInfo

  

obtain general FMU information

 

Calling Sequence

Parameters

Returns

Options

Description

Examples

Compatibility

Calling Sequence

FMUInfo(fmu, options)

Parameters

fmu

-

string; FMU name with .fmu extension

Returns

Information about FMU in the format(s) specified by returntype.

Options

• 

returntype = list consisting of one or more of "string", "file", "record"

  

List of strings "string", "file", and/or "record" specifying the type of output to be returned. The default value is ["string"].

• 

outputdir = string

  

Specifies the path to the directory where the file will be written when returntype = "file". If no outputdir is specified, the file will be written in the current directory. The default value is an empty string.

• 

validateFMU = true or false

  

Specifies whether the FMU's model description XML syntax will be validated before obtaining any information. The default value is false.

Description

• 

The FMUInfo procedure obtains general information from the modelDescription.xml file contained in the FMU.

• 

The following sub-categories are shown:

– 

Model Info (FMI version, type, model name, description, platforms, generation tool, generation date)

– 

Default Experiment (default FMU simulation settings)

– 

Variables (inputs and outputs)

Examples

withFMUTester:

Get the Rectifier FMU information as a string (default)

fmunameFileTools:-JoinPathkerneloptsdatadir,FMUs,Rectifier.fmu:

FMUInfofmuname

Model Info FMI Version 2.0 FMI Type Co-Simulation Model Name Rectifier Description Model Rectifier Platforms win64 Continuous States 4 Event Indicators 6 Variables 63 Generation Tool MapleSim (1357016/1357197/1357197) Generation Date 2018-10-25T13:27:33Z Default Experiment Stop Time 0.1 Step Size 1e-07 Variables (input, output) Name Causality Start Value Unit Description outputs output 2.82842712474619020e+02 V Rectifier1.Capacitor1.v

(1)

Get the CoupledClutches FMU information as a record and as a string

fmunameFileTools:-JoinPathkerneloptsdatadir,FMUs,CoupledClutches.fmu:

CC,infostrFMUInfofmuname,returntype=record,string:

mdlnameCC:-Model_Info:-Model_Name

mdlnameCoupledClutchesME2

(2)

fmiversCC:-Model_Info:-FMI_Version

fmivers2.0

(3)

fmitypeCC:-Model_Info:-FMI_Type

fmitypeME

(4)

platforCC:-Model_Info:-Platforms

platforc-code,darwin64,linux64,win32,win64

(5)

t0CC:-Default_Experiment:-Start_Time

t00.

(6)

tfCC:-Default_Experiment:-Stop_Time

tf1.50000000000000

(7)

`~`printCC:-Variables:-Inputs:

RecordpackedName=inputs,Causality=input,Start_Value=0.00000000000000000e+00,Unit=,Description=RI1

(8)

`~`printCC:-Variables:-Outputs:

RecordpackedName=outputs[1],Causality=output,Start_Value=1.00000000000000000e+01,Unit=rad/s,Description=J1.w

RecordpackedName=outputs[2],Causality=output,Start_Value=0.00000000000000000e+00,Unit=rad/s,Description=J2.w

RecordpackedName=outputs[3],Causality=output,Start_Value=0.00000000000000000e+00,Unit=rad/s,Description=J3.w

RecordpackedName=outputs[4],Causality=output,Start_Value=0.00000000000000000e+00,Unit=rad/s,Description=J4.w

(9)

infostr

Model Info FMI Version 2.0 FMI Type Model Exchange Model Name CoupledClutchesME2 Description Model CoupledClutchesME2 Platforms c-code, darwin64, linux64, win32, win64 Continuous States 18 Event Indicators 25 Variables 178 Generation Tool MapleSim (1183828/1183758/1183758) Generation Date 2016-11-24T17:45:51Z Default Experiment Stop Time 1.5 Tolerance 0.0001 Variables (input, output) Name Causality Start Value Unit Description inputs input 0.00000000000000000e+00 RI1 outputs[1] output 1.00000000000000000e+01 rad/s J1.w outputs[2] output 0.00000000000000000e+00 rad/s J2.w outputs[3] output 0.00000000000000000e+00 rad/s J3.w outputs[4] output 0.00000000000000000e+00 rad/s J4.w

(10)

Compatibility

• 

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

• 

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

See Also

FMUTester

FMUTester[FetchFMU]

FMUTester[SimulateFMU]

FMUTester[ValidateResult]