ShouldApply #28962
Replies: 2 comments 1 reply
-
Hello It should.
Why would it be 0 if the BC is disabled? 0 could be imposed with a DirichletBC but how do you know it is 0 if it's not imposed?
ComputeQpResidual is set by the DirichletBCBase to (u - value). What are you modifying it to? |
Beta Was this translation helpful? Give feedback.
-
Ok I think I got it. When using a DirichletBC with shouldapply and computeQpValue(), at the beginning of each timestep it is trying to set the surface to the value if the BC is active and then work towards to an inactive condition. If the value is similar to what would happen if there was no BC this works, but if not then it's a problem. |
Beta Was this translation helpful? Give feedback.
-
Does the ShouldApply() clause still work with DirichletBCs? It still works with PenaltyDirichletBCs. However, when using the new computeQpValue() method DirichletBCs seem to have an issue of trying to both set and not set the boundary condition when should apply is false, and it produces a displacement that is neither 0 (the value if the BC is disabled) or the intended value when the BC is active. If you use the older computeQpResidual() it has convergence issues that seem similar to the results from setting use_preset = false.
Beta Was this translation helpful? Give feedback.
All reactions