Trouble to define a boundary condition: help please ! #3369
Unanswered
amnchacon
asked this question in
Firedrake support
Replies: 1 comment 11 replies
-
If you want to do an integral on the outer surface, you need to use ds, not dx. (Edit: |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone, I'm trying to implement this example in Firedrake:
I had already treated this problem with both boundary conditions as Dirichlet boundary conditions, with constant temperature values. Now, my problem is with the flux boundary condition. It suppose that flux boundary conditions are embedden within the variational formulation, but after testing numerical results, these are being inconsistent. My code is running without errors, but the results are not sucessfully. The way I'm trying the variational formulation here in Firedrike is right or wrong? can you help me please?
In my variational formulation via Firedrake I'm writing:
a = -K * grad(T)[0] * v * dx (The part associated to this natural boundary condition)
...
...
L = (...) + h * (T-Ta) * v * dx
The code is running but with strange results, what I should do for traducing correctly to firedrike this flux boundary condition?
Thanks for helping me...
Another thing: such boundary condition -k(dT/dr) = h(To - Ta) contains To, which is the temperature at r = ro, i.e., a temperature on the outside surface, which is a variable.
Besides this, If I would have a square mesh and if I need to define flux boundaries conditions, one with convection and another with a prescript flux value, how to wirte it correctly in the variational formulation via Firedrake?
I have not been able to move forward due to these issues...
My gratitude for responding...
Beta Was this translation helpful? Give feedback.
All reactions