Class: CodeRunner::Gs2::Spectrogk
- Inherits:
-
Astrogk
- Object
- Run::FortranNamelist
- CodeRunner::Gs2
- Astrogk
- CodeRunner::Gs2::Spectrogk
- Defined in:
- lib/gs2crmod/spectrogk.rb
Constant Summary collapse
- NaN =
require folder + ‘/test_gs2.rb’
GSL::NAN
Constants inherited from Astrogk
Astrogk::ASTROGK_CRMOD_VERSION
Constants inherited from CodeRunner::Gs2
AxisKit, CODE_SCRIPT_FOLDER, DataKit, GRAPHKIT_OPTIONS_HELP, GS2_CRMOD_VERSION, MAX_NAME_SIZE, SPECIES_DEPENDENT_NAMELISTS, SPECIES_DEPENDENT_VARIABLES, SPECIES_DEPENDENT_VARIABLES_WITH_HELP
Constants included from GSLTensors
GSLTensors::FIELD_VALUES, GSLTensors::IRRELEVANT_INDICES, GSLTensors::TIME_VARYING_INDICES, GSLTensors::TRIVIAL_INDICES
Instance Attribute Summary
Attributes inherited from CodeRunner::Gs2
#eigenfunctions, #iphi00, #ky_graphs, #ky_list, #saturation_time, #scan_index_window, #scan_parameter_value, #t_list, #theta_list
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Astrogk
#agk?, #correct_3d_options, #diagnostics_namelist, #geometric_factors_gsl_tensor, #ingen, #read_transfers, #run_namelist_backwards_compatibility, #set_nprocs, test_gs2, transfer_gs2_docs
Methods included from Astrogk::AstrogkGSLVectors
#etrans_by_kfrom_by_kto_over_time_gsl_vector
Methods inherited from CodeRunner::Gs2
#actual_number_of_processors, add_variable_to_namelist, #agk?, #approximate_grid_size, #auto_axiskits, #axiskit, #box_kx_index, cache, #calculate_frequencies, #calculate_growth_rate, #calculate_growth_rates_and_frequencies, #calculate_results, #calculate_saturation_time_index, #calculate_spectral_checks, #calculate_time_averaged_fluxes, #calculate_transient_amplification, #calculate_transient_amplifications, #calculate_transient_es_heat_flux_amplifications, #calculate_vspace_checks, check_and_update, #check_converged, #check_parameters, #copy_response_files, #copy_restart_files, #corrected_mom_flux_stav, #ctan, #cumulative_gridpoints, #data_string, #delete_restart_files, #diagnostics_namelist, #diff_run_parameters, #error, #estimated_nodes, #eulerian_kx_index, #generate_component_runs, generate_graphs_rdoc_file, #generate_input_file, #get_completed_timesteps, #get_list_of, #get_run_time, #get_status, #get_time, #graphkit, #gridpoints, #gryfx?, #gsl_complex, #gsl_matrix, #gsl_tensor, #gsl_vector, #gsl_vector_complex, #has_electrons?, help_graphs, #hypercoll_graphkit, #hyperviscosity_graphkit, #incomplete, #ingen, #input_file_extension, #jump, #kx_indexed, #kx_shift, #latex_graphs, #lenardbern_graphkit, list_code_commands, #list_of_response_files, #list_of_restart_files, #max_es_heat_amp, #max_nprocs_no_x, #max_trans_phi, modify_job_script, #namelist_test_failed, #ncclose, #ncdump, #netcdf_file, #netcdf_filename, #netcdf_smart_reader, #no_restarts, #old_smart_graphkit, #optimisation_flags, #parallelizable_meshpoints, #parameter_string, #parameter_transition, #percent_complete, #physical_kx_index, #plot_efit_file, #print_out_line, #process_directory_code_specific, #recheck, #renew_info_file, #restart, #restart_chain, #run_heuristic_analysis, #run_namelist_backwards_compatibility, #run_namelist_tests, #saturated_time_average, #saturated_time_average_error, #saturated_time_average_std_dev, #sc, #set_nprocs, #show_graph, #smart_graphkit, #spec_chec, #species_letter, #species_type, #standardize_restart_files, #stop, #test_failed, test_gs2, #test_variable, #update_physics_parameters_from_miller_input_file, #vim_input, #vim_output, #vim_stdout, #visually_check_growth_rate, #warning, #write_input_file
Methods included from GSLMatrices
#es_heat_flux_over_ky_over_kx_gsl_matrix, #growth_rate_over_ky_over_kx_gsl_matrix, #phi0_over_x_over_y_gsl_matrix, #spectrum_over_ky_over_kpar_gsl_matrix, #spectrum_over_ky_over_kx_gsl_matrix, #transient_amplification_over_ky_over_kx_gsl_matrix
Methods included from GSLVectorComplexes
#phi_along_field_line_gsl_vector_complex, #phi_zonal_gsl_vector_complex
Methods included from GSLVectors
#apar2_over_time_gsl_vector, #dt_gsl_vector, #es_heat_by_kx_over_time_gsl_vector, #es_heat_by_ky_over_time_gsl_vector, #es_heat_flux_over_time_gsl_vector, #es_heat_over_kx_gsl_vector, #es_heat_over_kxy_gsl_vector, #es_heat_over_ky_gsl_vector, #es_heat_par_over_time_gsl_vector, #es_heat_perp_over_time_gsl_vector, #es_mom_flux_over_time_gsl_vector, #es_part_flux_over_time_gsl_vector, #frequency_by_kx_over_time_gsl_vector, #frequency_by_kxy_over_time_gsl_vector, #frequency_by_ky_over_time_gsl_vector, #frequency_over_ky_gsl_vector, #grho_gsl_vector, #growth_rate_by_kx_over_time_gsl_vector, #growth_rate_by_kxy_over_time_gsl_vector, #growth_rate_by_ky_over_time_gsl_vector, #growth_rate_over_kx_gsl_vector, #growth_rate_over_kx_slice_gsl_vector, #growth_rate_over_ky_gsl_vector, #growth_rate_over_ky_slice_gsl_vector, #hflux_tot_over_time_gsl_vector, #kpar_gsl_vector, #linked_kx_elements_gsl_vector, #lpc_energy_gsl_vector, #lpc_pitch_angle_gsl_vector, #mean_flow_velocity_over_x_gsl_vector, #par_mom_flux_over_time_gsl_vector, #perp_mom_flux_over_time_gsl_vector, #phi0_by_kx_by_ky_over_time_gsl_vector, #phi2_by_kx_over_time_gsl_vector, #phi2_by_ky_over_time_gsl_vector, #phi2_by_mode_over_time_gsl_vector, #phi2tot_over_time_gsl_vector, #phi_along_field_line_gsl_vector, #phi_for_eab_movie_gsl_vector, #scan_parameter_value_gsl_vector, #spectrum_over_kpar_gsl_vector, #spectrum_over_kx_avg_gsl_vector, #spectrum_over_kx_gsl_vector, #spectrum_over_kxy_avg_gsl_vector, #spectrum_over_kxy_gsl_vector, #spectrum_over_ky_avg_gsl_vector, #spectrum_over_ky_gsl_vector, #theta_along_field_line_gsl_vector, #tpar2_by_mode_over_time_gsl_vector, #tperp2_by_mode_over_time_gsl_vector, #transient_amplification_over_kx_gsl_vector, #transient_amplification_over_ky_gsl_vector, #transient_es_heat_flux_amplification_over_kx_gsl_vector, #transient_es_heat_flux_amplification_over_kxy_gsl_vector, #transient_es_heat_flux_amplification_over_ky_gsl_vector, #vres_energy_gsl_vector, #vres_pitch_angle_gsl_vector, #x_gsl_vector, #y_gsl_vector, #zf_velocity_over_x_gsl_vector, #zonal_spectrum_gsl_vector
Methods included from FixNormOption
#fix_heat_flux_norm, #fix_norm, #fix_norm_action
Methods included from ReadNetcdf
#new_ncclose, #new_netcdf_file, #new_netcdf_filename
Methods included from GSLComplexTensors
#field_gsl_tensor_complex, #phi_gsl_tensor_complex
Methods included from GSLTensors
#apar_gsl_tensor, #bpar_gsl_tensor, #cartesian_coordinates_gsl_tensor, #constant_torphi_surface_gsl_tensor, #correct_3d_options, #cylindrical_coordinates_gsl_tensor, #field_gsl_tensor, #field_netcdf_name, #field_real_space_gsl_tensor, #field_real_space_gsl_tensor_2, #field_species_element, #geometric_factors_gsl_tensor, #moment_gsl_tensor, #phi_real_space_gsl_tensor
Class Method Details
.defaults_file_header ⇒ Object
128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/gs2crmod/spectrogk.rb', line 128 def self.defaults_file_header <<EOF1 ###################################################################### # Automatically generated defaults file for SpectroGK CodeRunner module# # # # This defaults file specifies a set of defaults for SpectroGK which are# # used by CodeRunner to set up and run GS2 simulations. # # # # Created #{Time.now.to_s} # # # ###################################################################### @defaults_file_description = "" EOF1 end |
Instance Method Details
#input_file_header ⇒ Object
105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 |
# File 'lib/gs2crmod/spectrogk.rb', line 105 def input_file_header <<EOF !============================================================================== ! SpectroGK INPUT FILE automatically generated by CodeRunner !============================================================================== ! ! SpectroGK is a gyrokinetic flux tube initial value turbulence code ! which can be used for fusion or astrophysical plasmas. It is explicit ! and treats velocity spectrally. ! ! ! See http://gyrokinetics.sourceforge.net ! ! CodeRunner is a framework for the automated running and analysis ! of large simulations. ! ! See http://coderunner.sourceforge.net ! by CodeRunner version #{CodeRunner::CODE_RUNNER_VERSION.to_s} ! !============================================================================== EOF end |
#spectrogk? ⇒ Boolean
54 55 56 |
# File 'lib/gs2crmod/spectrogk.rb', line 54 def spectrogk? true end |