|
[Sponsors] |
Direction of B field and electric field in OpenFOAM (mhdFOAM) |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 20, 2015, 06:53 |
Direction of B field and electric field in OpenFOAM (mhdFOAM)
|
#1 |
New Member
Adkar
Join Date: Apr 2015
Posts: 18
Rep Power: 11 |
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; } } // ************************************************** *********************** // |
|
|
|
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 |