msaravia |
July 31, 2018 19:06 |
Source terms with gradient and curl
Hi, I am trying to solve an equation of the form:
being A and b vector fields; so, is the Jacobian and is a skew symmetric tensor. The equation can also be written as:
I am wondering wich is the best way to treat the RHS. I have been thinking of using simply
Code:
fvm::laplacian(A) == b ^ fvc::curl(A)
or
Code:
fvm::laplacian(A) == b & ( fvc::grad(A)-fvc::grad(A).T)
I know that positive sources should be treated implicitly, but the RHS is no actually a source. Also, the curl does not have an implicit implementation in OpenFOAM.
At last... I'm lost. Any suggestions to implement this equation would be welcome!
Thanks
|