trinitycrmod 0.8.12 → 0.8.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/trinitycrmod/namelists.rb +46 -16
- data/lib/trinitycrmod/trinity.rb +19 -0
- data/trinitycrmod.gemspec +43 -43
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 497316f4c75da8ef44ffa91af968a16344458432
|
4
|
+
data.tar.gz: 8d18a794422b46b5d960cd4274084efcf9262fc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 789ae9489af29002843a28a7dfdf074a83d192340c60b4425c9025fe7b3d30e1f8efbfd5a75ec9a71035efbf1b7f6793c84805c2be9d2290ce1ad09f7c4cd814
|
7
|
+
data.tar.gz: 9b8380f71c2045f4b43dfbc35828dc10d39d4a7de46839a460d3c17143a980cd0c609d639ccb6756bf650fd888ff9dacb14f646ff4cf202cb69e3377177097af
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.13
|
@@ -582,35 +582,38 @@
|
|
582
582
|
:autoscanned_defaults=>[-1.0]},
|
583
583
|
:flux_reset=>
|
584
584
|
{:should_include=>"true",
|
585
|
-
:description=>
|
586
|
-
|
585
|
+
:description=>
|
586
|
+
" If redoing a timestep, recalculate fluxes for 1st iteration",
|
587
|
+
:help=>" If redoing a timestep, recalculate fluxes for 1st iteration",
|
587
588
|
:code_name=>:flux_reset,
|
588
589
|
:must_pass=>
|
589
590
|
[{:test=>"kind_of? String and FORTRAN_BOOLS.include? self",
|
590
591
|
:explanation=>
|
591
592
|
"This variable must be a fortran boolean. (In Ruby this is represented as a string: e.g. '.true.')"}],
|
592
|
-
:type=>:Fortran_Bool
|
593
|
+
:type=>:Fortran_Bool,
|
594
|
+
:autoscanned_defaults=>[".true."]},
|
593
595
|
:deltadj=>
|
594
596
|
{:should_include=>"true",
|
595
|
-
:description=>
|
596
|
-
|
597
|
-
:help=>"Factor by which to decrease the timestep when redoing step.",
|
597
|
+
:description=>" If the iteration fails, reduce timestep by deltadj",
|
598
|
+
:help=>" If the iteration fails, reduce timestep by deltadj",
|
598
599
|
:code_name=>:deltadj,
|
599
600
|
:must_pass=>
|
600
601
|
[{:test=>"kind_of? Numeric",
|
601
602
|
:explanation=>
|
602
603
|
"This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
|
603
|
-
:type=>:Float
|
604
|
+
:type=>:Float,
|
605
|
+
:autoscanned_defaults=>[4.0]},
|
604
606
|
:avail_cpu_time=>
|
605
607
|
{:should_include=>"true",
|
606
|
-
:description=>"
|
607
|
-
:help=>"
|
608
|
+
:description=>" Number of seconds of wall clock time available",
|
609
|
+
:help=>" Number of seconds of wall clock time available",
|
608
610
|
:code_name=>:avail_cpu_time,
|
609
611
|
:must_pass=>
|
610
612
|
[{:test=>"kind_of? Numeric",
|
611
613
|
:explanation=>
|
612
614
|
"This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
|
613
|
-
:type=>:Float
|
615
|
+
:type=>:Float,
|
616
|
+
:autoscanned_defaults=>[]}}},
|
614
617
|
:fluxes=>
|
615
618
|
{:description=>"",
|
616
619
|
:should_include=>"true",
|
@@ -1108,23 +1111,50 @@
|
|
1108
1111
|
:autoscanned_defaults=>[]},
|
1109
1112
|
:flux_convergetol=>
|
1110
1113
|
{:should_include=>"true",
|
1111
|
-
:description=>
|
1112
|
-
|
1114
|
+
:description=>
|
1115
|
+
" If flux_convergetol > 0, for nonlinear flux models repeatedly call get_fluxes until all radii are converged within flux_convergetol. Do not set too low as fluxes are noisy",
|
1116
|
+
:help=>
|
1117
|
+
" If flux_convergetol > 0, for nonlinear flux models repeatedly call get_fluxes until all radii are converged within flux_convergetol. Do not set too low as fluxes are noisy",
|
1113
1118
|
:code_name=>:flux_convergetol,
|
1114
1119
|
:must_pass=>
|
1115
1120
|
[{:test=>"kind_of? Numeric",
|
1116
1121
|
:explanation=>
|
1117
1122
|
"This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
|
1118
|
-
:type=>:Float
|
1123
|
+
:type=>:Float,
|
1124
|
+
:autoscanned_defaults=>[0.5]},
|
1119
1125
|
:dprim_option=>
|
1120
1126
|
{:should_include=>"true",
|
1121
|
-
:description=>
|
1122
|
-
|
1127
|
+
:description=>
|
1128
|
+
" How is the delta gradient calculated. 'constant', 'proportional', 'propabs'",
|
1129
|
+
:help=>
|
1130
|
+
" How is the delta gradient calculated. 'constant', 'proportional', 'propabs'",
|
1123
1131
|
:code_name=>:dprim_option,
|
1124
1132
|
:must_pass=>
|
1125
1133
|
[{:test=>"kind_of? String",
|
1126
1134
|
:explanation=>"This variable must be a string."}],
|
1127
|
-
:type=>:String
|
1135
|
+
:type=>:String,
|
1136
|
+
:autoscanned_defaults=>["constant"]},
|
1137
|
+
:damping=>
|
1138
|
+
{:should_include=>"true",
|
1139
|
+
:description=>" If > 0 damp grid scale oscillations in the profiles",
|
1140
|
+
:help=>" If > 0 damp grid scale oscillations in the profiles",
|
1141
|
+
:code_name=>:damping,
|
1142
|
+
:must_pass=>
|
1143
|
+
[{:test=>"kind_of? Numeric",
|
1144
|
+
:explanation=>
|
1145
|
+
"This variable must be a floating point number (an integer is also acceptable: it will be converted into a floating point number)."}],
|
1146
|
+
:type=>:Float,
|
1147
|
+
:autoscanned_defaults=>[1.0]},
|
1148
|
+
:neo_option=>
|
1149
|
+
{:should_include=>"true",
|
1150
|
+
:description=>" Choice for neoclassical fluxes: 'analytic', 'neo'",
|
1151
|
+
:help=>" Choice for neoclassical fluxes: 'analytic', 'neo'",
|
1152
|
+
:code_name=>:neo_option,
|
1153
|
+
:must_pass=>
|
1154
|
+
[{:test=>"kind_of? String",
|
1155
|
+
:explanation=>"This variable must be a string."}],
|
1156
|
+
:type=>:String,
|
1157
|
+
:autoscanned_defaults=>["analytic"]}}},
|
1128
1158
|
:init=>
|
1129
1159
|
{:description=>"",
|
1130
1160
|
:should_include=>"true",
|
data/lib/trinitycrmod/trinity.rb
CHANGED
@@ -277,6 +277,25 @@ class CodeRunner
|
|
277
277
|
self
|
278
278
|
end
|
279
279
|
|
280
|
+
|
281
|
+
def confinement_time
|
282
|
+
area = new_netcdf_file.var('area_grid').get('start' => [0,0], 'end'=> [-1,0])[true,0].to_a.to_gslv
|
283
|
+
grho = new_netcdf_file.var('grho_grid').get('start' => [0,0], 'end'=> [-1,0])[true,0].to_a.to_gslv
|
284
|
+
pressure = new_netcdf_file.var('pres_grid').get('start' => [0,0,0,-1], 'end' => [-1,-1,0,-1])[true,true,0,0].to_a
|
285
|
+
#pressure = pressure.map{|arr| arr.to_gslv}.sum
|
286
|
+
rad_in = @rad_out/(2.0*@nrad.to_f-1)
|
287
|
+
drad = (@rad_out - rad_in) / (@nrad.to_f - 1)
|
288
|
+
if @evolve_temperature.fortran_true?
|
289
|
+
if @te_equal_ti.fortran_true?
|
290
|
+
if @equal_ion_temps.fortran_true?
|
291
|
+
stored_energy = area.subvector(@nrad-1)*pressure[1].to_gslv.subvector(@nrad-1)*grho.subvector(@nrad-1)*drad
|
292
|
+
stored_energy = stored_energy.sum*1e3*1.6e-19*1e20
|
293
|
+
power = @i_powerin_1*1e6
|
294
|
+
return stored_energy/power
|
295
|
+
end
|
296
|
+
end
|
297
|
+
end
|
298
|
+
end
|
280
299
|
# Override CodeRunner::Run method to deal with flux_pars properly
|
281
300
|
# when generating run_name
|
282
301
|
def generate_run_name
|
data/trinitycrmod.gemspec
CHANGED
@@ -2,18 +2,18 @@
|
|
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.8.
|
5
|
+
# stub: trinitycrmod 0.8.13 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
|
-
s.name = "trinitycrmod"
|
9
|
-
s.version = "0.8.
|
8
|
+
s.name = "trinitycrmod".freeze
|
9
|
+
s.version = "0.8.13"
|
10
10
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["Edmund Highcock"]
|
14
|
-
s.date = "
|
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
|
-
s.email = "edmundhighcock@sourceforge.net"
|
11
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
|
+
s.require_paths = ["lib".freeze]
|
13
|
+
s.authors = ["Edmund Highcock".freeze]
|
14
|
+
s.date = "2017-01-30"
|
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.".freeze
|
16
|
+
s.email = "edmundhighcock@sourceforge.net".freeze
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE.txt",
|
19
19
|
"README.rdoc"
|
@@ -43,48 +43,48 @@ Gem::Specification.new do |s|
|
|
43
43
|
"sync_variables/sync_variables.rb",
|
44
44
|
"trinitycrmod.gemspec"
|
45
45
|
]
|
46
|
-
s.homepage = "http://github.com/edmundhighcock/trinitycrmod"
|
47
|
-
s.licenses = ["GPLv3"]
|
48
|
-
s.rubygems_version = "2.
|
49
|
-
s.summary = "CodeRunner module for the Trinity simulation software."
|
46
|
+
s.homepage = "http://github.com/edmundhighcock/trinitycrmod".freeze
|
47
|
+
s.licenses = ["GPLv3".freeze]
|
48
|
+
s.rubygems_version = "2.6.8".freeze
|
49
|
+
s.summary = "CodeRunner module for the Trinity simulation software.".freeze
|
50
50
|
|
51
51
|
if s.respond_to? :specification_version then
|
52
52
|
s.specification_version = 4
|
53
53
|
|
54
54
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
55
|
-
s.add_runtime_dependency(%q<coderunner
|
56
|
-
s.add_runtime_dependency(%q<text-data-tools
|
57
|
-
s.add_runtime_dependency(%q<gs2crmod
|
58
|
-
s.add_runtime_dependency(%q<gryfxcrmod
|
59
|
-
s.add_runtime_dependency(%q<cheasecrmod
|
60
|
-
s.add_runtime_dependency(%q<ecomcrmod
|
61
|
-
s.add_development_dependency(%q<shoulda
|
62
|
-
s.add_development_dependency(%q<rdoc
|
63
|
-
s.add_development_dependency(%q<bundler
|
64
|
-
s.add_development_dependency(%q<jeweler
|
55
|
+
s.add_runtime_dependency(%q<coderunner>.freeze, [">= 0.16.10"])
|
56
|
+
s.add_runtime_dependency(%q<text-data-tools>.freeze, [">= 1.1.6"])
|
57
|
+
s.add_runtime_dependency(%q<gs2crmod>.freeze, [">= 0.11.76"])
|
58
|
+
s.add_runtime_dependency(%q<gryfxcrmod>.freeze, [">= 0.1.9"])
|
59
|
+
s.add_runtime_dependency(%q<cheasecrmod>.freeze, [">= 0.1.0"])
|
60
|
+
s.add_runtime_dependency(%q<ecomcrmod>.freeze, [">= 0.1.0"])
|
61
|
+
s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
|
62
|
+
s.add_development_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
63
|
+
s.add_development_dependency(%q<bundler>.freeze, ["> 1.0.0"])
|
64
|
+
s.add_development_dependency(%q<jeweler>.freeze, [">= 2.00"])
|
65
65
|
else
|
66
|
-
s.add_dependency(%q<coderunner
|
67
|
-
s.add_dependency(%q<text-data-tools
|
68
|
-
s.add_dependency(%q<gs2crmod
|
69
|
-
s.add_dependency(%q<gryfxcrmod
|
70
|
-
s.add_dependency(%q<cheasecrmod
|
71
|
-
s.add_dependency(%q<ecomcrmod
|
72
|
-
s.add_dependency(%q<shoulda
|
73
|
-
s.add_dependency(%q<rdoc
|
74
|
-
s.add_dependency(%q<bundler
|
75
|
-
s.add_dependency(%q<jeweler
|
66
|
+
s.add_dependency(%q<coderunner>.freeze, [">= 0.16.10"])
|
67
|
+
s.add_dependency(%q<text-data-tools>.freeze, [">= 1.1.6"])
|
68
|
+
s.add_dependency(%q<gs2crmod>.freeze, [">= 0.11.76"])
|
69
|
+
s.add_dependency(%q<gryfxcrmod>.freeze, [">= 0.1.9"])
|
70
|
+
s.add_dependency(%q<cheasecrmod>.freeze, [">= 0.1.0"])
|
71
|
+
s.add_dependency(%q<ecomcrmod>.freeze, [">= 0.1.0"])
|
72
|
+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
73
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
74
|
+
s.add_dependency(%q<bundler>.freeze, ["> 1.0.0"])
|
75
|
+
s.add_dependency(%q<jeweler>.freeze, [">= 2.00"])
|
76
76
|
end
|
77
77
|
else
|
78
|
-
s.add_dependency(%q<coderunner
|
79
|
-
s.add_dependency(%q<text-data-tools
|
80
|
-
s.add_dependency(%q<gs2crmod
|
81
|
-
s.add_dependency(%q<gryfxcrmod
|
82
|
-
s.add_dependency(%q<cheasecrmod
|
83
|
-
s.add_dependency(%q<ecomcrmod
|
84
|
-
s.add_dependency(%q<shoulda
|
85
|
-
s.add_dependency(%q<rdoc
|
86
|
-
s.add_dependency(%q<bundler
|
87
|
-
s.add_dependency(%q<jeweler
|
78
|
+
s.add_dependency(%q<coderunner>.freeze, [">= 0.16.10"])
|
79
|
+
s.add_dependency(%q<text-data-tools>.freeze, [">= 1.1.6"])
|
80
|
+
s.add_dependency(%q<gs2crmod>.freeze, [">= 0.11.76"])
|
81
|
+
s.add_dependency(%q<gryfxcrmod>.freeze, [">= 0.1.9"])
|
82
|
+
s.add_dependency(%q<cheasecrmod>.freeze, [">= 0.1.0"])
|
83
|
+
s.add_dependency(%q<ecomcrmod>.freeze, [">= 0.1.0"])
|
84
|
+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
85
|
+
s.add_dependency(%q<rdoc>.freeze, ["~> 3.12"])
|
86
|
+
s.add_dependency(%q<bundler>.freeze, ["> 1.0.0"])
|
87
|
+
s.add_dependency(%q<jeweler>.freeze, [">= 2.00"])
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
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.8.
|
4
|
+
version: 0.8.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Edmund Highcock
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderunner
|
@@ -203,7 +203,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
203
203
|
version: '0'
|
204
204
|
requirements: []
|
205
205
|
rubyforge_project:
|
206
|
-
rubygems_version: 2.
|
206
|
+
rubygems_version: 2.6.8
|
207
207
|
signing_key:
|
208
208
|
specification_version: 4
|
209
209
|
summary: CodeRunner module for the Trinity simulation software.
|