Solver for magnetohydrodynamics (MHD): incompressible, laminar flow of a conducting fluid under the influence of a magnetic field. More...
Solver for magnetohydrodynamics (MHD): incompressible, laminar flow of a conducting fluid under the influence of a magnetic field.
An applied magnetic field H acts as a driving force, at present boundary conditions cannot be set via the electric field E or current density J. The fluid viscosity nu, conductivity sigma and permeability mu are read in as uniform constants.
A fictitous magnetic flux pressure pH is introduced in order to compensate for discretisation errors and create a magnetic face flux field which is divergence free as required by Maxwell's equations.
However, in this formulation discretisation error prevents the normal stresses in UB from cancelling with those from BU, but it is unknown whether this is a serious error. A correction could be introduced whereby the normal stresses in the discretised BU term are replaced by those from the UB term, but this would violate the boundedness constraint presently observed in the present numerics which guarantees div(U) and div(H) are zero.
-case | <dir> Specify the case directory |
-parallel | Run the case in parallel |
-help | Display short usage message |
-doc | Display Doxygen documentation page |
-srcDoc | Display source code |
Definition in file mhdFoam.C.
#include "src/finiteVolume/cfdTools/general/include/fvCFD.H"
#include "src/OpenFOAM/include/OSspecific.H"
#include "src/OpenFOAM/include/setRootCase.H"
#include "src/OpenFOAM/include/createTime.H"
#include "src/OpenFOAM/include/createMesh.H"
#include "applications/solvers/electromagnetics/mhdFoam/createFields.H"
#include "src/finiteVolume/cfdTools/general/include/initContinuityErrs.H"
#include "src/finiteVolume/cfdTools/general/include/readPISOControls.H"
#include "applications/solvers/electromagnetics/mhdFoam/readBPISOControls.H"
#include "src/finiteVolume/cfdTools/incompressible/CourantNo.H"
#include "src/finiteVolume/cfdTools/incompressible/continuityErrs.H"
#include "applications/solvers/electromagnetics/mhdFoam/magneticFieldErr.H"
Go to the source code of this file.