Skip to content

[BUG] - Navier-stokes solution unstable after first timestep #82

Description

@bknight1

Describe the bug
The numerical solution for the Navier-Stokes solver is unstable after the first solve.

To debug, I created a Stokes solver which has been extended to include the NS terms. After debugging, I believe the error is due to the SemiLagrangian history manager for DuDt, as when switching to the Eulerian history manager the solution is stable. I believe the flux term may also need to be switched to Eulerian, although this hasn't been tested as in my current implementation I re-construct the flux term from the velocity history. Interestingly, the bug only appears at lower cell sizes (<0.1).

There is also an error from the Eulerian history manager during the pre-solve update, but doesn't seem to be altering the numerical solution:
Callback error in <function _BaseMeshVariable._create_canonical_data_array.<locals>.canonical_data_callback at 0x32a94eac0>: cannot reshape array of size 1969 into shape (2)
Screenshots
SL after first timestep
Image
Eulerian after first timestep
Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions