lettucecfd / lettuce

Computational Fluid Dynamics based on PyTorch and the Lattice Boltzmann Method
MIT License
203 stars 39 forks source link

Problem in `Simulation.initialize_pressure`? #110

Open Olllom opened 2 years ago

Olllom commented 2 years ago

TGV2D with initialize_pressure seems to produce larger errors than without.

ctx = {"device": torch.device("cuda:0"), "dtype": torch.float64, "use_native": False}

lattice = lt.Lattice(lt.D2Q9, **ctx)
flow = lt.TaylorGreenVortex2D(
    resolution=32,
    reynolds_number=1000,
    mach_number=0.05,
    lattice=lattice
)
PhiSpel commented 1 month ago

@McBs did you ever deal with this again?