crystalcell 0.0.1 → 0.0.2

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.
data/CHANGES CHANGED
@@ -1,13 +1,19 @@
1
1
  = crystalcell Changelog
2
2
 
3
- == Master (for 0.0.1)
3
+ == Master (for 0.0.3)
4
+
5
+ == Version 0.0.2 [2014-08-30] released
6
+ * Change cell.dump_poscar for vasp 5.
7
+ * Update dependency on other gems.
8
+
9
+ == Version 0.0.1 [2013-04-18] released
4
10
  * Change indent char from tab char to two spaces.
5
11
  * Introduce module CrystalCell as new namespace.
6
12
  * Add Cell#symmetry_operations and Cell#axis_independencies.
7
13
  They depends on spglib.
8
14
  * Getspg loading is changed.
9
15
  * Adjust to mageo-0.0.2.
10
- * Adjust to builtinextension-0.1.0
16
+ * Adjust to builtinextension-0.1.0.
11
17
 
12
18
  == Version 0.0.0
13
19
  * Initial release.
data/Gemfile CHANGED
@@ -6,13 +6,13 @@ source "http://rubygems.org"
6
6
  # Add dependencies to develop your gem here.
7
7
  # Include everything needed to run rake, tests, features, etc.
8
8
  group :development do
9
- gem "rdoc", "~> 3.12"
10
- gem "bundler", "~> 1.3.5"
11
- gem "jeweler", "~> 1.8.3"
12
- gem "simplecov", ">= 0"
13
- gem "malge", ">= 0.0.6"
14
- gem "mageo", ">= 0.0.2"
9
+ gem "rdoc", "~> 4.1.1"
10
+ gem "bundler", "~> 1.7.2"
11
+ gem "jeweler", "~> 2.0.1"
12
+ gem "simplecov", ">= 0.9.0"
13
+ gem "malge", ">= 0.0.8"
14
+ gem "mageo", ">= 0.0.3"
15
15
  gem "maset", ">= 0.0.0"
16
- gem "builtinextension", ">= 0.1.0"
16
+ gem "builtinextension", ">= 0.1.2"
17
17
  #gem "psych", ">= 0"
18
18
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -574,6 +574,9 @@ class CrystalCell::Cell
574
574
  elem_list[ elem ] = @atoms.select{ |atom| atom.element == elem }
575
575
  end
576
576
 
577
+ ##element symbols
578
+ results << " " + element_order.join(" ")
579
+
577
580
  ##numbers of element atoms
578
581
  tmp = ''
579
582
  element_order.each do |elem|
@@ -0,0 +1,40 @@
1
+ #======================================================================
2
+
3
+ # CRYSTAL DATA
4
+ # obtained from
5
+ # http://staff.aist.go.jp/nomura-k/japanese/itscgallary.htm
6
+ # Reference: M. Yashima, T. Hirose, S. Katano, Y. Suzuki, M. Kakihana,
7
+ # and M. Yoshimura, Physical Review B - Condensed Matter and Materials
8
+ # Physics, 51, 8018 (1995).
9
+
10
+ #----------------------------------------------------------------------
11
+
12
+ _pd_phase_name 'ZrO2'
13
+ _cell_length_a 5.1501(2)
14
+ _cell_length_b 5.2077(2)
15
+ _cell_length_c 5.3171(2)
16
+ _cell_angle_alpha 90
17
+ _cell_angle_beta 99.224(2)
18
+ _cell_angle_gamma 90
19
+ _symmetry_space_group_name_H-M 'P 21/c '
20
+ _symmetry_Int_Tables_number 14
21
+
22
+ loop_
23
+ _symmetry_equiv_pos_as_xyz
24
+ 'x, y, z'
25
+ '-x, -y, -z'
26
+ '-x, y+1/2, -z+1/2'
27
+ 'x, -y+1/2, z+1/2'
28
+
29
+ loop_
30
+ _atom_site_label
31
+ _atom_site_occupancy
32
+ _atom_site_fract_x
33
+ _atom_site_fract_y
34
+ _atom_site_fract_z
35
+ _atom_site_thermal_displace_type
36
+ _atom_site_B_iso_or_equiv
37
+ _atom_site_type_symbol
38
+ Zr 1 0.2746(3) 0.0407(3) 0.2078(2) Biso 0.313 Zr
39
+ O1 1 0.0705(3) 0.3327(3) 0.3447(3) Biso 0.328 O
40
+ O2 1 0.4499(3) 0.7588(3) 0.4793(3) Biso 0.151 O
data/test/test_cell.rb CHANGED
@@ -552,32 +552,35 @@ class TC_Cell < Test::Unit::TestCase
552
552
  ' 2.00000000000000 2.00000000000000 2.00000000000000',
553
553
  ' 0.00000000000000 2.00000000000000 2.00000000000000',
554
554
  ' 0.00000000000000 0.00000000000000 2.00000000000000',
555
+ ' ',
555
556
  '',
556
557
  'Direct'
557
558
  ].join("\n")
558
559
 
559
- c02_str = [
560
- 'c02',
560
+ c01_str = [
561
+ 'c01',
561
562
  '1.0',
562
563
  ' 2.00000000000000 2.00000000000000 2.00000000000000',
563
564
  ' 0.00000000000000 2.00000000000000 2.00000000000000',
564
565
  ' 0.00000000000000 0.00000000000000 2.00000000000000',
566
+ ' 0 1',
565
567
  ' 1 1',
566
568
  'Direct',
567
569
  ' 0.00000000000000 0.00000000000000 0.00000000000000',
568
- ' 0.20000000000000 0.20000000000000 0.20000000000000'
570
+ ' 0.10000000000000 0.20000000000000 0.30000000000000'
569
571
  ].join("\n")
570
572
 
571
- c01_str = [
572
- 'c01',
573
+ c02_str = [
574
+ 'c02',
573
575
  '1.0',
574
576
  ' 2.00000000000000 2.00000000000000 2.00000000000000',
575
577
  ' 0.00000000000000 2.00000000000000 2.00000000000000',
576
578
  ' 0.00000000000000 0.00000000000000 2.00000000000000',
579
+ ' Li O',
577
580
  ' 1 1',
578
581
  'Direct',
579
582
  ' 0.00000000000000 0.00000000000000 0.00000000000000',
580
- ' 0.10000000000000 0.20000000000000 0.30000000000000'
583
+ ' 0.20000000000000 0.20000000000000 0.20000000000000'
581
584
  ].join("\n")
582
585
 
583
586
  c03_str = [
@@ -586,6 +589,7 @@ class TC_Cell < Test::Unit::TestCase
586
589
  ' 2.00000000000000 2.00000000000000 2.00000000000000',
587
590
  ' 0.00000000000000 2.00000000000000 2.00000000000000',
588
591
  ' 0.00000000000000 0.00000000000000 2.00000000000000',
592
+ ' Li O',
589
593
  ' 1 1',
590
594
  'Direct',
591
595
  ' 0.00000000000000 0.00000000000000 0.00000000000000',
@@ -598,6 +602,7 @@ class TC_Cell < Test::Unit::TestCase
598
602
  ' 2.00000000000000 2.00000000000000 2.00000000000000',
599
603
  ' 0.00000000000000 2.00000000000000 2.00000000000000',
600
604
  ' 0.00000000000000 0.00000000000000 2.00000000000000',
605
+ ' Li O',
601
606
  ' 2 1',
602
607
  'Direct',
603
608
  ' 0.00000000000000 0.00000000000000 0.00000000000000',
@@ -611,6 +616,7 @@ class TC_Cell < Test::Unit::TestCase
611
616
  ' 2.00000000000000 2.00000000000000 2.00000000000000',
612
617
  ' 0.00000000000000 2.00000000000000 2.00000000000000',
613
618
  ' 0.00000000000000 0.00000000000000 2.00000000000000',
619
+ ' Li',
614
620
  ' 1',
615
621
  'Direct',
616
622
  ' 0.00000000000000 0.00000000000000 0.00000000000000'
@@ -622,6 +628,7 @@ class TC_Cell < Test::Unit::TestCase
622
628
  ' 2.00000000000000 2.00000000000000 2.00000000000000',
623
629
  ' 0.00000000000000 2.00000000000000 2.00000000000000',
624
630
  ' 0.00000000000000 0.00000000000000 2.00000000000000',
631
+ ' Li O',
625
632
  ' 1 1',
626
633
  'Selective dynamics',
627
634
  'Direct',
@@ -663,13 +670,13 @@ class TC_Cell < Test::Unit::TestCase
663
670
  end
664
671
 
665
672
  StringIO.new do |io|
666
- @c02.dump_poscar( [ 'Li', 'O' ], io )
667
- assert_equal( c02, io.read )
673
+ @c01.dump_poscar( [ 0, 1 ], io )
674
+ assert_equal( c01, io.read )
668
675
  end
669
676
 
670
677
  StringIO.new do |io|
671
- @c01.dump_poscar( [ 0, 1 ], io )
672
- assert_equal( c01, io.read )
678
+ @c02.dump_poscar( [ 'Li', 'O' ], io )
679
+ assert_equal( c02, io.read )
673
680
  end
674
681
 
675
682
  StringIO.new do |io|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crystalcell
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,77 +9,107 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-18 00:00:00.000000000 Z
12
+ date: 2014-08-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rdoc
16
- requirement: &80677790 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: '3.12'
21
+ version: 4.1.1
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *80677790
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 4.1.1
25
30
  - !ruby/object:Gem::Dependency
26
31
  name: bundler
27
- requirement: &80676850 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
28
33
  none: false
29
34
  requirements:
30
35
  - - ~>
31
36
  - !ruby/object:Gem::Version
32
- version: 1.3.5
37
+ version: 1.7.2
33
38
  type: :development
34
39
  prerelease: false
35
- version_requirements: *80676850
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.7.2
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: jeweler
38
- requirement: &80676610 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ~>
42
52
  - !ruby/object:Gem::Version
43
- version: 1.8.3
53
+ version: 2.0.1
44
54
  type: :development
45
55
  prerelease: false
46
- version_requirements: *80676610
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: 2.0.1
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: simplecov
49
- requirement: &80676370 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
53
68
  - !ruby/object:Gem::Version
54
- version: '0'
69
+ version: 0.9.0
55
70
  type: :development
56
71
  prerelease: false
57
- version_requirements: *80676370
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: 0.9.0
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: malge
60
- requirement: &80676130 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ! '>='
64
84
  - !ruby/object:Gem::Version
65
- version: 0.0.6
85
+ version: 0.0.8
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *80676130
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: 0.0.8
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: mageo
71
- requirement: &80675560 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
99
  - - ! '>='
75
100
  - !ruby/object:Gem::Version
76
- version: 0.0.2
101
+ version: 0.0.3
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *80675560
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.0.3
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: maset
82
- requirement: &80674860 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
115
  - - ! '>='
@@ -87,18 +117,28 @@ dependencies:
87
117
  version: 0.0.0
88
118
  type: :development
89
119
  prerelease: false
90
- version_requirements: *80674860
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 0.0.0
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: builtinextension
93
- requirement: &80674320 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ! '>='
97
132
  - !ruby/object:Gem::Version
98
- version: 0.1.0
133
+ version: 0.1.2
99
134
  type: :development
100
135
  prerelease: false
101
- version_requirements: *80674320
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: 0.1.2
102
142
  description: ! "This gem provides Cell, LatticeAxes, Atom classes, and so on.\n And
103
143
  this provides simple treatment of a periodic boundary condition.\n "
104
144
  email: ippei94da@gmail.com
@@ -115,13 +155,13 @@ files:
115
155
  - README.rdoc
116
156
  - Rakefile
117
157
  - VERSION
118
- - crystalcell.gemspec
119
158
  - lib/crystalcell.rb
120
159
  - lib/crystalcell/atom.rb
121
160
  - lib/crystalcell/cell.rb
122
161
  - lib/crystalcell/element.rb
123
162
  - lib/crystalcell/latticeaxes.rb
124
163
  - lib/crystalcell/periodiccell.rb
164
+ - test/cif/ZrO2-25C.cif
125
165
  - test/helper.rb
126
166
  - test/test_atom.rb
127
167
  - test/test_cell.rb
@@ -143,7 +183,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
143
183
  version: '0'
144
184
  segments:
145
185
  - 0
146
- hash: -251979683
186
+ hash: -2738925869661308590
147
187
  required_rubygems_version: !ruby/object:Gem::Requirement
148
188
  none: false
149
189
  requirements:
@@ -152,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
192
  version: '0'
153
193
  requirements: []
154
194
  rubyforge_project:
155
- rubygems_version: 1.8.11
195
+ rubygems_version: 1.8.23
156
196
  signing_key:
157
197
  specification_version: 3
158
198
  summary: Classes around a cell in crystallography
data/crystalcell.gemspec DELETED
@@ -1,80 +0,0 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
- # -*- encoding: utf-8 -*-
5
-
6
- Gem::Specification.new do |s|
7
- s.name = "crystalcell"
8
- s.version = "0.0.1"
9
-
10
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["ippei94da"]
12
- s.date = "2013-04-18"
13
- s.description = "This gem provides Cell, LatticeAxes, Atom classes, and so on.\n And this provides simple treatment of a periodic boundary condition.\n "
14
- s.email = "ippei94da@gmail.com"
15
- s.extra_rdoc_files = [
16
- "LICENSE.txt",
17
- "README.rdoc"
18
- ]
19
- s.files = [
20
- ".document",
21
- "CHANGES",
22
- "Gemfile",
23
- "LICENSE.txt",
24
- "README.rdoc",
25
- "Rakefile",
26
- "VERSION",
27
- "crystalcell.gemspec",
28
- "lib/crystalcell.rb",
29
- "lib/crystalcell/atom.rb",
30
- "lib/crystalcell/cell.rb",
31
- "lib/crystalcell/element.rb",
32
- "lib/crystalcell/latticeaxes.rb",
33
- "lib/crystalcell/periodiccell.rb",
34
- "test/helper.rb",
35
- "test/test_atom.rb",
36
- "test/test_cell.rb",
37
- "test/test_element.rb",
38
- "test/test_latticeaxes.rb",
39
- "test/test_periodiccell.rb"
40
- ]
41
- s.homepage = "http://github.com/ippei94da/crystalcell"
42
- s.licenses = ["MIT"]
43
- s.require_paths = ["lib"]
44
- s.rubygems_version = "1.8.11"
45
- s.summary = "Classes around a cell in crystallography"
46
-
47
- if s.respond_to? :specification_version then
48
- s.specification_version = 3
49
-
50
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
- s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
52
- s.add_development_dependency(%q<bundler>, ["~> 1.3.5"])
53
- s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
54
- s.add_development_dependency(%q<simplecov>, [">= 0"])
55
- s.add_development_dependency(%q<malge>, [">= 0.0.6"])
56
- s.add_development_dependency(%q<mageo>, [">= 0.0.2"])
57
- s.add_development_dependency(%q<maset>, [">= 0.0.0"])
58
- s.add_development_dependency(%q<builtinextension>, [">= 0.1.0"])
59
- else
60
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
61
- s.add_dependency(%q<bundler>, ["~> 1.3.5"])
62
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
63
- s.add_dependency(%q<simplecov>, [">= 0"])
64
- s.add_dependency(%q<malge>, [">= 0.0.6"])
65
- s.add_dependency(%q<mageo>, [">= 0.0.2"])
66
- s.add_dependency(%q<maset>, [">= 0.0.0"])
67
- s.add_dependency(%q<builtinextension>, [">= 0.1.0"])
68
- end
69
- else
70
- s.add_dependency(%q<rdoc>, ["~> 3.12"])
71
- s.add_dependency(%q<bundler>, ["~> 1.3.5"])
72
- s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
73
- s.add_dependency(%q<simplecov>, [">= 0"])
74
- s.add_dependency(%q<malge>, [">= 0.0.6"])
75
- s.add_dependency(%q<mageo>, [">= 0.0.2"])
76
- s.add_dependency(%q<maset>, [">= 0.0.0"])
77
- s.add_dependency(%q<builtinextension>, [">= 0.1.0"])
78
- end
79
- end
80
-