flow.solver.solve
flow.solver.solve(chi, config, inlet_velocity=None, cell_volume=1.0)
Converge the penalised flow and read off both objectives.
Parameters
| chi |
jax.Array |
Solid fraction, (NX, NY, NZ), matching config.shape. |
required |
| config |
FlowConfig |
The flow configuration. |
required |
| inlet_velocity |
Any |
(3,) inlet velocity; None uses config.inlet_speed along +Y. |
None |
| cell_volume |
float |
World volume of one cell, for the heat-transfer integral. |
1.0 |
Returns
| The |
FlowResult |
class:FlowResult. |
Raises
|
ValueError |
If chi does not match config.shape. |