pyoculus 0.1.1
Loading...
Searching...
No Matches
pyoculus.problems.bfield_problem.BfieldProblem Class Reference
Inheritance diagram for pyoculus.problems.bfield_problem.BfieldProblem:
pyoculus.problems.cartesian_bfield.CartesianBfield pyoculus.problems.cylindrical_bfield.CylindricalBfield pyoculus.problems.toroidal_bfield.ToroidalBfield pyoculus.problems.simsgeo_biot_savart.SimsgeoBiotSavart pyoculus.problems.m3dc1_bfield.M3DC1Bfield pyoculus.problems.qfm_bfield.QFMBfield pyoculus.problems.spec_bfield.SPECBfield pyoculus.problems.two_waves.TwoWaves

Public Member Functions

 __init__ (self)
 Set up the problem.
 
 B (self, coords, *args)
 Returns magnetic fields.
 
 dBdX (self, coords, *args)
 Returns magnetic fields.
 
 B_many (self, x1arr, x2arr, x3arr, input1D=True, *args)
 Returns magnetic fields, with multipy coordinate inputs.
 
 dBdX_many (self, x1arr, x2arr, x3arr, input1D=True, *args)
 Returns magnetic fields.
 

Public Attributes

bool has_jacobian = False
 if the output magnetic field contains the jacobian factor or not
 

Constructor & Destructor Documentation

◆ __init__()

Member Function Documentation

◆ B()

pyoculus.problems.bfield_problem.BfieldProblem.B ( self,
coords,
* args )

Returns magnetic fields.

Parameters
coordinates
*argsextra parameters
Returns
the contravariant magnetic fields

Reimplemented in pyoculus.problems.m3dc1_bfield.M3DC1Bfield, pyoculus.problems.qfm_bfield.QFMBfield, pyoculus.problems.simsgeo_biot_savart.SimsgeoBiotSavart, pyoculus.problems.spec_bfield.SPECBfield, and pyoculus.problems.two_waves.TwoWaves.

◆ B_many()

pyoculus.problems.bfield_problem.BfieldProblem.B_many ( self,
x1arr,
x2arr,
x3arr,
input1D = True,
* args )

Returns magnetic fields, with multipy coordinate inputs.

Parameters
x1arrthe first coordinates. Should have the same length as the other two if input1D=True.
x2arrthe second coordinates. Should have the same length as the other two if input1D=True.
x3arrthe third coordinates. Should have the same length as the other two if input1D=True.
input1Dif False, create a meshgrid with sarr, tarr and zarr, if True, treat them as a list of points
*argsextra parameters
Returns
the contravariant magnetic fields

Reimplemented in pyoculus.problems.qfm_bfield.QFMBfield, pyoculus.problems.spec_bfield.SPECBfield, and pyoculus.problems.two_waves.TwoWaves.

◆ dBdX()

pyoculus.problems.bfield_problem.BfieldProblem.dBdX ( self,
coords,
* args )

Returns magnetic fields.

Parameters
coordinates
*argsextra parameters
Returns
B, dBdX, the contravariant magnetic fields, the derivatives of them

Reimplemented in pyoculus.problems.qfm_bfield.QFMBfield, pyoculus.problems.simsgeo_biot_savart.SimsgeoBiotSavart, pyoculus.problems.spec_bfield.SPECBfield, and pyoculus.problems.two_waves.TwoWaves.

◆ dBdX_many()

pyoculus.problems.bfield_problem.BfieldProblem.dBdX_many ( self,
x1arr,
x2arr,
x3arr,
input1D = True,
* args )

Returns magnetic fields.

Parameters
x1arrthe first coordinates. Should have the same length as the other two if input1D=True.
x2arrthe second coordinates. Should have the same length as the other two if input1D=True.
x3arrthe third coordinates. Should have the same length as the other two if input1D=True.
input1Dif False, create a meshgrid with sarr, tarr and zarr, if True, treat them as a list of points
*argsextra parameters
Returns
B, dBdX, the contravariant magnetic fields, the derivatives of them

Reimplemented in pyoculus.problems.qfm_bfield.QFMBfield, pyoculus.problems.spec_bfield.SPECBfield, and pyoculus.problems.two_waves.TwoWaves.

Member Data Documentation

◆ has_jacobian

bool pyoculus.problems.bfield_problem.BfieldProblem.has_jacobian = False

if the output magnetic field contains the jacobian factor or not


The documentation for this class was generated from the following file: