{'fraction_non_alphanumeric': 0.024274406332453827, 'fraction_numerical': 0.0, 'mean_word_length': 5.723404255319149, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Implicit Co-Simulation and Solver-Coupling: Efficient Calculation of Interface-Jacobian and Coupling Sensitivities/Gradients


 We consider implicit co-simulation and solver-coupling methods, where different subsystems are coupled in time domain in a weak sense. Within such weak coupling approaches, a macro-time grid is introduced. Between the macro-time points, the subsystems are integrated independently. The subsystems only exchange information at the macro-time points. To describe the connection between the subsystems, coupling variables have to be defined. For many implicit co-simulation and solver-coupling approaches an Interface-Jacobian is required. The Interface-Jacobian describes, how certain subsystem state variables at the interface depend on the coupling variables. Concretely, the Interface-Jacobian contains partial derivatives of the state variables of the coupling bodies with respect to the coupling variables. Usually, these partial derivatives are calculated numerically by means of a finite difference approach. A calculation of the coupling gradients based on finite differences may entail problems with respect to the proper choice of the perturbation parameters and may therefore cause problems due to ill-conditioning. A second drawback is that additional subsystem integrations with perturbed coupling variables have to be carried out. In this manuscript, analytical approximation formulas for the Interface-Jacobian are derived, which may be used alternatively to numerically calculated gradients based on finite differences. Applying these approximation formulas, numerical problems with ill-conditioning can be circumvented. Moreover, efficiency of the implementation may be increased, since parallel simulations with perturbed coupling variables can be omitted. The derived approximation formulas converge to the exact gradients for small macro-step sizes.