Skip to content

Commit 62d9304

Browse files
committed
Merge remote-tracking branch 'refs/remotes/lettucecfd/195-draft-a-new-release' into 226-feature-add-simple-first_examplypy
2 parents 4373e9a + fcb1f0f commit 62d9304

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

native_cuda_synopsis.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
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:
2+
3+
## Changes
4+
5+
1. `lt.Lattice` is deprecated.
6+
7+
The `device` and `dtype` fields moved to `lt.Context`. The `Stencil` object or class (either works) is passed to `Flow.__init__`.
8+
9+
2. `lt.Streaming` is deprecated.
10+
11+
Streaming is now always handled as defined in `lt.StandardStreaming`.
12+
13+
3. `lt.Stencil` is stored in a field of `lt.Flow` and `D` is now lower case.
14+
15+
So, the Dimensions can be accessed via `flow.stencil.d` instead of `flow.units.lattice.D`.
16+
17+
4. Further changes:
18+
- `lt.Collision` does not neet `lattice` definition.
19+
- `reporters` was renamed to `reporter`
20+
- `no_collision_mask` now includes the boundary's identifier (important for custom flows).
21+
- `flow.u_pu` directly returns velocity field in physical units as a property. Same counts for `flow.p_pu` (pressure) and `flow.rho_pu` (density).
22+
- `units` (a `lt.UnitConverter`) can be called from both `lt.Simulation` and `lt.Flow`
23+
24+
## Updating runfiles
25+
1. Move device and dtype declarations into lt.Context and remove all lattice declarations.
26+
2. Move stencil declaration to lt.Flow and add context declaration.
27+
3. Remove lt.Streaming initialization and occurences.
28+
4. Rename reporters to reporter

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Click>=6.0
2-
torch>=2.1
2+
torch>=2.4
33
numpy==1.26.4
44
matplotlib==3.9.0
55
pyevtk

0 commit comments

Comments
 (0)