CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Pre-Processing

Boundary condition and source in electromagnetic problems

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

LinkBack Thread Tools Display Modes
Old   November 22, 2005, 10:06
Default Hi, everyone! I'm a new user
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 10
evgenii is on a distinguished road
Hi, everyone!
I'm a new user of OpenFoam, so I have a few questions.

I'm trying to use OpenFoam to solve some electromagnetic problems.

First of all, I don't understand do I need to write file "boundary" in "/constant/PolyMesh" or OpenFoam will generate it. If it will, how can it specify correct boundary conditions(I mean "physical type")? If I need to write this file on my own, how can I calculate "nFaces" and "startFace" for each patch?

Second question. I need to specify zero tangential component of electric field at the boundary.(Normal component is arbitrary). Should I determine special physicalType for boundary condition? I hope you'd give me advise how to do it better.

And the last question. I need to to specify source in the centre of my mesh as dipole alternately changing in time(= electric current). How can I do it?
evgenii is offline   Reply With Quote

Old   November 22, 2005, 11:26
Default I haven't used electromagnetic
Join Date: Mar 2009
Location: Braunschweig
Posts: 66
Rep Power: 10
vvqf is on a distinguished road
I haven't used electromagnetic solver.

usually you don't need to write boudary file, OpenFoam will generate it when you do application to generate the mesh. But you can also write your own boundary file sometimes.

please read User/Programming Guide, search for "boundary conditions", I think you can find what you want.
vvqf is offline   Reply With Quote

Old   March 5, 2007, 08:15
Default Hi, I am using mhdFOAM. It s
Posts: n/a
I am using mhdFOAM.
It seems that the boundary conditions we can impose on the magnetic
field B are only of Dirichlet type (B constant). Is it possible to impose
a Neuman type condition (given rotational of B, or imposed

thank u,
  Reply With Quote

Old   March 6, 2007, 16:20
Default Hi Rita (With the choice of
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,020
Rep Power: 43
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Rita

(With the choice of possible BCs you are refering to FoamX?)

You can replace the fixedValue-BCs with fixedGradient (or mixed) in the B file.

For the more complicated stuff (rotational etc) you might have to write your own BC
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request
gschaider 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
Boundary condition problems (OpenFOAM) Milos OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 13 October 13, 2016 19:58
Boundary condition problems imported msh milos OpenFOAM Running, Solving & CFD 8 October 6, 2009 08:50
Problems implementing a boundary condition ogloth OpenFOAM Running, Solving & CFD 3 July 17, 2007 15:36
Problems with Fan boundary condition Nish FLUENT 2 August 27, 2004 18:27
Source balance and Boundary condition Angela Main CFD Forum 0 December 13, 2002 07:57

All times are GMT -4. The time now is 06:24.