Module: CodeRunner::Trinity::OutputFiles
- Included in:
- CodeRunner::Trinity
- Defined in:
- lib/trinitycrmod/output_files.rb
Overview
for TextDataTools for more information.
Instance Method Summary collapse
-
#fluxes_outfile ⇒ Object
File ending in ‘.fluxes’: contains heat flux, momentum flux etc.
-
#geo_outfile ⇒ Object
File ending in ‘.geo’: contains geometric information.
-
#info_outfile ⇒ Object
File ending in ‘.info’: contains global results.
-
#nt_outfile ⇒ Object
File ending in ‘.nt’: contains profiles: Ti, Te etc.
-
#pbalance_outfile ⇒ Object
File ending in ‘.pbalance’: contains fluxes and sources.
-
#pwr_outfile ⇒ Object
File ending in ‘.pwr’: contains sources, alpha heating etc.
- #time_outfile ⇒ Object
- #view_outfiles ⇒ Object
Instance Method Details
#fluxes_outfile ⇒ Object
File ending in ‘.fluxes’: contains heat flux, momentum flux etc.
15 16 17 |
# File 'lib/trinitycrmod/output_files.rb', line 15 def fluxes_outfile TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.fluxes', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d:|\Z)/) end |
#geo_outfile ⇒ Object
File ending in ‘.geo’: contains geometric information
27 28 29 |
# File 'lib/trinitycrmod/output_files.rb', line 27 def geo_outfile TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.geo', true, /\S+/, /(?:\#\s+)?\d+:\D*?(?=\d:|\d\d:|\Z)/) end |
#info_outfile ⇒ Object
File ending in ‘.info’: contains global results.
11 12 13 |
# File 'lib/trinitycrmod/output_files.rb', line 11 def info_outfile TextDataTools::Named::DataFile.new(@directory + '/' + @run_name + '.info', ':') end |
#nt_outfile ⇒ Object
File ending in ‘.nt’: contains profiles: Ti, Te etc.
23 24 25 |
# File 'lib/trinitycrmod/output_files.rb', line 23 def nt_outfile TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.nt', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d:|\Z)/) end |
#pbalance_outfile ⇒ Object
File ending in ‘.pbalance’: contains fluxes and sources
31 32 33 |
# File 'lib/trinitycrmod/output_files.rb', line 31 def pbalance_outfile TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.pbalance', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d:|\Z)/) end |
#pwr_outfile ⇒ Object
File ending in ‘.pwr’: contains sources, alpha heating etc
19 20 21 |
# File 'lib/trinitycrmod/output_files.rb', line 19 def pwr_outfile TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.pwr', true, /\S+/, /(?:\#\s+)?\b\d+:.*?(?=\d:|\Z)/) end |
#time_outfile ⇒ Object
34 35 36 |
# File 'lib/trinitycrmod/output_files.rb', line 34 def time_outfile TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.time', true, /\S+/, /\w+/) end |
#view_outfiles ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/trinitycrmod/output_files.rb', line 37 def view_outfiles case ENV['EDITOR'] when /vim/i system "#{ENV['EDITOR']} -Rp '+tabdo set nu|set nowrap' #{info_outfile} #{nt_outfile} #{fluxes_outfile}" else system "#{ENV['EDITOR']} #{info_outfile} #{nt_outfile} #{fluxes_outfile}" end end |