API Reference

TGLFNN

TGLFNN.compare_two_input_tglfsFunction
compare_two_input_tglfs(itp_1::TGLFNN.InputTGLF, itp_2::TGLFNN.InputTGLF)

Compares two input_tglfs, prints the difference and stores the difference in a new InputTGLF

source
TGLFNN.run_qlgyroFunction
input_qlgyro(input_qlgyro::InputQLGYRO, input_cgyro::InputCGYRO)

Run QLGYRO starting from a InputQLGYRO and InputCGYRO

Returns a flux_solution structure

source
run_qlgyro(input_qlgyros::Vector{InputQLGYRO}, input_cgyros::Vector{InputCGYRO})

Run QLGYRO starting from a vectors of InputQLGYRO and InputCGYRO

NOTE: Each run is done sequentially, one after the other

Returns a vector of flux_solution structures

source
TGLFNN.run_tglfFunction
run_tglf(input_tglf::InputTGLF)

Run TGLF starting from a InputTGLF.

Returns a flux_solution structure

source
run_tglf(input_tglf::InputTGLF)

Run TGLF starting from a vector of InputTGLFs.

NOTE: Each run is done asyncronously (ie. in separate parallel processes)

Returns a flux_solution structure

source
TGLFNN.run_tglfnnFunction
run_tglfnn(input_tglf::InputTGLF; model_filename::String, uncertain::Bool=false, warn_nn_train_bounds::Bool)

Run TGLFNN starting from a InputTGLF, using a specific model_filename.

If the model is an ensemble of NNs, then the output can be uncertain (using the Measurements.jl package).

The warnnntrain_bounds checks against the standard deviation of the inputs to warn if evaluation is likely outside of training bounds.

Returns a flux_solution structure

source
run_tglfnn(input_tglfs::Vector{InputTGLF}; model_filename::String, uncertain::Bool=false, warn_nn_train_bounds::Bool)

Run TGLFNN for multiple InputTGLF, using a specific model_filename.

This is more efficient than running TGLFNN on each individual InputTGLFs.

If the model is an ensemble of NNs, then the output can be uncertain (using the Measurements.jl package).

The warnnntrain_bounds checks against the standard deviation of the inputs to warn if evaluation is likely outside of training bounds.

Returns a vector of flux_solution structures

source
run_tglfnn(data::Dict; model_filename::String, uncertain::Bool=false, warn_nn_train_bounds::Bool)::Dict

Run TGLFNN from a dictionary, using a specific model_filename.

If the model is an ensemble of NNs, then the output can be uncertain (using the Measurements.jl package).

The warnnntrain_bounds checks against the standard deviation of the inputs to warn if evaluation is likely outside of training bounds.

Returns a dictionary with fluxes

source