I need to find the temperature distribution of a square plate using the Laplace equation by using FDM:
$$ \frac{d^2T}{dx^2} + \frac{d^2T}{dy^2} = 0$$
But there is a heat flux entering from the top boundary $q = 10^5 W/m^2$. How do I incorporate this heat flux into the problem? Should I:
Add it as a boundary condition by considering area $A=1$ and make the top boundary $10^5$? I saw something of this sort in an FVM textbook but dimensionally, it doesn't make sense to me.
Consider the 1-D heat flux equation:
$$ q = -k \frac{dT}{dy} $$
and discretize it as $$\frac{T_{i} - T_{i-1}}{dy} = -q/k$$
and incorporate this into every x-iteration?
This method makes sense to me but when I tried it, the contour plot showed the temperature in negatives as so:
If I am adding a heat flux $10^5$, why is the temperature in negatives?
- Another method?