CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

magnetic field/vector potent./internal bound.

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

LinkBack Thread Tools Display Modes
Old   April 25, 2012, 16:53
Default magnetic field/vector potent./internal bound.
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 5
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].


P.S. My problem to get 2 sided patch is mentioned here (I can't figure out the steps that need to be taken) - Internal faces from gmsh how to create patches in OpenFoam
latvietis is offline   Reply With Quote

Old   May 3, 2012, 17:34
Join Date: Dec 2011
Location: Latvia
Posts: 54
Rep Power: 5
latvietis is on a distinguished road

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.

latvietis is offline   Reply With Quote


Thread Tools
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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Magnetic particles in Fluid SH_P OpenFOAM 3 June 21, 2013 15:37
vof simulation...magnetic fluid pressure fields. Souviktor FLUENT 0 May 22, 2010 02:19
particles in a localized magnetic field Arturo Ortiz FLUENT 1 March 10, 2010 11:26
External magnetic field data Richard Lee FLUENT 2 March 10, 2010 11:22
ACCESS VIOLATION MHDWill FLUENT 1 September 23, 2007 02:51

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