My advice is take a step back and think again about what you are trying to do. You effectively want to solve for . Now, this equation is saying that the gradient of at any point is determined by the local value of ... but this means that you cannot calculate the value of at that point just from the local gradient ... you need to find a point where you know the value of (from a boundary condition), and then do a line integral from there to the point you are interested in. So, do you see now why you are struggling to find an analytical solution to this, based on the local values of ?
Or, a TLDR answer is - you can't do it that way; instead, why not just get OpenFOAM to solve the equation with appropriate BCs, as a precursor step? Good luck! |
Hi Tobermory, thanks for your comment. Perhaps I was not able to mention the stuff in better way. As there is some misunderstanding which leads to the following part of your comment
As mentioned earlier, we want to solve the to obtain . Later on using this scalar potential, we compute the H as Can you please elaborate the following statement :confused:? |
No, no - I do understand what you mean ... Apologies if my comment:
was unclear. Recall that you asked earlier: Quote:
For the second part, how to solve , it occurred to me that you could just set this up as an equation for OpenFOAM to solve, eg something like Code:
tmp<fvScalarMatrix> tphiBoundaryEqn |
All times are GMT -4. The time now is 07:28. |