CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Electromagnetics

Direction of B field and electric field in OpenFOAM (mhdFOAM)

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   October 20, 2015, 06:53
Question Direction of B field and electric field in OpenFOAM (mhdFOAM)
  #1
New Member
 
Adkar
Join Date: Apr 2015
Posts: 18
Rep Power: 11
adkar is on a distinguished road
I am a new OF user.
Could someone tell me how to determine the direction of magnetic field in openFOAM ? (Solver = mhdFOAM)
I cannot understand the direction of magnetic and electric field in the initial conditions folder (0 folder in the case folder)

Also, where is the direction of electric field given?

Thank you.

The following is the B file

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object B;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 0 -2 0 0 -1 0];

internalField uniform (0 20 0);

boundaryField
{
inlet
{
type zeroGradient;
}

outlet
{
type zeroGradient;
}

lowerWall
{
type fixedValue;
value uniform (0 20 0);
}

upperWall
{
type fixedValue;
value uniform (0 20 0);
}

frontAndBack
{
type empty;
}
}

// ************************************************** *********************** //

And this is the pB file which is supposed to be the electric field

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volScalarField;
object pB;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [1 1 -3 0 0 -1 0];

internalField uniform 0;

boundaryField
{
inlet
{
type fixedValue;
value uniform 0;
}

outlet
{
type fixedValue;
value uniform 0;
}

lowerWall
{
type zeroGradient;
}

upperWall
{
type zeroGradient;
}

frontAndBack
{
type empty;
}
}

// ************************************************** *********************** //
adkar is offline   Reply With Quote

 


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
BCs and correctBoundaryConditions() for an electric field and current solver chriss85 OpenFOAM Programming & Development 4 May 3, 2022 12:29
How to calculate electric field strength andrek OpenFOAM Running, Solving & CFD 16 November 14, 2015 07:25
electric field Alexandra Mutzke CFX 6 November 1, 2012 13:50
Electric Field With Space Charge masspec OpenFOAM 2 June 11, 2010 11:23
Electric Field calculation JamesT Phoenics 5 May 31, 2007 04:44


All times are GMT -4. The time now is 19:25.