Basilisk CFD
Adaptive Cartesian mesh PDE framework
Loading...
Searching...
No Matches
check_eta.h File Reference

Go to the source code of this file.

Functions

void event_update_eta (void)
 Event: update_eta (i++)
 

Variables

scalar deta []
 

Function Documentation

◆ event_update_eta()

void event_update_eta ( void  )

Event: update_eta (i++)

Definition at line 23 of file check_eta.h.

References _i, deta, eta, foreach_layer, h, LINENO, t, TOLERANCE, x, y, and zb.

Variable Documentation

◆ deta

scalar deta[]

Consistency check on free-surface evolution

This is optional and only applies to the time-implicit layered solver.

This checks that the free-surface position \(\eta\) obtained from the solution of the implicit time-integration matches the free-surface position \(\eta_p\) obtained by integration of the corresponding (barotropic) fluxes i.e.

\[ \partial_t\eta_p + \sum_l \nabla\cdot(\mathbf{hu})_l = 0 \]

This should be true to within the tolerance of the implicit solver.

The difference is stored in the deta field.

Definition at line 20 of file check_eta.h.

Referenced by event_update_eta().