The Examples function is required to compute a volume exchange coefficient for SYRTHES coupling.
The following code blocks show two examples of computation of a volume exchange coefficient.
The first example corresponds to a constant volume exchange coefficient:
The second example corresponds to a variable volume exchange coefficient defined as follows :
with S is the surface area where exchanges take place by unit of volume and
First, the values of the different fields that will be needed for the computation of the volume exchange coefficient are retrieved.
Then the coefficient can be computed and assigned to all cells.
Not that in this example, no test is done on the coupling id or Syrthes instance name. The corresponding arguments can be used to apply specific computations in cas of multiple couplings.
Also, although a test is done to check if the scalar behaves as a temperature regarding multiplication by Cp for more generality, the Syrthes volume coupling currently only handles the temperature variable.