On 6/8/24 04:14, Léonhard YU wrote:
> I am working on impose constant pressure load on a plate's upper
> surface. The code is derived from step-18 and attached below. But I
> found that the diplacement is not right, and it varies when the number
> of face elements changes. I am thinking about something wrong with the
> loading but I do not have any idea. Thanks a lot if you can help me.
Leonhart:
the code looks not unreasonable to me (though I don't know what
get_strain() does). But as a general rule, when you're trying to debug
programs, it's very useful to be specific about what "the diplacement is
not right, and it varies when the number of face elements changes"
actually means. That's true when describing the issue to others, but
also to yourself. So:
* How exactly is it wrong?
* What is it you are expecting?
* What is it you are seeing?
* What is the difference?
* Do you know things that the solution should satisfy, such as that it
needs to be left-right symmetric because of the chosen forcing terms and
geometry?
* Does the computed solution satisfy these condition?
These are all questions that will lead you to the place where your
program is doing something wrong.
Best
W.