-
Notifications
You must be signed in to change notification settings - Fork 471
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
Should d2udt2 be set to 0 when Dirichlet boundary condition is applied? #4181
Comments
May someone give some hint on this problem? I'm still confused about it. The different result is not observed when
|
I wrote another wave equation code based on the coupled first-order equations, like |
I have tried to address the issue in a small PR #4233. I added as step after solving for the acceleration where the acceleration is hardwired set to zero. I think, this should technically not have been necessary, as the solve should have resulted in zero accelerations on those places. But apparently round-off and/or the approximate nature of the linear solves create for excessive slip of the solution. |
I have checked the BC values and after zeroing the accelerations the solution values at the BC were of the order |
I have a little suggestion/question about
ex23
. When the dirichlet boundary conditions are applied,dudt
andd2udt2
should be 0. However when I run the wave euqation exampleex23
and output thed2udt2
vector inImplicitSolver
function,d2udt2
is not zero at the boundary DoFs. I setd2udt2
's boundary entries to 0, and the final result is slightly different to the original code (./ex23 -m ../../data/disc-nurbs.mesh -r 3 -o 4 -tf 5 --dirichlet
)Result from original code:
Result when boundary entris of
d2udt2
set to 0:I think the nonzero boundary DoFs in
$[M+\beta (\Delta t)^2K]\frac{d^2u(t+\Delta t)}{dt^2}=-Ku_{ImplicitSolve}$ ? But why would the solution on boundary entries be nonzero when $u_{ImplicitSolve}$ 's are 0 there?
d2udt2
comes from solving the linear systemPlease let me know if my choice of setting
d2udt2
's boundary DoFs 0 is correct.Thank
The text was updated successfully, but these errors were encountered: