The Open FUSION Toolkit 1.0.0-8905cc5
Modeling tools for plasma and fusion research and engineering
|
Grad-Shafranov equilibrium field.
Public Member Functions | |
procedure | delete (self) |
Delete reconstruction object. | |
procedure | delete (self) |
Delete reconstruction object, 2D mesh and FE representation. | |
procedure(oft_fem_interp), deferred | interp (self, cell, f, gop, val) |
Reconstruct field. | |
procedure | interp (self, cell, f, gop, val) |
Reconstruct field at a given point in the 3D mesh. | |
procedure | setup (self, mesh) |
Load GS solution from file and setup interpolation. | |
Public Attributes | |
type(oft_lag_bvrinterp) | b_interp |
B-Field interpolation object. | |
real(r8), dimension(:,:), pointer | bvals => NULL() |
Nodal B-Field values. | |
integer(i4), dimension(:), pointer | cell_tri => NULL() |
Current 2D cell. | |
integer(i4) | dim = 0 |
Dimension of field. | |
character(len=oft_path_slen) | eq_file = 'none' |
File containing field data. | |
character(len=oft_path_slen) | field_file = 'none' |
File containing field data. | |
character(len=oft_path_slen) | grid_file = 'none' |
File containing 2D grid. | |
integer(i4) | interp_mode = 1 |
Interpolation mode (1 -> 'B', 2 -> 'P') | |
class(oft_afem_type), pointer | lagrange => NULL() |
FE representation on 2D grid. | |
class(oft_mesh), pointer | mesh => NULL() |
Mesh for interpolation. | |
integer(i4) | order = 1 |
Order of FE representation on input mesh. | |
type(oft_lag_brinterp) | p_interp |
Pressure field interpolation object. | |
class(fem_interp), pointer | parent => NULL() |
Parent interpolator. | |
integer(i4), dimension(:), pointer | pcell => NULL() |
Previous 2D cell. | |
real(r8) | pmax = 0.d0 |
Maximum pressure. | |
real(r8), dimension(:), pointer | pvals => NULL() |
Nodal pressure values. | |
type(oft_trimesh) | tmesh |
2D triangular grid | |
|
inherited |
Delete reconstruction object.
procedure delete | ( | class(oft_gs_eq), intent(inout) | self | ) |
Delete reconstruction object, 2D mesh and FE representation.
|
pure virtualinherited |
Reconstruct field.
procedure interp | ( | class(oft_gs_eq), intent(inout) | self, |
integer(i4), intent(in) | cell, | ||
real(r8), dimension(:), intent(in) | f, | ||
real(r8), dimension(3,4), intent(in) | gop, | ||
real(r8), dimension(:), intent(out) | val | ||
) |
Reconstruct field at a given point in the 3D mesh.
[in] | cell | Cell for interpolation |
[in] | f | Position in cell in logical coord [4] |
[in] | gop | Logical gradient vectors at f [3,4] |
[out] | val | Reconstructed field at f [1] |
procedure setup | ( | class(oft_gs_eq), intent(inout) | self, |
class(oft_mesh), intent(inout), target | mesh | ||
) |
Load GS solution from file and setup interpolation.
Load equilibrium from file and constructs mesh and FE objects
type(oft_lag_bvrinterp) b_interp |
B-Field interpolation object.
real(r8), dimension(:,:), pointer bvals => NULL() |
Nodal B-Field values.
integer(i4), dimension(:), pointer cell_tri => NULL() |
Current 2D cell.
|
inherited |
Dimension of field.
character(len=oft_path_slen) eq_file = 'none' |
File containing field data.
character(len=oft_path_slen) field_file = 'none' |
File containing field data.
character(len=oft_path_slen) grid_file = 'none' |
File containing 2D grid.
integer(i4) interp_mode = 1 |
Interpolation mode (1 -> 'B', 2 -> 'P')
class(oft_afem_type), pointer lagrange => NULL() |
FE representation on 2D grid.
|
inherited |
Mesh for interpolation.
integer(i4) order = 1 |
Order of FE representation on input mesh.
type(oft_lag_brinterp) p_interp |
Pressure field interpolation object.
|
inherited |
Parent interpolator.
integer(i4), dimension(:), pointer pcell => NULL() |
Previous 2D cell.
real(r8) pmax = 0.d0 |
Maximum pressure.
real(r8), dimension(:), pointer pvals => NULL() |
Nodal pressure values.
type(oft_trimesh) tmesh |
2D triangular grid