How do I add Neumann conditions? #3796
-
Hello, I'm learning libmesh with examples which are showed on Web. I want to solve an possion with Neumann conditions,like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, substituting the Neumann boundary term into the weak formulation's boundary integral (after integration by parts) to get a forcing term, called "weak enforcement", is the standard way to impose a Neumann boundary. IIRC we do this implicitly in a couple examples (which have zero-flux Neumann conditions, so the term just disappears), but we don't talk about it much since, unlike "strong enforcement" of Dirichlet conditions, the details of weak enforcement depend closely on your PDE and your weak formulation. Actually, skimming through our examples ... it looks like we're weakly enforcing non-zero boundary fluxes in miscellaneous examples 3 and 9, reduced-basis example 7, systems-of-equations examples 4, 5, and 6 ... and yet not once did we put "Neumann" into a comment users could search for. Sorry about that! |
Beta Was this translation helpful? Give feedback.
Yes, substituting the Neumann boundary term into the weak formulation's boundary integral (after integration by parts) to get a forcing term, called "weak enforcement", is the standard way to impose a Neumann boundary. IIRC we do this implicitly in a couple examples (which have zero-flux Neumann conditions, so the term just disappears), but we don't talk about it much since, unlike "strong enforcement" of Dirichlet conditions, the details of weak enforcement depend closely on your PDE and your weak formulation.
Actually, skimming through our examples ... it looks like we're weakly enforcing non-zero boundary fluxes in miscellaneous examples 3 and 9, reduced-basis example 7, systems-of-equ…