CONTAINS INITIALIZATION OF MHD 3D Energy functional that will be minimized
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| integer, | public | :: | which_functional |
points to functional (1: MHD3D) |
|||
| logical, | public | :: | initialized |
| procedure, public :: init => InitMHD3D | |
| procedure, public :: initSolution => InitSolutionMHD3D | |
| procedure, public :: minimize => MinimizeMHD3D | |
| procedure, public :: free => FinalizeMHD3D |
automatically build the string to be read from parameterfile, varname + m,n mode number, and then read it from parameterfile
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| character(len=*), | intent(in) | :: | varname_in | |||
| integer, | intent(in) | :: | mn_in(2) | |||
| integer, | intent(in) | :: | nfp_in |
Initialize Module
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_functional_mhd3d), | intent(inout) | :: | sf |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_functional_mhd3d), | intent(inout) | :: | sf | |||
| character(len=4), | intent(in) | :: | var | |||
| class(c_rProfile), | ALLOCATABLE | :: | var_profile |
Initialize Module
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_functional_mhd3d), | intent(inout) | :: | sf |
Overwrite axis with average axis by center of closed line of the boundary in each poloidal plane
Initialize the solution with the given boundary condition
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_sol_var_MHD3D), | intent(inout) | :: | U_init | |||
| integer, | intent(in) | :: | which_init_in |
Initialize LAMBDA FROM U_init%X1,%X2 and iota profile, this computation is distributed over MPIranks
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_sol_var_MHD3D), | intent(inout) | :: | U_init |
Add boundary perturbation
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_sol_var_MHD3D), | intent(inout) | :: | U_init | |||
| real(kind=wp), | intent(in) | :: | h |
Compute Equilibrium, iteratively
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_functional_mhd3d), | intent(inout) | :: | sf |
Compute Equilibrium, iteratively
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_functional_mhd3d), | intent(inout) | :: | sf |
Finalize Module
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(t_functional_mhd3d), | intent(inout) | :: | sf |