conatus.expert.CFL

class conatus.expert.CFL(solver, velocity, safety)[source]

Bases: object

dt_cfl = safety / max_x sum_i |u_i(x)| / dx_i(x) on the collocation grid.

Geometric contract (review finding 65): Cartesian coordinates only. u_i are the components of the velocity along the coordinate axes (lengths per time) and dx_i the distance between neighbouring collocation nodes of axis i (L/N on a periodic axis, the node spacing on the others), both in the same length unit. On a curvilinear geometry (disk, annulus, pipe, sphere, ball, shell) a coordinate is an angle and the physical spacing is r dphi or r sin(theta) dphi: not implemented, refused rather than returned in mixed units.

Parameters:
  • solver (IVPSolver)

  • velocity (str)

  • safety (float)

compute()[source]

The CFL step of the current state (inf for a fluid at rest).

Return type:

float

explain()[source]

What the indicator is (and is not).

Return type:

str