FMI Library: part of JModelica.org
Data Structures | Macros | Typedefs | Functions
fmu2_model.h File Reference
#include <FMI2/fmi2Functions.h>
#include <fmu_dummy/fmu2_model_defines.h>

Go to the source code of this file.

Data Structures

struct  component_t
 

Macros

#define FMI2_Export   DllExport
 

Typedefs

typedef component_tcomponent_ptr_t
 

Functions

const charfmi_get_version ()
 
fmi2Status fmi_set_debug_logging (fmi2Component c, fmi2Boolean loggingOn)
 
fmi2Component fmi_instantiate (fmi2String instanceName, fmi2Type fmuType, fmi2String fmuGUID, fmi2String fmuLocation, const fmi2CallbackFunctions *functions, fmi2Boolean visible, fmi2Boolean loggingOn)
 
void fmi_free_instance (fmi2Component c)
 
fmi2Status fmi_setup_experiment (fmi2Component c, fmi2Boolean toleranceDefined, fmi2Real tolerance, fmi2Real startTime, fmi2Boolean stopTimeDefined, fmi2Real stopTime)
 
fmi2Status fmi_enter_initialization_mode (fmi2Component c)
 
fmi2Status fmi_exit_initialization_mode (fmi2Component c)
 
fmi2Status fmi_terminate (fmi2Component c)
 
fmi2Status fmi_reset (fmi2Component c)
 
fmi2Status fmi_get_real (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Real value[])
 
fmi2Status fmi_get_integer (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Integer value[])
 
fmi2Status fmi_get_boolean (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2Boolean value[])
 
fmi2Status fmi_get_string (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, fmi2String value[])
 
fmi2Status fmi_set_real (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Real value[])
 
fmi2Status fmi_set_integer (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Integer value[])
 
fmi2Status fmi_set_boolean (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2Boolean value[])
 
fmi2Status fmi_set_string (fmi2Component c, const fmi2ValueReference vr[], size_t nvr, const fmi2String value[])
 
const charfmi_get_model_types_platform ()
 
fmi2Status fmi_enter_event_mode (fmi2Component c)
 
fmi2Status fmi_new_discrete_states (fmi2Component c, fmi2EventInfo *eventInfo)
 
fmi2Status fmi_enter_continuous_time_mode (fmi2Component c)
 
fmi2Status fmi_set_time (fmi2Component c, fmi2Real fmitime)
 
fmi2Status fmi_set_continuous_states (fmi2Component c, const fmi2Real x[], size_t nx)
 
fmi2Status fmi_completed_integrator_step (fmi2Component c, fmi2Boolean noSetFMUStatePriorToCurrentPoint, fmi2Boolean *enterEventMode, fmi2Boolean *terminateSimulation)
 
fmi2Status fmi_get_derivatives (fmi2Component c, fmi2Real derivatives[], size_t nx)
 
fmi2Status fmi_get_event_indicators (fmi2Component c, fmi2Real eventIndicators[], size_t ni)
 
fmi2Status fmi_get_continuous_states (fmi2Component c, fmi2Real states[], size_t nx)
 
fmi2Status fmi_get_nominals_of_continuousstates (fmi2Component c, fmi2Real x_nominal[], size_t nx)
 

Macro Definition Documentation

#define FMI2_Export   DllExport

Definition at line 24 of file fmu2_model.h.

Typedef Documentation

Definition at line 71 of file fmu2_model.h.

Function Documentation

const char* fmi_get_version ( )

Definition at line 77 of file fmu1_model.c.

fmi2Status fmi_set_debug_logging ( fmi2Component  c,
fmi2Boolean  loggingOn 
)

Definition at line 83 of file fmu2_model.c.

fmi2Component fmi_instantiate ( fmi2String  instanceName,
fmi2Type  fmuType,
fmi2String  fmuGUID,
fmi2String  fmuLocation,
const fmi2CallbackFunctions *  functions,
fmi2Boolean  visible,
fmi2Boolean  loggingOn 
)

Definition at line 260 of file fmu2_model.c.

void fmi_free_instance ( fmi2Component  c)

Definition at line 312 of file fmu2_model.c.

fmi2Status fmi_setup_experiment ( fmi2Component  c,
fmi2Boolean  toleranceDefined,
fmi2Real  tolerance,
fmi2Real  startTime,
fmi2Boolean  stopTimeDefined,
fmi2Real  stopTime 
)

Definition at line 323 of file fmu2_model.c.

fmi2Status fmi_enter_initialization_mode ( fmi2Component  c)

Definition at line 344 of file fmu2_model.c.

fmi2Status fmi_exit_initialization_mode ( fmi2Component  c)

Definition at line 354 of file fmu2_model.c.

fmi2Status fmi_terminate ( fmi2Component  c)

Definition at line 483 of file fmu2_model.c.

fmi2Status fmi_reset ( fmi2Component  c)

Definition at line 499 of file fmu2_model.c.

fmi2Status fmi_get_real ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
fmi2Real  value[] 
)

Definition at line 94 of file fmu2_model.c.

fmi2Status fmi_get_integer ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
fmi2Integer  value[] 
)

Definition at line 118 of file fmu2_model.c.

fmi2Status fmi_get_boolean ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
fmi2Boolean  value[] 
)

Definition at line 132 of file fmu2_model.c.

fmi2Status fmi_get_string ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
fmi2String  value[] 
)

Definition at line 146 of file fmu2_model.c.

fmi2Status fmi_set_real ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
const fmi2Real  value[] 
)

Definition at line 160 of file fmu2_model.c.

fmi2Status fmi_set_integer ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
const fmi2Integer  value[] 
)

Definition at line 184 of file fmu2_model.c.

fmi2Status fmi_set_boolean ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
const fmi2Boolean  value[] 
)

Definition at line 198 of file fmu2_model.c.

fmi2Status fmi_set_string ( fmi2Component  c,
const fmi2ValueReference  vr[],
size_t  nvr,
const fmi2String  value[] 
)

Definition at line 212 of file fmu2_model.c.

const char* fmi_get_model_types_platform ( )

Definition at line 242 of file fmu1_model.c.

fmi2Status fmi_enter_event_mode ( fmi2Component  c)

Definition at line 359 of file fmu2_model.c.

fmi2Status fmi_new_discrete_states ( fmi2Component  c,
fmi2EventInfo *  eventInfo 
)

Definition at line 364 of file fmu2_model.c.

fmi2Status fmi_enter_continuous_time_mode ( fmi2Component  c)

Definition at line 377 of file fmu2_model.c.

fmi2Status fmi_set_time ( fmi2Component  c,
fmi2Real  fmitime 
)

Definition at line 382 of file fmu2_model.c.

fmi2Status fmi_set_continuous_states ( fmi2Component  c,
const fmi2Real  x[],
size_t  nx 
)

Definition at line 393 of file fmu2_model.c.

fmi2Status fmi_completed_integrator_step ( fmi2Component  c,
fmi2Boolean  noSetFMUStatePriorToCurrentPoint,
fmi2Boolean enterEventMode,
fmi2Boolean terminateSimulation 
)

Definition at line 407 of file fmu2_model.c.

fmi2Status fmi_get_derivatives ( fmi2Component  c,
fmi2Real  derivatives[],
size_t  nx 
)

Definition at line 420 of file fmu2_model.c.

fmi2Status fmi_get_event_indicators ( fmi2Component  c,
fmi2Real  eventIndicators[],
size_t  ni 
)

Definition at line 437 of file fmu2_model.c.

fmi2Status fmi_get_continuous_states ( fmi2Component  c,
fmi2Real  states[],
size_t  nx 
)

Definition at line 454 of file fmu2_model.c.

fmi2Status fmi_get_nominals_of_continuousstates ( fmi2Component  c,
fmi2Real  x_nominal[],
size_t  nx 
)

Definition at line 469 of file fmu2_model.c.