pyoculus 0.1.1
Loading...
Searching...
No Matches
pyoculus.problems.cartesian_bfield.CartesianBfield Class Reference
Inheritance diagram for pyoculus.problems.cartesian_bfield.CartesianBfield:
pyoculus.problems.cylindrical_problem.CylindricalProblem pyoculus.problems.bfield_problem.BfieldProblem pyoculus.problems.base_problem.BaseProblem pyoculus.problems.simsgeo_biot_savart.SimsgeoBiotSavart

Public Member Functions

 __init__ (self, R0, Z0, Nfp=1)
 Set up the problem.
 
 f_RZ (self, phi, RZ, *args)
 Returns ODE RHS.
 
 f_RZ_tangent (self, phi, RZ, *args)
 Returns ODE RHS, with tangent.
 
- Public Member Functions inherited from pyoculus.problems.cylindrical_problem.CylindricalProblem
 f (self, zeta, y, *args)
 Returns ODE RHS.
 
 f_tangent (self, zeta, y, *args)
 Returns ODE RHS.
 
 set_axis (self, R0, Z0)
 Set the axis.
 
- Public Member Functions inherited from pyoculus.problems.base_problem.BaseProblem
 convert_coords (self, coord1)
 Converts coordinates (for example \(s,\theta,\zeta\) to \(R,Z,\varphi\))
 
- Public Member Functions inherited from pyoculus.problems.bfield_problem.BfieldProblem
 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.
 

Static Protected Member Functions

 _inv_Jacobian (R, phi, Z)
 

Additional Inherited Members

- Public Attributes inherited from pyoculus.problems.cylindrical_problem.CylindricalProblem
int problem_size = 2
 
str poincare_plot_type = "RZ"
 
str poincare_plot_xlabel = "R(m)"
 
str poincare_plot_ylabel = "Z(m)"
 
 Nfp = Nfp
 
- Public Attributes inherited from pyoculus.problems.base_problem.BaseProblem
int problem_size = 2
 
str poincare_plot_type = "yx"
 
str poincare_plot_xlabel = "y"
 
str poincare_plot_ylabel = "x"
 
- Public Attributes inherited from pyoculus.problems.bfield_problem.BfieldProblem
bool has_jacobian = False
 if the output magnetic field contains the jacobian factor or not
 
- Protected Attributes inherited from pyoculus.problems.cylindrical_problem.CylindricalProblem
 _R0 = R0
 
 _Z0 = Z0
 

Constructor & Destructor Documentation

◆ __init__()

pyoculus.problems.cartesian_bfield.CartesianBfield.__init__ ( self,
R0,
Z0,
Nfp = 1 )

Set up the problem.

Parameters
R0the R coordinate of the magnetic axis
Z0the Z coordinate of the magnetic axis

Reimplemented from pyoculus.problems.cylindrical_problem.CylindricalProblem.

Reimplemented in pyoculus.problems.simsgeo_biot_savart.SimsgeoBiotSavart.

Member Function Documentation

◆ _inv_Jacobian()

pyoculus.problems.cartesian_bfield.CartesianBfield._inv_Jacobian ( R,
phi,
Z )
staticprotected

◆ f_RZ()

pyoculus.problems.cartesian_bfield.CartesianBfield.f_RZ ( self,
phi,
RZ,
* args )

Returns ODE RHS.

Parameters
phicylindrical angle in ODE
RZ\((R, Z)\) in ODE
*argsparameter for the ODE
Returns
the RHS of the ODE

Reimplemented from pyoculus.problems.cylindrical_problem.CylindricalProblem.

◆ f_RZ_tangent()

pyoculus.problems.cartesian_bfield.CartesianBfield.f_RZ_tangent ( self,
phi,
RZ,
* args )

Returns ODE RHS, with tangent.

Parameters
zetacylindrical angle in ODE
RZ\((R, Z, dR_1, dZ_1, dR_2, dZ_2)\) in ODE
*argsextra parameters for the ODE
Returns
the RHS of the ODE, with tangent

Reimplemented from pyoculus.problems.cylindrical_problem.CylindricalProblem.


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