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.Latticeis deprecated.
The device and dtype fields moved to lt.Context. The Stencil object or class (either works) is passed to Flow.__init__.
lt.Streamingis deprecated.
Streaming is now always handled as defined in lt.StandardStreaming.
lt.Stencilis stored in a field oflt.FlowandDis now lower case.
So, the Dimensions can be accessed via flow.stencil.d instead of flow.units.lattice.D.
- Further changes:
lt.Collisiondoes not neetlatticedefinition.reporterswas renamed toreporterno_collision_masknow includes the boundary's identifier (important for custom flows).flow.u_pudirectly 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.Simulationandlt.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