Skip to content

Fix checkpointing for FEniCS FSI tutorials #50

Open
@BenjaminRodenberg

Description

@BenjaminRodenberg

Only u_n is considered by the checkpointing. But we should also properly checkpoint v_n and a_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

solve(A, u_np1.vector(), b_forces)
a_np1 = project(update_acceleration(u_np1, u_n, v_n, a_n, ufl=False), V)
v_np1 = project(update_velocity(a_np1, u_n, v_n, a_n, ufl=False), V)
t, n, precice_timestep_complete, precice_dt, Forces_x, Forces_y = precice.advance(u_np1, (u_np1, v_np1, a_np1), (u_n, v_n, a_n), t, float(dt), n)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions