trinitycrmod 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16211ebc1a757304ac250cb4a34b7bf71653c309
4
- data.tar.gz: f6fc555a64872639ddf3f24fd3f31d9ce5aa6ce8
3
+ metadata.gz: 61ffe3a14f6dddf50dd5654f37ee160dba6e74bc
4
+ data.tar.gz: 9b02ff93eb5db94888d8d8650dcb3c7cbeec4a38
5
5
  SHA512:
6
- metadata.gz: 452495ee189e29d44751d59644c3cdc835078a6e2cd323e018fe0b441ca9cc59d5ce8062c0444f71080ba62ef3acb24b6a77a9a777d291aed12f1696cf4e20fd
7
- data.tar.gz: d1009653a4f0bc66776d074691e21c1567ac6fdf1762c3dadcdbd5a8505ebcb5962f4011054b09ba71900b12ea6bfeb71ed979b6de8a539c85cb5e049c2cb014
6
+ metadata.gz: 3c40a518eb0d83fee4edabf7a9bbf198354ca6b0bd870909fb01b0c78b8f0be83e2ffe5deeb81ed4e56fe52c491eea91414c705fd67f22b0d6ac5952b8f89004
7
+ data.tar.gz: 04f6aa8929e859931e921666da33c153f05c71d473a1199e6a35ad877b66894412fb8642e00f54fa03e44126570eb440b858cf5a6d179d2b0f3a9b1112797711
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.0
1
+ 0.4.1
@@ -4,6 +4,10 @@ class CodeRunner::Trinity
4
4
  def nt_prof_graphkit(options)
5
5
  prof_graphkit(options.dup.absorb({outfile: :nt}))
6
6
  end
7
+ # Graphs plotting quantities from the '.nt' file vs rho for a given t_index
8
+ def pwr_prof_graphkit(options)
9
+ prof_graphkit(options.dup.absorb({outfile: :pwr, radius_match: /2.*rad/}))
10
+ end
7
11
  # Graphs plotting quantities from the '.fluxes' file vs rho for a given t_index
8
12
  def fluxes_prof_graphkit(options)
9
13
  prof_graphkit(options.absorb({outfile: :fluxes, exclude_perturbed_fluxes: true}))
@@ -25,7 +29,7 @@ class CodeRunner::Trinity
25
29
  t_indices = [it]
26
30
  end
27
31
  array = t_indices.map{|i| get_2d_array_float(options[:outfile], options[:header], /1.*time/)[i].to_gslv}.mean.to_a
28
- rho_array = t_indices.map{|i| get_2d_array_float(options[:outfile], /2.*radius/, /1.*time/)[i].to_gslv}.mean.to_a
32
+ rho_array = t_indices.map{|i| get_2d_array_float(options[:outfile], options[:radius_match]||/2.*radius/, /1.*time/)[i].to_gslv}.mean.to_a
29
33
  if options[:exclude_perturbed_fluxes]
30
34
  s = array.size
31
35
  array = array.slice(0...nrad-1)
@@ -14,6 +14,10 @@ class CodeRunner
14
14
  # File ending in '.fluxes': contains heat flux, momentum flux etc.
15
15
  def fluxes_outfile
16
16
  TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.fluxes', true, /\S+/, /(?:\#\s+)?\d:.*?(?=\d:|\Z)/)
17
+ end
18
+ # File ending in '.pwr': contains sources, alpha heating etc
19
+ def pwr_outfile
20
+ TextDataTools::Column::DataFile.new(@directory + '/' + @run_name + '.pwr', true, /\S+/, /(?:\#\s+)?\b\d+:.*?(?=\d:|\Z)/)
17
21
  end
18
22
  # File ending in '.nt': contains profiles: Ti, Te etc.
19
23
  def nt_outfile
data/trinitycrmod.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: trinitycrmod 0.4.0 ruby lib
5
+ # stub: trinitycrmod 0.4.1 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "trinitycrmod"
9
- s.version = "0.4.0"
9
+ s.version = "0.4.1"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Edmund Highcock"]
14
- s.date = "2014-03-15"
14
+ s.date = "2014-03-16"
15
15
  s.description = "This module allows Trinity, the Multiscale Gyrokinetic Turbulent Transport solver for Fusion Reactors, to harness the power of CodeRunner, a framework for the automated running and analysis of simulations."
16
16
  s.email = "edmundhighcock@sourceforge.net"
17
17
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trinitycrmod
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-15 00:00:00.000000000 Z
11
+ date: 2014-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coderunner