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

magnetic field/vector potent./internal bound.

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2012, 17:53
Default magnetic field/vector potent./internal bound.
  #1
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Hello, foamers.

Still looking how to make a magnetic field solver. Solver that was introduced with OF 2.1 - magneticFoam - didn't work for me so I decided to try solver that uses vector potential A.

Problem is that things just doesn't work that simple and everything reduces that Openfoam has problems with internal patches (in my opinion).

What I want to achieve is this, but in 3D:

I managed to get internal patches with gmsh, but it seems it doesn't take in consideration inside of the material with higher permeability.

B lines, as you can observe in image below, can't get in. I think the problem is with the boundary conditions because they are defined only from one side. Could that be a reason? I really don't see myself making a multi-region-magnetic-foam as I hope in simpler solution.

At the moment I'm still trying to get two sided wall running, maybe that could help more.



Any ideas what should I define on boundaries to get B lines (flux) inside the magnetic wire (material with higher permeability than surrounding)?

I know that one thing could be Neumann boundary condition where dA/dn=0 [A - vector potential and n - vector of normal].

Yours,
Martin

P.S. My problem to get 2 sided patch is mentioned here (I can't figure out the steps that need to be taken) - http://www.cfd-online.com/Forums/ope...tml#post357032
latvietis is offline   Reply With Quote

Old   May 3, 2012, 18:34
Default
  #2
Member
 
Martin
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 14
latvietis is on a distinguished road
Greetings!



Sorry for small picture, but I hope it is understandable. I have drawn 2 cells, the black line is internal boundary (has cells from both sides). I managed to do that createBaffles thing and I have patches to both sides. My question - is it possible using GroovyBC to take a functions F value from cell above and put this value on boundary to other side? I want to try that from one side I have zeroGradient, but from the other I have a value of function so my solver could get initial value for calculations.

Sincerely,
Martin
latvietis is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
External magnetic field data Richard Lee FLUENT 7 January 11, 2019 05:43
Magnetic particles in Fluid SH_P OpenFOAM 3 June 21, 2013 16:37
vof simulation...magnetic fluid pressure fields. Souviktor FLUENT 0 May 22, 2010 03:19
particles in a localized magnetic field Arturo Ortiz FLUENT 1 March 10, 2010 11:26
ACCESS VIOLATION MHDWill FLUENT 1 September 23, 2007 03:51


All times are GMT -4. The time now is 08:56.