The native-cuda update introduced some major updates to the lettuce structure. Here, you find the main changes. Below, you find the steps to update your runfiles:
lt.Lattice
is deprecated.
The device
and dtype
fields moved to lt.Context
. The Stencil
object or class (either works) is passed to Flow.__init__
.
lt.Streaming
is deprecated.
Streaming is now always handled as defined in lt.StandardStreaming
.
lt.Stencil
is stored in a field oflt.Flow
andD
is now lower case.
So, the Dimensions can be accessed via flow.stencil.d
instead of flow.units.lattice.D
.
- Further changes:
lt.Collision
does not neetlattice
definition.reporters
was renamed toreporter
no_collision_mask
now includes the boundary's identifier (important for custom flows).flow.u_pu
directly returns velocity field in physical units as a property. Same counts forflow.p_pu
(pressure) andflow.rho_pu
(density).units
(alt.UnitConverter
) can be called from bothlt.Simulation
andlt.Flow
- Move device and dtype declarations into lt.Context and remove all lattice declarations.
- Move stencil declaration to lt.Flow and add context declaration.
- Remove lt.Streaming initialization and occurences.
- Rename reporters to reporter