FMI Library: part of JModelica.org
|
List of Model Exchange wrapper functions. Common functions are not listed. More...
Functions | |
FMILIB_EXPORT const char * | fmi1_import_get_model_types_platform (fmi1_import_t *fmu) |
Wrapper for the FMI function fmiGetModelTypesPlatform(...) More... | |
FMILIB_EXPORT jm_status_enu_t | fmi1_import_instantiate_model (fmi1_import_t *fmu, fmi1_string_t instanceName) |
Wrapper for the FMI function fmiInstantiateModel(...) More... | |
FMILIB_EXPORT void | fmi1_import_free_model_instance (fmi1_import_t *fmu) |
Wrapper for the FMI function fmiFreeModelInstance(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_set_time (fmi1_import_t *fmu, fmi1_real_t time) |
Wrapper for the FMI function fmiSetTime(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_set_continuous_states (fmi1_import_t *fmu, const fmi1_real_t x[], size_t nx) |
Wrapper for the FMI function fmiSetContinuousStates(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_completed_integrator_step (fmi1_import_t *fmu, fmi1_boolean_t *callEventUpdate) |
Wrapper for the FMI function fmiCompletedIntegratorStep(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_initialize (fmi1_import_t *fmu, fmi1_boolean_t toleranceControlled, fmi1_real_t relativeTolerance, fmi1_event_info_t *eventInfo) |
Wrapper for the FMI function fmiInitialize(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_get_derivatives (fmi1_import_t *fmu, fmi1_real_t derivatives[], size_t nx) |
Wrapper for the FMI function fmiGetDerivatives(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_get_event_indicators (fmi1_import_t *fmu, fmi1_real_t eventIndicators[], size_t ni) |
Wrapper for the FMI function fmiGetEventIndicators(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_eventUpdate (fmi1_import_t *fmu, fmi1_boolean_t intermediateResults, fmi1_event_info_t *eventInfo) |
Wrapper for the FMI function fmiEventUpdate(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_get_continuous_states (fmi1_import_t *fmu, fmi1_real_t states[], size_t nx) |
Wrapper for the FMI function fmiGetContinuousStates(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_get_nominal_continuous_states (fmi1_import_t *fmu, fmi1_real_t x_nominal[], size_t nx) |
Wrapper for the FMI function fmiGetNominalContinuousStates(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_get_state_value_references (fmi1_import_t *fmu, fmi1_value_reference_t vrx[], size_t nx) |
Wrapper for the FMI function fmiGetStateValueReferences(...) More... | |
FMILIB_EXPORT fmi1_status_t | fmi1_import_terminate (fmi1_import_t *fmu) |
Wrapper for the FMI function fmiTerminate(...) More... | |
List of Model Exchange wrapper functions. Common functions are not listed.
FMILIB_EXPORT const char* fmi1_import_get_model_types_platform | ( | fmi1_import_t * | fmu | ) |
Wrapper for the FMI function fmiGetModelTypesPlatform(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
FMILIB_EXPORT jm_status_enu_t fmi1_import_instantiate_model | ( | fmi1_import_t * | fmu, |
fmi1_string_t | instanceName | ||
) |
Wrapper for the FMI function fmiInstantiateModel(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
instanceName | The name of the instance. |
FMILIB_EXPORT void fmi1_import_free_model_instance | ( | fmi1_import_t * | fmu | ) |
Wrapper for the FMI function fmiFreeModelInstance(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
FMILIB_EXPORT fmi1_status_t fmi1_import_set_time | ( | fmi1_import_t * | fmu, |
fmi1_real_t | time | ||
) |
Wrapper for the FMI function fmiSetTime(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
time | Set the current time. |
FMILIB_EXPORT fmi1_status_t fmi1_import_set_continuous_states | ( | fmi1_import_t * | fmu, |
const fmi1_real_t | x[], | ||
size_t | nx | ||
) |
Wrapper for the FMI function fmiSetContinuousStates(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
x | Array of state values. |
nx | Number of states. |
FMILIB_EXPORT fmi1_status_t fmi1_import_completed_integrator_step | ( | fmi1_import_t * | fmu, |
fmi1_boolean_t * | callEventUpdate | ||
) |
Wrapper for the FMI function fmiCompletedIntegratorStep(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
callEventUpdate | (Output) Call fmiEventUpdate indicator. |
FMILIB_EXPORT fmi1_status_t fmi1_import_initialize | ( | fmi1_import_t * | fmu, |
fmi1_boolean_t | toleranceControlled, | ||
fmi1_real_t | relativeTolerance, | ||
fmi1_event_info_t * | eventInfo | ||
) |
Wrapper for the FMI function fmiInitialize(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
toleranceControlled | Enable or disable the use of relativeTolerance in the FMU. |
relativeTolerance | A relative tolerance used in the FMU. |
eventInfo | (Output) fmiEventInfo struct. |
FMILIB_EXPORT fmi1_status_t fmi1_import_get_derivatives | ( | fmi1_import_t * | fmu, |
fmi1_real_t | derivatives[], | ||
size_t | nx | ||
) |
Wrapper for the FMI function fmiGetDerivatives(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
derivatives | (Output) Array of the derivatives. |
nx | Number of derivatives. |
FMILIB_EXPORT fmi1_status_t fmi1_import_get_event_indicators | ( | fmi1_import_t * | fmu, |
fmi1_real_t | eventIndicators[], | ||
size_t | ni | ||
) |
Wrapper for the FMI function fmiGetEventIndicators(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
eventIndicators | (Output) The event indicators. |
ni | Number of event indicators. |
FMILIB_EXPORT fmi1_status_t fmi1_import_eventUpdate | ( | fmi1_import_t * | fmu, |
fmi1_boolean_t | intermediateResults, | ||
fmi1_event_info_t * | eventInfo | ||
) |
Wrapper for the FMI function fmiEventUpdate(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
intermediateResults | Indicate whether or not the fmiEventUpdate shall return after every internal event interation. |
eventInfo | (Output) An fmiEventInfo struct. |
FMILIB_EXPORT fmi1_status_t fmi1_import_get_continuous_states | ( | fmi1_import_t * | fmu, |
fmi1_real_t | states[], | ||
size_t | nx | ||
) |
Wrapper for the FMI function fmiGetContinuousStates(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
states | (Output) Array of state values. |
nx | Number of states. |
FMILIB_EXPORT fmi1_status_t fmi1_import_get_nominal_continuous_states | ( | fmi1_import_t * | fmu, |
fmi1_real_t | x_nominal[], | ||
size_t | nx | ||
) |
Wrapper for the FMI function fmiGetNominalContinuousStates(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
x_nominal | (Output) The nominal values. |
nx | Number of nominal values. |
FMILIB_EXPORT fmi1_status_t fmi1_import_get_state_value_references | ( | fmi1_import_t * | fmu, |
fmi1_value_reference_t | vrx[], | ||
size_t | nx | ||
) |
Wrapper for the FMI function fmiGetStateValueReferences(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |
vrx | (Output) The value-references of the states. |
nx | Number of value-references. |
FMILIB_EXPORT fmi1_status_t fmi1_import_terminate | ( | fmi1_import_t * | fmu | ) |
Wrapper for the FMI function fmiTerminate(...)
fmu | A model description object returned by fmi1_import_parse_xml() that has loaded the FMI functions, see fmi1_import_create_dllfmu(). |