Hi,
I am working on a 3D scalar problem (temperature) where I have a flux applied to a surface. The problem is non-linear because the flux is dependent on the differential of the scalar unknown. Specifically, the flux term is equal to something like (w is the trial function):
a \int w dT
When I was working on the 2D (axisymmetric) version of my problem I was able to properly treat the integral by saying
dT = \frac{\partial T}{\partial z}dz + \frac{\partial T}{\partial x} dx
and I term in the x direction is zero because the flux only existed on z axis and ds = dz along the side of the applied flux. However, if I apply this approach to my current situation, I'm stuck because the differential of surface area ds is dependent on all three directions. What is the best approach?
My code for the two 2D version was:
w = TestFunction(V)
L = cp_f * w * grad(T_n)[1] * ds(1)
T = Function(V)
solve(a == L, T, bc)