lbmpy.lattice.ExportMacroscopics#
- class ExportMacroscopics(lattice, method, density, velocity, *, name=None)#
Export macroscopic observables from a lattice.
ExportMacroscopicsis 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 from which observables are exportedmethod (
AbstractLbMethod|Collide|LbmCollisionRule) – LB method object or collision ruledensity (
TensorField) – scalar field to store the densityvelocity (
TensorField) – vector field to store the velocityname (
str|None) – Optional, name of theExportMacroscopicsgraph