Model of Computation

The model of computation defines the synchronization method and coupling algorithm associated with a composite actor.

This page discusses:

To define a computational model for a composite actor, use the <modelOfComputation> element within <compositeActor> element (see Defining the coupling algorithm). All computational models are time-based; therefore, specify the <continuesTime> element within the <modelOfComputation> element. Within the <continuesTime> element, define the negotiation method and coupling algorithm as discussed below.

Negotiation Method

The negotiation method defines how the next coupling step size is established. For more information, seeSynchronization. Set the <negotiationMethod> element to one of the methods defined in Table 1. For some negotiation methods you may have to define a negotiation actor using the <negotiationActor> element or provide a constant coupling step size using the <constantDt> element.

Table 1. Negotiation methods.
Method Description Requirement
MIN Computes the minimum of all actors preferred time increments. none
MAX Computes the maximum of all actors preferred time increments. none
ACTOR-DRIVEN One of the actors determines the coupling step size. Use the <negotiationActor> element to define the negotiation actor.
CONSTANTDT Sets the coupling step size to a user-specified constant value. Use the <constantDt> element to define the constant coupling step size.
CONSTANT-MULTIPLE An actor's coupling step size is an integral multiple of the constant coupling step size defined by the negotiation actor. Use the <negotiationActor> element to define the negotiation actor.

The following example illustrates how to specify the negotiation method:

<execution>

   <compositeActors>

      <compositeActor, name="twoCodeContinuousTime">
         <actors>
                <!-- list the subsystem models associated with the model of computation -->
         </actors>  
       
         <modelOfComputation>
            <continuousTime>

               <negotiationMethod>ACTOR-DRIVEN</negotiationMethod>
               <negotiationActor>cht_circuitboard_std</negotiationActor>

            </continuousTime>
         </modelOfComputation>

                      : 

       </compositeActor>
    </compositeActors> 
                 :
</execution>

Coupling Algorithm

The coupling algorithm defines the sequencing of the atomic agents, and any interface for implicit-iterative coupling scheme. For clarity, we divide this discussion into two parts:

  • coupling scheme, and
  • interface treatment for implicit iterative coupling scheme.

Coupling Scheme

The coupling scheme defines the sequencing of the atomic agents. Use the <algorithm> element to select one of the coupling algorithms defined in Table 2. For more information about coupling algorithms, see Coupling Algorithms.

Table 2. Coupling algorithms.
Algorithm Description Comments
JACOBI Executes the agents concurrently. Not applicable for implicit iterative coupling.
GAUSS-SEIDEL Executes the agents in a sequential manner defined by the staggering sequence, and exports fields at NotifyEnd.
GAUSS-SEIDEL-PREDICTOR Executes the agents in a sequential manner defined by the staggering sequence, and exports predictor fields at NotifyStart. Transfers predictor fields taking account the next coupling step size.
GANDCENHANCED Uses the enhanced stabilized subcycling method. Proprietary coupling algorithm for structure-to-structure and structure-to-mbd co-simulation.
SEQUENTIAL Uses sequential analysis method when coupling with a Results Provider.

By default, an explicit coupling sequencing is assumed. Each atomic actor exchanges solution fields when it reaches the coupling step target time, and then the simulation proceeds to the next coupling step.

When coupling implicit solvers, you can select an implicit-iterative coupling scheme by specifying the <iterativeCoupling> element. In this case, the atomic actors exchange and correct the solutions at the coupling step target time before proceeding to the next coupling step. Use the <exchangeLimit> element to provide an upper limit of additional exchanges. The upper bound ends the iterative coupling loop, whether or not the interface solution converges. Either client may end the coupling iteration prior based on its computations (see Notifying that the Client Completed an Implicit Coupling Iteration).

Example

The following example illustrates how to specify an implicit-iterative coupling algorithm:

<execution>

   <compositeActors>

      <compositeActor, name="twoCodeContinousTime">
         <actors>
                <!-- list the subsystem models associated with the model of computation -->
         </actors>  
       
         <modelOfComputation>
            <continuousTime>

               <negotiationMethod>MAX</negotiationMethod>

               <algorithm>GAUSS-SEIDEL</algorithm>
               <iterativeCoupling>
                  <exchangeLimit>30</exchangeLimit>
               </iterativeCoupling>

            </continuousTime>
         </modelOfComputation>

                      : 

       </compositeActor>
    </compositeActors> 
                 :
</execution>

Interface Treatment for Implicit-Iterative Coupling

The SIMULIA Co-Simulation Services provides advanced numerical methods for implicit-iterative coupling scheme, referred to as accelerators, as well as extrapolation and convergence checks. Accelerators can improve the convergence of a coupled solution and reduce the computational cost. Accelerators fall into two categories: relaxation methods and quasi-Newton methods (see Implicit-Iterative Coupling with Interface Treatment).

Use the <accelerator> element within the <iterativeCoupling> element to specify the advanced numerical methods.

With all accelerator methods you can specify an extrapolation method (see Extrapolation). Use the <extrapolationOrder> element to specify the extrapolation defined in Table 3.

Table 3. Extrapolation order.
Element Description
<extrapolationOrder> Extrapolation order.

Set to 0 to use the previous coupling step, set to 1 for linear extrapolation, and set to 2 for second-order extrapolation.

Relaxation Methods

Two relaxation methods are available, constant relaxation and Aitken relaxation.

To specify the constant relaxation method, use the <relaxation> element within the <accelerator>element, and define the parameters listed in Table 4.

Table 4. Settings for constant relaxation method.
Element Description Default
<extrapolationOrder> Extrapolation order.

Set to 0 to use the previous coupling step, set to 1 for linear extrapolation, and set to 2 for second-order extrapolation.

2
<relaxationFactor> Constant relaxation factor.

The value should be between 0.0 and 1.0.

0.5

The following example illustrates how to define the constant relaxation method:

<iterativeCoupling>
    <accelerator>
        <relaxation>
              <extrapolationOrder>2</extrapolationOrder>
              <relaxationFactor>0.5</relaxationFactor>
         </relaxation> 
         <!-- specify tolerances -->      
     </accelerator>
     <exchangeLimit>30</exchangeLimit>
</iterativeCoupling>

Use the <aitken> element to specify the Aitken relaxation method, and define the parameters listed in Table 5.

Table 5. Settings for Aitken relaxation method.
Element Description Default
<relaxationFactor> Initial relaxation factor.

The value should be between 0.0 and 1.0.

0.5
<relaxLowerLimit> Lower limit on computed relaxation factor. 0.0
<relaxUpperLimit> Upper limit on the computed relaxation factor. 1.0

The following example illustrates how to define the Aitken relaxation method:

<iterativeCoupling>
     <accelerator>
           <extrapolationOrder>2</extrapolationOrder>
           <aitkens>
              <extrapolationOrder>2</extrapolationOrder>
              <relaxationFactor>0.5</relaxationFactor>
              <relaxLowerLimit>0.1</relaxLowerLimit>
              <relaxUpperLimit>0.9</relaxUpperLimit>
           </aitkens>  
           <!-- specify tolerances -->         
     </accelerator>
</iterativeCoupling>

Quasi-Newton Methods

Two quasi-Newton methods are available: the Anderson and the Broyden methods.

To specify either quasi-Newton method, use the <quasiNewton> element. You can also modify the default extrapolation order and the initial relaxation factor.

To select the Anderson method, use the <method> and <anderson> elements within the <quasiNewton> element. Set the type attribute on the <anderson> element to define how the accelerator handles the data set:

  • Set type to all to retain all previous and current solutions.
  • Set type to reuse (default) to specify the number of previous solutions to retain in the data set.
  • Set type to filtered to use a QR filter.

The Anderson method parameters are listed in Table 6

Table 6. Settings for Anderson quasi-Newton method.
Element Description Default
<nbOfReusedTimeSteps> Number of reused time steps.

The value should be zero or any positive integer.

10
<nbOfReusedColumns> Number of reused solutions per time step. 100

The following example illustrates how to define the Anderson quasi-Newton method:

<iterativeCoupling>
     <accelerator>
         <quasiNewton>
             <extrapolationOrder>2</extrapolationOrder>
             <relaxationFactor>0.5</relaxationFactor>
             <method>
              <anderson type="REUSE">
                   <nbOfReusedTimeSteps>1</nbOfReusedTimeSteps>
                   <nbOfReusedColumns>100</nbOfReusedColumns>
               </anderson>
             </method>
             <!-- filtering method -->
         </quasiNewton>
     </accelerator>
</iterativeCoupling>

To select the Broyden method, specify the <method> and <broyden> elements within the <quasiNewton> element. The Broyden method parameters are listed in Table 7.

Table 7. Settings for Broyden quasi-Newton method.
Element Description Default
<sizeChunk> Sets the threshold number before updating the SVD. 10
<svdMaxRank> Sets the maximum SVD rank.

Set to 0 to keep all (full rank).

0

With either quasi-Newton method, you can apply a filter to orthogonalize the data set to avoid a poorly conditioned matrix. Use the <filtering> element to define the filter type and parameters listed in Table 8.

Table 8. Filter parameters.
Element Description Default
<epsFiltering> Filtering threshold for QR1 and QR2, and the maximum threshold for QRA.

The values should be between 0.0 and 1.0.

0.01
<epsInit> Initial filtering threshold for the QRA method.

The values should be between 0 and 1.0.

1.0 × 10-6

Use the type attribute on the <filtering> element to define the filtering method:

  • Set type to QR1 to perform a QU factorization when a vector is deleted.
  • Set type to QR2 to perform vector deletion during QU factorization (default).
  • Set type to QRA to perform vector deletion during QU where the criterion is adapted in order to loosen the filtering as much as possible.

The following example illustrates how to add filtering to the data set:

<iterativeCoupling>
     <accelerator>
         <quasiNewton>
               <extrapolationOrder>2</extrapolationOrder>
               <relaxationFactor>0.5</relaxationFactor>
               <method>
                   <!-- specify Broyden or Anderson method -->
               </method>
               <filtering type="QR2">
                   <epsFiltering>1.0e-2</epsFiltering>
               </filtering>
           </quasiNewton>
     </accelerator>
</iterativeCoupling>

Field Tolerances

You can use field tolerance to override the default field criteria (see Coupling Algorithms) . Use the <convergence> element within the <iterativeCoupling> element to specify field tolerances. The startTime attribute specifies the time when the tolerances are enforced. The default value is zero, signifying the start of the co-simulation event. You might consider delaying the enforcement if you are ramping up the fields at the start of the simulation. The minNumberOfIterations attribute imposes a minimum number of coupling iterations to perform, irrespective of field tolerance criteria.

The convergence criteria are defined for outgoing fields. Use the <convergenceParameters> element to identify the field and define the convergence criteria. For each field, use the <field> element to define the criteria, and define the attributes in Table 9.

Table 9. Attributes for the <field> element.
Attribute Description Default
componentInstance Component instance for the outgoing field.
name Outgoing field type name.
absConvEps Absolute criterion. 1.0 × 10-9
relConvEps Relative initial norm. 5.0 × 10-4
relStepConvEps Relative step norm. 5.0 × 10-3

The following example illustrates how to define convergence criteria:

<iterativeCoupling>
         <accelerator>
                :        
         </accelerator>
         <convergence startTime="0.0" minNumberOfIterations="2">
             <convergenceParameters>
                 <field componentInstance="SimulatorA" name="force" 
                                 absConvEps="1.0e-08" 
                                 relConvEps="5.0e-03" 
                                 relStepConvEps="5.0e-03">
                  </field>
                  <field componentInstance="SimulatorB" name="displacement"
                                 absConvEps="1.0e-08" 
                                 relConvEps="5.0e-03" 
                                 relStepConvEps="5.0e-03">
                   </field>
              </convergenceParameters>
         </convergence>
         <exchangeLimit>30</exchangeLimit>
     </iterativeCoupling>