# Boundary condition and source in electromagnetic problems

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

 November 22, 2005, 10:06 Hi, everyone! I'm a new user #1 Member   Efimenko Evgenii Join Date: Mar 2009 Location: Nizhnij Novgorod, Russia Posts: 52 Rep Power: 9 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?

 November 22, 2005, 11:26 I haven't used electromagnetic #2 Member   VVqf Join Date: Mar 2009 Location: Braunschweig Posts: 66 Rep Power: 9 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.

 March 5, 2007, 08:15 Hi, I am using mhdFOAM. It s #3 mss Guest   Posts: n/a Hi, 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 current)? thank u, Rita

 March 6, 2007, 16:20 Hi Rita (With the choice of #4 Assistant Moderator   Bernhard Gschaider Join Date: Mar 2009 Posts: 3,953 Rep Power: 41 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

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Milos OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 13 October 13, 2016 19:58 milos OpenFOAM Running, Solving & CFD 8 October 6, 2009 08:50 ogloth OpenFOAM Running, Solving & CFD 3 July 17, 2007 15:36 Nish FLUENT 2 August 27, 2004 18:27 Angela Main CFD Forum 0 December 13, 2002 07:57

All times are GMT -4. The time now is 17:53.