Performing Remapping

Once you have modified your System Coupling setup to improve mapping results, you can rerun the mapping operation to remap Mechanical Server's modal shapes to CFD Server. You may perform remapping using either System Coupling's GUI or CLI.


Note:
  • If a participant's input file has been changed, you need to take corrective action to continue the co-simulation with the modified setup. For details, see Handling Participant Setup Changes.

  • If results from a previous run exist, the CFD Server participant will raise an error. To perform another mapping operation, you can either:

    • set the participant's OverwriteExistingFiles setting to True, or

    • delete, move, or rename the existing output files generated by CFD Server.


Perform remapping in the GUI

Right-click the Mapping branch and select Map.

Perform remapping in the CLI
  1. Save the data model state to a temporary variable. (This example uses a variable named savedState.)

    
    savedState = DatamodelRoot().GetState()
    
    
  2. Clear the data model state. This clears the state inside System Coupling to allow re-mapping to take place.

    
    ClearState()
    
    
  3. Restore the data model state from the variable.

    
    DatamodelRoot().SetState(State = savedState)
    
    
  4. Reissue the mapping operation.

    
    Solve()