Stellarator-Tools
siesta_equilibrium.f File Reference

Contains module siesta_equilibrium. More...

Data Types

interface  siesta_equilibrium::siesta_class
 Base class representing a siesta_equilibrium. More...
 

Modules

module  siesta_equilibrium
 Defines the base class of the type siesta_class. This module contains all the code necessary to interface V3FIT with SIESTA.
 

Functions/Subroutines

type(siesta_class) function, pointer siesta_equilibrium::siesta_construct (file_name, restart_file_name, ne, te, ti, sxrem, phi_offset, z_offset, pol_rad_ratio, iou, eq_comm, recon_comm, state_flags, vmec_namelist, wout_file_name, force_solve)
 Construct a siesta_class object. More...
 
subroutine siesta_equilibrium::siesta_destruct (this)
 Deconstruct a siesta_class object. More...
 
subroutine siesta_equilibrium::siesta_set_param (this, id, i_index, j_index, value, eq_comm, state_flags)
 Sets the value of a reconstruction equilibrium parameter. More...
 
subroutine siesta_equilibrium::siesta_set_magnetic_cache_response (this, response_object, state_flags)
 Set magnetic cache for plasma response. More...
 
subroutine siesta_equilibrium::siesta_set_magnetic_cache_point (this, use_axi, state_flags)
 Set magnetic cache initialy. More...
 
subroutine siesta_equilibrium::siesta_set_magnetic_cache_calc (this)
 Set magnetic cache. More...
 
character(len=data_name_length) function siesta_equilibrium::siesta_get_type (this)
 Gets a discription of the equilibrium type. More...
 
integer function siesta_equilibrium::siesta_get_param_id (this, param_name)
 Get the id for a reconstruction parameter. More...
 
real(rprec) function siesta_equilibrium::siesta_get_param_value (this, id, i_index, j_index)
 Get the value of a reconstruction siesta parameter. More...
 
character(len=data_name_length) function siesta_equilibrium::siesta_get_param_name (this, id)
 Get the name of a reconstruction siesta parameter. More...
 
real(rprec) function siesta_equilibrium::siesta_get_gp_ne_pi (this, x_cart, i)
 Get the electron density gp kernel value for the position and index. More...
 
real(rprec) function siesta_equilibrium::siesta_get_gp_ne_pp (this, x_cart, y_cart)
 Get the electron density gp kernel value for the position and position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_ne_cart (this, x_cart)
 Gets the electron density at a cartesian position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_ne_radial (this, s)
 Gets the electron density at a s, u=0, v=0 position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_gp_te_pi (this, x_cart, i)
 Get the electron temperature gp kernel value for the position and index. More...
 
real(rprec) function siesta_equilibrium::siesta_get_gp_te_pp (this, x_cart, y_cart)
 Get the electron temperature gp kernel value for the position and position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_te_cart (this, x_cart)
 Gets the electron temperature at a cartesian position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_te_radial (this, s)
 Gets the electron temperature at a s, u=0, v=0 position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_gp_ti_pi (this, x_cart, i)
 Get the ion temperature gp kernel value for the position and index. More...
 
real(rprec) function siesta_equilibrium::siesta_get_gp_ti_pp (this, x_cart, y_cart)
 Get the ion temperature gp kernel value for the position and position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_ti_cart (this, x_cart)
 Gets the ion temperature at a cartesian position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_ti_radial (this, s)
 Gets the ion temperature at a s, u=0, v=0 position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_gp_sxrem_pi (this, x_cart, i, index)
 Get the soft x-ray emissivity gp kernel value for the position and index. More...
 
real(rprec) function siesta_equilibrium::siesta_get_gp_sxrem_pp (this, x_cart, y_cart, index)
 Get the soft x-ray emissivity gp kernel value for the position and position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_sxrem_cart (this, x_cart, index)
 Gets the soft x-ray emissivity at a cartesian position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_sxrem_radial (this, s, index)
 Gets the soft x-ray emissivity at a s, u=0, v=0 position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_p_cart (this, x_cart, normalize)
 Gets the plasma pressure at a cartesian position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_p_radial (this, s, normalize)
 Gets the plasma pressure at a s, u=0, v=0 position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_p_flux (this, flux, normalize)
 Gets the plasma pressure at a flux position. More...
 
real(rprec) function, dimension(3) siesta_equilibrium::siesta_get_b_vec (this, x_cart, cyl)
 Gets the magnetic field vector at a position. More...
 
real(rprec) function siesta_equilibrium::siesta_get_int_b_dphi (this, s, theta)
 Gets the loop integrated magnetic field at a position. More...
 
real(rprec) function, dimension(3) siesta_equilibrium::siesta_get_suv (this, x_cart)
 Gets siesta s value at position. More...
 
integer function siesta_equilibrium::siesta_get_plasma_edge (this, phi, r, z)
 Gets the r and z positions of the outer surface at a toroidal angle. More...
 
real(rprec) function, dimension(3) siesta_equilibrium::siesta_get_ext_b_plasma (this, position, axi_only)
 Get external plasma magnetic field. More...
 
real(rprec) function, dimension(3) siesta_equilibrium::siesta_get_int_b_plasma (this, flux)
 Get internal plasma magnetic field. More...
 
integer function siesta_equilibrium::siesta_get_grid_size (this)
 Get radial grid size. More...
 
logical function siesta_equilibrium::siesta_is_1d_array (this, id)
 Checks if a parameter id is a 1d array. More...
 
logical function siesta_equilibrium::siesta_is_recon_param (this, id)
 Checks if a parameter id is a reconstruction parameter. More...
 
logical function siesta_equilibrium::siesta_converge (this, num_iter, iou, eq_comm, state_flags)
 Solves the siesta equilibrium. More...
 
subroutine siesta_equilibrium::siesta_save_state (this)
 Save the internal state of the equilibrium. More...
 
subroutine siesta_equilibrium::siesta_reset_state (this)
 Reset the internal state of the equilibrium. More...
 
subroutine siesta_equilibrium::siesta_write (this, iou)
 Write out the equilibrium to an output file. More...
 
subroutine siesta_equilibrium::siesta_write_input (this, current_step)
 Write the current valid input. More...
 
subroutine siesta_equilibrium::siesta_sync_state (this, recon_comm)
 Syncronize the siesta state to children. More...
 
subroutine siesta_equilibrium::siesta_sync_child (this, index, recon_comm)
 Syncronize a child siesta state to the parent. More...
 
pure real(rprec) function siesta_equilibrium::siesta_to_vmec_s (s)
 Map the siesta s to the vmec s. More...
 
pure real(rprec) function siesta_equilibrium::siesta_to_siesta_s (s)
 Map the vmec s to the siesta s. More...
 
pure real(rprec) function siesta_equilibrium::siesta_to_i_vmec (s)
 Find the vmec s index. More...
 
pure integer function siesta_equilibrium::siesta_to_i_vmec_low (s)
 Find the lower vmec s index. More...
 
pure real(rprec) function siesta_equilibrium::siesta_to_w_vmec_low (s, ilow)
 Find the lower interplation weighting. More...
 

Variables

integer, parameter siesta_equilibrium::siesta_helpert_id = 82
 Helical perturbation parameter.
 

Detailed Description

Contains module siesta_equilibrium.