CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

The implementation of one of the Maxwell's equations in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By liuke870915

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2015, 07:04
Default The implementation of one of the Maxwell's equations in OpenFOAM
  #1
New Member
 
liuke
Join Date: Apr 2013
Posts: 20
Rep Power: 13
liuke870915 is on a distinguished road
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.
Attached Images
File Type: jpg equation1.jpg (2.0 KB, 15 views)
File Type: jpg equation2.jpg (1.3 KB, 154 views)
File Type: jpg equation3.jpg (913 Bytes, 154 views)
ahmmedshakil likes this.
liuke870915 is offline   Reply With Quote

Old   November 16, 2015, 08:11
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
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.
akidess is offline   Reply With Quote

Old   November 16, 2015, 11:29
Default
  #3
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
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
chriss85 is offline   Reply With Quote

Old   November 17, 2015, 02:04
Default
  #4
New Member
 
liuke
Join Date: Apr 2013
Posts: 20
Rep Power: 13
liuke870915 is on a distinguished road
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!
liuke870915 is offline   Reply With Quote

Old   November 17, 2015, 02:09
Smile
  #5
New Member
 
liuke
Join Date: Apr 2013
Posts: 20
Rep Power: 13
liuke870915 is on a distinguished road
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.
liuke870915 is offline   Reply With Quote

Old   November 20, 2015, 06:44
Default
  #6
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
Which method are you talking about? The ones I mentioned are very stable from my experiences.
chriss85 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 01:33.