conatus.expert.CFL¶
- class conatus.expert.CFL(solver, velocity, safety)[source]¶
Bases:
objectdt_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_iare the components of the velocity along the coordinate axes (lengths per time) anddx_ithe 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)