flow.objectives.pressure_drop

flow.objectives.pressure_drop(rho, margin=1)

Mean pressure across the inlet plane minus across the outlet plane.

This is the fan’s share of the bargain: what it costs to push air through whatever the design has left of the duct. The planes are taken margin cells inside the ends so the inlet’s imposed equilibrium and the outlet’s copied plane do not enter the number.

Parameters

Name Type Description Default
rho jax.Array Density, (NX, NY, NZ). required
margin int How many cells in from each end to measure. 1

Returns

Name Type Description
jax.Array Scalar pressure drop in lattice units, positive for flow that
jax.Array resists.