<componentInstance> Element
Use the <componentInstance> element to define each subsystem
model in the coupled simulation.
The name attribute is an internal reference, for cross-referencing
purposes within the Co-Simulation Configuration
file. The <component> element references the component instance
to a component by its name.
Set the modelIdentifier attribute on each
<componentInstance> element equal to the job name or the
FMU file name (without its
extension). The job name must correspond to the job name the application registers
with the SMACseConnect function (see Establishing connection to and disconnecting from the SIMULIA Co-Simulation Services Director).
If the component instance uses the bottom-up implementation, certain basic assertions about the simulator behaviors can be modified:
- You can use the
<initialConditions>element to specify how the initial conditions exchange is performed by the subsystem models.By default, each subsystem model sends initial fields when the
SMACseInitialConditionStartfunction is called and receives initial conditions when theSMACseInitialConditionEndfunction is called.In some cases, a subsystem might require the initial condition from another subsystem to compute its initial conditions. In this case, you can reverse the send and receive order; set the
<sendBeforeReceive>element to false to have the client receive the initial conditions first.A declaration of false by both component instances would result in deadlock failure; such a declaration does not physically make sense and results in a consistency error.
- You can force a client to march in lockstep.
Specify the
<timeIncrementation>element, and set the<lockstep>element to true to force the client to march in lockstep. Otherwise, the component instance is allowed to subcycle.