The resistiveOperator computes sources terms for the MHD equations using a conservative least squares gradient method:
Here, \(\eta_{\mathrm{Ohmic}}\) is the Ohmic resistvity, \(\eta_{\mathrm{Hall}}\) is the Hall coefficient, \(rho\) is the fluid density, \(Q\) is the charge on a proton, \(Z\) is the ion charge state and \(m_{\mathrm{ion}}\) is the ion mass.
in
(string vector of 4, required)Magnetic field
(nodalArray, 3-components, required)Ohmic Resistivity
(nodalArray, 1-components, optional)Mass density
(nodalArray, 1-components, optional)Charge State
(nodalArray, 1-components, optional)The resistiveOperator updater accepts the parameters below, in addition to those required by Updater:
orderAccuracy
(integer, required)numberOfInterpolationPoints
(integer, required)Number of points to be considerd for the least squares fit. This parameter varies from mesh to mesh and should be determined by computing a known function on the mesh.
The numberOfInterpolationPoints must be greater than (or equal to) the number of coefficients in the polynomial approximation. This means that in 1d the value is 4, in 2D the value is at least 6 and in 3D the value is at least 10.
These choices do not guarantee that a matrix inverse will be found. The following values though appear to be adequate in general: in 1D 4; in 2D 8 and in 3D 20.
coefficient
(float, required)permeability
(float, required)enableOhmicTerm
(bool, optional)enableHallTerm
(bool, optional)Include the Hall effect, \(\eta_{\mathrm{Hall}} \left( \nabla \times \mathbf{B} \right) \times \mathbf{B}\) in the extended MHD electric field. Default: false.
If enableHallTerm = true, then the following parameters are available:
ionMass
(float, optional) The mass of an ion. Default value is 1.0.
fundamentalCharge
(float, optional) The charge of a proton. Default value is 1.0.
enablePartiallyIonized
(bool, optional) Whether to include the ion ionization state in the Hall effect. Default is false, in which case the ion is assumed to be singly ionized.
<Updater computeResistiveSources>
kind = resistiveOperator2d
onGrid = domain
coefficient = 1.0
permeability = 1.0
numberOfInterpolationPoints = 8
in = [magneticField, resistivity]
out = [source]
</Updater>