lbmpy.lattice.SetEquilibrium#
- class SetEquilibrium(lattice, method, density, velocity, *, name=None)#
Initialize a
Latticeto equilibrium state.SetEquilibriumis apystencils.flowflowgraph. To use it, either convert it directly to anOperator, or embed it as a subgraph into a larger operator.- Parameters:
lattice (
Lattice) – Lattice that should be initializedmethod (
AbstractLbMethod|Collide|LbmCollisionRule) – LB method object or collision ruledensity (
Expr|TensorField) – expression or scalar field that provides the densityvelocity (
tuple[Expr,...] |TensorField) – tuple of expressions or vector field that defined the velocityname (
str|None) – Optional, name of theSetEquilibriumgraph