-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TS for Stokes #19
Comments
Hi! It's been a while since I ran a Stokes solver myself. I will take a look at this over the weekend. |
Hi, thanks, actually there is a silly typo in the code above: The last issue which remains is a time dependent
doesn't seem to work.... |
Nice that you got it working! One way to get time-dependent BC is to include the condition in the weak form using Nitsche's method. Daniel Shapero has a post about this topic with example Firedrake code: https://shapero.xyz/posts/nitsches-method-nonlinear/ It seems that currently firedrake-ts/firedrake_ts/ts_solver.py Line 101 in 1186966
I think it should be possible to fetch the current time from PETSc TS (https://petsc.org/release/manualpages/TS/TSGetTime/), update the self.time constant with the fetched value, and do this right before the application of BCs here:firedrake-ts/firedrake_ts/ts_solver.py Line 341 in 1186966
Would you try that? |
Hi, I am trying to use the
DAEProblem/DAESolver
for the mixed Stokes problem with Taylor-Hood discretization.Setup is a simple Poiseuille flow with parabolic inflow (one has analytic solution, which is included in the FE space).
However, the DAESolver does not seem to work. Even if I set the analytic solution as the initial data, the initial SNES residuum is large.
Am I doing something wrong?
The output of the script:
The script:
The text was updated successfully, but these errors were encountered: