Skip to content

Series of codes created to optimize the analysis of the FAR3d outputs.

License

Notifications You must be signed in to change notification settings

Lherrera094/Master_Thesis

Repository files navigation

Theoretical Study of Alfvénic Stability Optimization for TJ-II Stellarator

From February 1st to June 27th, 2023.

Supervisor: Jacobo Varela

Description: The objective is to study the Alfvén Eigenmodes activity on the TJ-II Stellarator concerning the operation of the NBI heating system and magnetic topology variation for optimization. The analysis is performed using the linear version of the gyro-fluid code FAR3d. The Alfvén Continuum is computed with the STELLGAP code. The AE stability analysis is performed for the n = 7,11, 15, n = 5,9,13, 17, n = 6,10,14 helical families including EP populations with energies in the range of 10 - 50 keV and EP beta from 0.1 to 0.4.

The codes developed to optimize the analysis of the FAR3d results are:

  • Automatization: Python scripts for faster preparation of launching folder for FAR3d simulations. Scripts developed to launch simulations in cluster URANUS at Universidad Carlos III de Madrid.

  • Rotational Transform Couplings: Code obtains the resonant modes for a rotational transform profile. It returns a plot of the resonant modes in the $\iota$ profile, and also an Excel with all relevant values. As inputs, it can receive the extremum values, the VMEC wout file or the profile.dat from FAR3d, the periods of the device (in the case of stellarators) and the equilibrium modes.

Couplings

  • FAR3d Acquisition Results: Reads the outputs of the FAR3d simulations, plots all eigenfunctions individually, and creates a map image with the whole set of plots arranged as (EP_beta, EP_energy). Returns a data frame (Output_{Prof}_{n_fam}) file with selected relevant data from the simulations for further analysis.

Couplings

  • Heatmaps: From the Output of FAR3d simulations, create a heatmap for the Growth rate (left) and Frequency (right) of Alfvén Eigenmodes as (EP_beta, EP_Energy).

Couplings

  • Alfven Continuum Analysis: Reads the data frame Output_{Prof}_{n_fam} and plots in the Alfvén Continuum the excited eigenmodes and their growth rate represented as a color map. The software also creates a new data frame {Profile}_Maximum_Values with the excited eigenmodes whose growth rate is the largest for toroidal couplings.

Couplings

  • VMEC_reader: Script reads wout_* VMEC file, prints the variables names, plots the 3D magnetic surface and the poloidal cross-section at the specified toroidal angle of the device.

Couplings

  • Get_Stellgap: script that receives the VMEC wout file as input and transforms to Boozer coordinates to obtain the Alfvén Continuum. (In progress).

About

Series of codes created to optimize the analysis of the FAR3d outputs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published