-
Notifications
You must be signed in to change notification settings - Fork 99
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
Extraction of Neumann boundary #1008
Comments
I would try something along the lines of uh = solve(...)
n = get_normal_vector(Γ)
u_N = ∇(uh)⋅n which returns a |
My solution was to assemble the Neumann problem with: op =AffineFEOperator(a,l,U,V) and then get the Matrix with K = op.op.matrix
uh = solve(op)
u = uh.free_values Now i can extract the Neumann boundary was defined in the problem with: f_out = K * u if I select the entries corresponding to the boundary points I can get value that was put in out. The Problem however was the following: f = op.op.vector Many boundary value problems have the constraint that something sums up/integrates to zero. |
Yes, it's the |
Hello all,
My Problem is: I want to calculate both dirichlet-to-neumann maps and neumann-to-dirichlet maps.
However I fail to reconstruct the values of the neumann boundary from the solution.
If you guys know how the problem gets the neumann boundary in the first place, maybe you can give the hint on how to extract a neumann boundary properly.
Basically for defining Neumann boundary conditions I do something like this:
But there is no extract neumann boundary function.
And sofar all my experiments on extracting it have failed. My input differs from my output.
Like this:
I know how to calculate the gradient at a given point, but I don't know exactly how the "normal" vector for each boundary point is calculated.
The text was updated successfully, but these errors were encountered: