OMSimulatorLib
The OMSimulator project is a FMI-based co-simulation environment that supports ordinary (i.e., non-delayed) and TLM connections.
Classes | Typedefs | Enumerations
Types.h File Reference
#include <stdbool.h>
Include dependency graph for Types.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  oms_fault_type_t
 
struct  ssd_connector_geometry_t
 5.2.1.1 ssd:ConnectorGeometry More...
 
struct  ssd_element_geometry_t
 5.2.2 ssd:ElementGeometry More...
 
struct  ssd_connection_geometry_t
 5.3.2.1 ssd:ConnectionGeometry More...
 
struct  ssd_system_geometry_t
 5.3.4 ssd:SystemGeometry More...
 
struct  ssd_simulation_information_t
 5.3.6 ssd:SimulationInformation More...
 
struct  oms_tlm_connection_parameters_t
 Parameters for TLM connection. More...
 
struct  oms_connection_t
 Connection between two connectors. More...
 
struct  oms_connector_t
 Signal: input, output, and parameter. More...
 
struct  oms_busconnector_t
 Bus connector. More...
 
struct  oms_tlmbusconnector_t
 TLM Bus connector. More...
 
struct  _oms_element_t
 Element (aka ssd:Component) More...
 
struct  oms_fmu_info_t
 FMU specific attributes. More...
 
struct  oms_external_tlm_model_info_t
 External model specific attributes. More...
 

Typedefs

typedef struct _oms_element_t oms_element_t
 Element (aka ssd:Component) More...
 

Enumerations

enum  oms_status_enu_t {
  oms_status_ok, oms_status_warning, oms_status_discard, oms_status_error,
  oms_status_fatal, oms_status_pending
}
 
enum  oms_modelState_enu_t {
  oms_modelState_virgin = 1<<0, oms_modelState_enterInstantiation = 1<<1, oms_modelState_instantiated = 1<<2, oms_modelState_initialization = 1<<3,
  oms_modelState_simulation = 1<<4, oms_modelState_error = 1<<5
}
 
enum  oms_causality_enu_t {
  oms_causality_input, oms_causality_output, oms_causality_parameter, oms_causality_calculatedParameter,
  oms_causality_bidir, oms_causality_undefined
}
 
enum  oms_tlm_interpolation_t { oms_tlm_no_interpolation, oms_tlm_coarse_grained, oms_tlm_fine_grained }
 
enum  oms_fault_type_enu_t { oms_fault_type_bias, oms_fault_type_gain, oms_fault_type_const }
 
enum  oms_tlm_domain_t {
  oms_tlm_domain_input, oms_tlm_domain_output, oms_tlm_domain_mechanical, oms_tlm_domain_rotational,
  oms_tlm_domain_hydraulic, oms_tlm_domain_electric
}
 
enum  oms_solver_enu_t {
  oms_solver_none, oms_solver_sc_min, oms_solver_sc_explicit_euler, oms_solver_sc_cvode,
  oms_solver_sc_max, oms_solver_wc_min, oms_solver_wc_ma, oms_solver_wc_mav,
  oms_solver_wc_assc, oms_solver_wc_mav2, oms_solver_wc_max
}
 
enum  oms_alg_solver_enu_t { oms_alg_solver_none, oms_alg_solver_fixedpoint, oms_alg_solver_kinsol }
 
enum  oms_element_enu_t { oms_element_system, oms_element_component }
 
enum  oms_system_enu_t { oms_system_none, oms_system_tlm, oms_system_wc, oms_system_sc }
 
enum  oms_component_enu_t { oms_component_none, oms_component_fmu, oms_component_table, oms_component_external }
 
enum  oms_signal_type_enu_t {
  oms_signal_type_real, oms_signal_type_integer, oms_signal_type_boolean, oms_signal_type_string,
  oms_signal_type_enum, oms_signal_type_bus
}
 
enum  oms_connection_type_enu_t { oms_connection_single, oms_connection_bus, oms_connection_tlm }
 Connection type. More...
 
enum  oms_message_type_enu_t {
  oms_message_info, oms_message_warning, oms_message_error, oms_message_debug,
  oms_message_trace
}
 Message types used by the logging mechanism. More...
 
enum  oms_fmi_kind_enu_t { oms_fmi_kind_unknown = 0, oms_fmi_kind_me = 1, oms_fmi_kind_cs = 2, oms_fmi_kind_me_and_cs = 3 }
 

Typedef Documentation

◆ oms_element_t

typedef struct _oms_element_t oms_element_t

Element (aka ssd:Component)

Enumeration Type Documentation

◆ oms_alg_solver_enu_t

Enumerator
oms_alg_solver_none 
oms_alg_solver_fixedpoint 

Fixed-point-iteration (default)

oms_alg_solver_kinsol 

Kinsol solver.

◆ oms_causality_enu_t

Enumerator
oms_causality_input 

input

oms_causality_output 

output

oms_causality_parameter 

parameter

oms_causality_calculatedParameter 

calculated parameter

oms_causality_bidir 

bidirecitonal

oms_causality_undefined 

◆ oms_component_enu_t

Enumerator
oms_component_none 
oms_component_fmu 

FMU.

oms_component_table 

lookup table

oms_component_external 

external model

◆ oms_connection_type_enu_t

Connection type.

Enumerator
oms_connection_single 

FMI conncection (directed & undelayed signal connection)

oms_connection_bus 

Bus connection.

oms_connection_tlm 

◆ oms_element_enu_t

Enumerator
oms_element_system 
oms_element_component 

◆ oms_fault_type_enu_t

Enumerator
oms_fault_type_bias 

y = y.$original + faultValue

oms_fault_type_gain 

y = y.$original * faultValue

oms_fault_type_const 

y = faultValue

◆ oms_fmi_kind_enu_t

Enumerator
oms_fmi_kind_unknown 
oms_fmi_kind_me 

FMI for Model Exchange.

oms_fmi_kind_cs 

FMI for Co-Simulation.

oms_fmi_kind_me_and_cs 

defined to be equal to (oms_fmi_kind_me|oms_fmi_kind_cs)

◆ oms_message_type_enu_t

Message types used by the logging mechanism.

Enumerator
oms_message_info 

Informative message.

oms_message_warning 

Warning; Non-critical issues.

oms_message_error 

Error; Potentially critical issues.

oms_message_debug 

Debug message. (only in debug configuration)

oms_message_trace 

Trace message for detailed debug logging. (only in debug configuration)

◆ oms_modelState_enu_t

Enumerator
oms_modelState_virgin 
oms_modelState_enterInstantiation 
oms_modelState_instantiated 
oms_modelState_initialization 
oms_modelState_simulation 
oms_modelState_error 

◆ oms_signal_type_enu_t

Enumerator
oms_signal_type_real 
oms_signal_type_integer 
oms_signal_type_boolean 
oms_signal_type_string 
oms_signal_type_enum 
oms_signal_type_bus 

◆ oms_solver_enu_t

Enumerator
oms_solver_none 
oms_solver_sc_min 
oms_solver_sc_explicit_euler 
oms_solver_sc_cvode 

default

oms_solver_sc_max 
oms_solver_wc_min 
oms_solver_wc_ma 

Fixed stepsize (default)

oms_solver_wc_mav 

Adaptive stepsize.

oms_solver_wc_assc 

Adaptive stepsize by .

oms_solver_wc_mav2 

Adaptive stepsize (double-step)

oms_solver_wc_max 

◆ oms_status_enu_t

API status codes

Enumerator
oms_status_ok 
oms_status_warning 
oms_status_discard 
oms_status_error 
oms_status_fatal 
oms_status_pending 

◆ oms_system_enu_t

Enumerator
oms_system_none 
oms_system_tlm 

TLM System.

oms_system_wc 

Weakly Coupled System.

oms_system_sc 

Strongly Coupled System.

◆ oms_tlm_domain_t

Enumerator
oms_tlm_domain_input 
oms_tlm_domain_output 
oms_tlm_domain_mechanical 
oms_tlm_domain_rotational 
oms_tlm_domain_hydraulic 
oms_tlm_domain_electric 

◆ oms_tlm_interpolation_t

Enumerator
oms_tlm_no_interpolation 
oms_tlm_coarse_grained 
oms_tlm_fine_grained