Open BenjaminRodenberg opened 5 years ago
Be aware that this bug does not matter, if we do not use subcycling!
We should first merge https://github.com/precice/fenics-adapter/pull/34, since this makes handling the solver state much easier.
This issue is still up-to-date.
should be transferred to something like
if precice.is_action_required(precice.action_write_iteration_checkpoint()): # write checkpoint
state = (u_n,v_n,a_n)
precice.store_checkpoint(state, t, n)
Same for precice.retreive_checkpoint
:
The commit from the branch mentioned above is heavily outdated, but might still be helpful: https://github.com/precice/tutorials/commit/b3b498562255b8a4fb60c785cce4c71a9bd36abc#diff-e897be07ec33cea9a79328933528b3996749c98b04f78d3dfe69515b489a8780R240-R243
This issue has been mentioned on preCICE Forum on Discourse. There might be relevant details there:
I performed some experiments with the perpendicular flap case and subcycling for my thesis. This generally works for the current state of the tutorials and the FEniCS adapter. There is one PR that we still need to close https://github.com/precice/fenics-adapter/pull/172. I think we can then also close this issue.
Since this issue has been lying around for quite a while, here is a quick update:
We can close this issue as soon as these PRs have been merged.
Only
u_n
is considered by the checkpointing. But we should also properly checkpointv_n
anda_n
. There is already a prototype implementation on this branch (don't merge this branch, it has a different purpose!)The most important part is
https://github.com/precice/tutorials/blob/b3b498562255b8a4fb60c785cce4c71a9bd36abc/FSI/cylinderFlap/OpenFOAM-FEniCS/Solid/cyl-flap.py#L238-L243