Hi,
I’m using preCICE v2.3.0 and the OpenFOAM adapter v1.0.0 to couple buoyantSimpleFoam and laplacianFoam (OpenFOAM v2106). In the laplacianFoam case I use the runTimeControl function object to terminate the simulation if the change of the average temperature of the solid is below a threshold.
Now I have the following problem: If the runTimeControl function object detects that the change of the average temperature of the solid is below the defined threshold, I get the following output
---[preciceAdapter] The coupling timestep completed. Writing the updated results.
--> FOAM Warning :
From void adapterInfo(std::__cxx11::string, std::__cxx11::string)
in file Utilities.C at line 17
Warning in the preCICE adapter:
The solver exited before the coupling was complete.
---[precice] relative convergence measure: relative two-norm diff of data "Temperature" = 0.00e+00, limit = 1.00e-05, normalization = 5.09e+04, conv = true
---[precice] All converged
---[precice] Time window completed
---[precice] iteration: 1 of 30, time-window: 12, time: 11 of 2000, time-window-size: 1, max-timestep-length: 1, ongoing: yes, time-window-complete: yes, write-iteration-checkpoint
---[preciceAdapter] The coupling timestep completed. Writing the updated results.
End
---[precice] Implicitly finalizing in destructor
---[precice] Synchronize participants and close communication channels
and the laplacianFoam simulation ends and the last results of the last time step are written. This corresponds to my desired behavior. But the buoyantSimpleFoam simulation is still running and (I think) waiting for results from laplacianFoam, which it obviously won’t get.
What I want is that also buoyantSimpleFoam terminates and the last results of the last time step are written.
At the beginning of the log file the following is written:
---[preciceAdapter] Setting the solver's endTime to infinity to prevent early exits. Only preCICE will control the simulation's endTime. Any functionObject's end() method will be triggered by the adapter. You may disable this behavior in the adapter's configuration.
Is this the solution for my problem? If yes, how can I disable this behavior? I’ve seen that there was a switch preventEarlyExit_ in earlier versions of the OpenFOAM adapter but it doesn’t exists in v1.0.0.
Thank you!