Modifying sonicFoam to add EM terms
Hello, everyone!
I'm trying to include electromagnetic force UxB (where B is constant in time) and Joule heating into sonicFoam, but I'm having troubles modifying the equations. I added B into createFields.H and terms into right hand sides of UEqn and EEqn, but it doesn't seem to work. (I have very little idea about programming with openFoam) Here are the codes of equations I modified: Code:
F = sigma*U^B^B; Code:
E = U^B; |
All times are GMT -4. The time now is 11:32. |