Open StuvX opened 3 weeks ago
Hey, thanks for the bug report! I'll look into it soon. In the meantime, could you check whether this still occurs with the latest version 3.1.0?
pip install --upgrade phiflow
Now I receive the following error:
/usr/local/lib/python3.10/dist-packages/phiml/backend/torch/_torch_backend.py:800: UserWarning: Sparse CSR tensor support is in beta state. If you miss a functionality in the sparse tensor support, please submit a feature request to https://github.com/pytorch/pytorch/issues. (Triggered internally at ../aten/src/ATen/SparseCsrTensorImpl.cpp:53.) return torch.sparse_csr_tensor(row_pointers, column_indices, values, shape, device=values.device)
AssertionError Traceback (most recent call last)
in <cell line: 4>() 2 boundary = {'x-': wind, 'x+': ZERO_GRADIENT, 'y': 0, 'cyl': 0}#, 'cells': True} 3 velocity = Field(mesh, tensor(vec(x=0, y=0)), boundary) ----> 4 v_trj = math.iterate(implicit_time_step, batch(time=100), velocity, dt=0.001, range=trange) 4 frames
/usr/local/lib/python3.10/dist-packages/phi/field/_field_math.py in stack(fields, dim, dim_bounds) 950 return PointCloud(geometry, values, boundary) 951 elif fields[0].is_mesh: --> 952 assert all([f.geometry == fields[0].geometry for f in fields]), f"stacking fields with different geometries is not supported. Got {[f.geometry for f in fields]}" 953 values = math.stack([f.values for f in fields], dim) 954 return Field(fields[0].geometry, values, boundary)
AssertionError: stacking fields with different geometries is not supported. Got [Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566, vectorᶜ=x,y), Mesh(cellsⁱ=10566,
It runs on my machine with the latest version. Could you try
pip uninstall phiflow phiml
pip install git+https://github.com/tum-pbs/PhiFlow@develop
When I try to run FVM_Cylinder_GMsh.ipynb I get the following error: