|
[Sponsors] |
The implementation of one of the Maxwell's equations in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
November 16, 2015, 07:04 |
The implementation of one of the Maxwell's equations in OpenFOAM
|
#1 |
New Member
liuke
Join Date: Apr 2013
Posts: 20
Rep Power: 13 |
hello,everybody
My major is megnetohydrodynamics, and I am developing a solver to test the instability of MHD. In the solving process, I need to solve one of the Maxwell's equations,see the first attachment,for a steady electric field, the second term of the right hand of this equation is neglected, and it becomes the second attachment , In OpenFOAM, it should be fvc::curl(B)=mu * J (mu is magnetic permeability, J is the current density, and both of them have known), but, after solving this equation, I got a zero field of B(magnetic field), it means the results of this equation is always zero. I want to know how can I implement this equation on OpenFOAM platform. Anybody can help me. Thank you. |
|
November 16, 2015, 08:11 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
You cannot solve for B using fvc, because an element you are trying to compute will be dependent on elements you have not computed yet. A curl is nasty using fvm, because you will have coupling between the vector components. The solution is to change your mathematical model to get rid of the curl.
__________________
*On twitter @akidTwit *Spend as much time formulating your questions as you expect people to spend on their answer. |
|
November 16, 2015, 11:29 |
|
#3 |
Senior Member
Join Date: Oct 2013
Posts: 397
Rep Power: 18 |
You should look if your problem allows to use magnetostatics.
Then you can use the magnetostatic vector potential and, for constant mu, solve laplace(A)=mu * j and then B = curl(A). If you need variable mu things become more difficult. You can look up T-T0-Phi method for one possibility. If you find some better suited method, please let me know |
|
November 17, 2015, 02:04 |
|
#4 |
New Member
liuke
Join Date: Apr 2013
Posts: 20
Rep Power: 13 |
dear akidess
thank you, I will have a try. because the cfd-online website can not be used regularly, I respond to your answer with this way! thank you! |
|
November 17, 2015, 02:09 |
|
#5 |
New Member
liuke
Join Date: Apr 2013
Posts: 20
Rep Power: 13 |
Dear chriss85
thank you! This method has been tried, but it is very unstable, so I need find a new way to solve this equation. |
|
November 20, 2015, 06:44 |
|
#6 |
Senior Member
Join Date: Oct 2013
Posts: 397
Rep Power: 18 |
Which method are you talking about? The ones I mentioned are very stable from my experiences.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
implementation of schemes in openfoam | venkataramana | OpenFOAM | 24 | February 21, 2018 11:09 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 05:36 |
FEM implementation in OpenFOAM 2.0.0 or later? | seboxx | OpenFOAM | 3 | August 15, 2011 07:24 |
Implementation of a new chemical in OpenFOAM | Volkon | OpenFOAM | 0 | April 10, 2011 06:09 |
Adventure of fisrst openfoam installation on Ubuntu 710 | jussi | OpenFOAM Installation | 0 | April 24, 2008 14:25 |