zoomy_core.model.models.walls

zoomy_core.model.models.walls#

Model-derived wall boundary definitions: the free-slip wall as a reflection of the momentum vector about the face normal. Registered on the derivation Model and substituted per face by FromModel in the boundary layer.

Module Contents#

Functions#

free_slip_wall_rows

Return the ghost value q - 2 n (n.q) for every momentum component of a free-slip wall.

register_free_slip_wall

Register free_slip_wall_rows as boundary:<name> on the derivation model m; h and b stay unprescribed (extrapolated).

API#

zoomy_core.model.models.walls.free_slip_wall_rows(vectors)#

Return the ghost value q - 2 n (n.q) for every momentum component of a free-slip wall.

Args

  • vectors: iterable of momentum vectors, each a sequence of per-direction fields (one entry per mesh direction).

Returns

{state field: ghost value} in the canonical face-normal symbols.

zoomy_core.model.models.walls.register_free_slip_wall(m, vectors, *, name='wall')#

Register free_slip_wall_rows as boundary:<name> on the derivation model m; h and b stay unprescribed (extrapolated).