eulim 0.0.16 → 0.0.17
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/eulim.gemspec +0 -1
- data/lib/{class.rb → class_overrides.rb} +0 -0
- data/lib/eulim.rb +3 -16
- data/lib/eulim/chemical.rb +1 -0
- data/lib/eulim/chemical/reactors.rb +2 -3
- data/lib/eulim/chemical/reactors/batch_reactor.rb +2 -0
- data/lib/eulim/chemical/reactors/continuous_stirred_tank_reactor.rb +2 -0
- data/lib/eulim/chemical/reactors/plug_flow_reactor.rb +2 -0
- data/lib/eulim/chemical/reactors/reactor.rb +2 -2
- data/lib/eulim/chemistry.rb +2 -0
- data/lib/eulim/chemistry/reaction.rb +0 -2
- data/lib/eulim/version.rb +1 -1
- data/lib/{matrix.rb → matrix_overrides.rb} +2 -0
- data/lib/{string.rb → string_overrides.rb} +0 -0
- metadata +5 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d429e7b2795e1643cbc8fb128aefcb8600037d5f
|
4
|
+
data.tar.gz: 4c5d0343a1063f0eae2d2eefe2e2817425646392
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c20ba44693905bc77f13ed1ba1ddf4acb9206e95d1be124b5c515aae962a98d02cc0d4ff182cd518daf468024b42a21b36dd840e584fa06a8c2f087a32555097
|
7
|
+
data.tar.gz: 03d34cf308ec8d5474d7ce64579ba48af491852c042714e4fae38dbe0b912b363160c02741d73875bfcd6da5b78cb95d742a9aea4008c2187c181d42d2ad6365
|
data/eulim.gemspec
CHANGED
File without changes
|
data/lib/eulim.rb
CHANGED
@@ -1,25 +1,12 @@
|
|
1
|
-
|
1
|
+
require_relative 'matrix_overrides'
|
2
|
+
require_relative 'string_overrides'
|
3
|
+
require_relative 'class_overrides'
|
2
4
|
require 'unitwise'
|
3
5
|
|
4
|
-
require_rel '../lib'
|
5
|
-
|
6
6
|
# Root module. Everything in the gem goes inside this
|
7
7
|
module Eulim
|
8
8
|
end
|
9
9
|
|
10
|
-
Ch = Eulim::Chemistry
|
11
|
-
Elem = Ch::Element
|
12
|
-
Comp = Ch::Compound
|
13
|
-
Rxn = Ch::Reaction
|
14
|
-
Sub = Ch::Substance
|
15
|
-
|
16
|
-
Cl = Eulim::Chemical
|
17
|
-
Rcts = Cl::Reactors
|
18
|
-
Rct = Rcts::Reactor
|
19
|
-
Br = Rcts::Batch
|
20
|
-
Cstr = Rcts::CSTR
|
21
|
-
Pfr = Rcts::PFR
|
22
|
-
|
23
10
|
def Unitwise(*args)
|
24
11
|
regex = /(\d+)(.*)/
|
25
12
|
args = args.first.scan(regex).first.collect(&:strip) if args.count == 1
|
data/lib/eulim/chemical.rb
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
+
Dir['./lib/eulim/chemical/reactors/*.rb'].each { |file| require file }
|
2
|
+
|
1
3
|
module Eulim
|
2
4
|
module Chemical
|
3
5
|
# This module contains knowledge of chemical reactors
|
4
6
|
# Ex: Batch, CSTR, PFR
|
5
7
|
module Reactors
|
6
|
-
CSTR = ContinuousStirredTankReactor
|
7
|
-
Batch = BatchReactor
|
8
|
-
PFR = PlugFlowReactor
|
9
8
|
end
|
10
9
|
end
|
11
10
|
end
|
@@ -48,7 +48,7 @@ module Eulim
|
|
48
48
|
end
|
49
49
|
|
50
50
|
def feed_if_valid(f)
|
51
|
-
raise ArgumentError, 'Invalid substance' if f[:substance].class !=
|
51
|
+
raise ArgumentError, 'Invalid substance' if f[:substance].class != Eulim::Chemistry::Substance
|
52
52
|
begin
|
53
53
|
f[:quantity] = Unitwise f[:quantity]
|
54
54
|
rescue
|
@@ -69,7 +69,7 @@ module Eulim
|
|
69
69
|
# r.species[:reactants].keys &
|
70
70
|
# @input[:substance].species.keys
|
71
71
|
# ).empty?
|
72
|
-
return r if r.class ==
|
72
|
+
return r if r.class == Eulim::Chemistry::Reaction && r.is_valid
|
73
73
|
raise ArgumentError, 'Invalid reaction argument'
|
74
74
|
end
|
75
75
|
end
|
data/lib/eulim/chemistry.rb
CHANGED
data/lib/eulim/version.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eulim
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Syed Fazil Basheer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-07-
|
12
|
+
date: 2017-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -95,20 +95,6 @@ dependencies:
|
|
95
95
|
- - "~>"
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: 0.6.4
|
98
|
-
- !ruby/object:Gem::Dependency
|
99
|
-
name: require_all
|
100
|
-
requirement: !ruby/object:Gem::Requirement
|
101
|
-
requirements:
|
102
|
-
- - "~>"
|
103
|
-
- !ruby/object:Gem::Version
|
104
|
-
version: 1.4.0
|
105
|
-
type: :runtime
|
106
|
-
prerelease: false
|
107
|
-
version_requirements: !ruby/object:Gem::Requirement
|
108
|
-
requirements:
|
109
|
-
- - "~>"
|
110
|
-
- !ruby/object:Gem::Version
|
111
|
-
version: 1.4.0
|
112
98
|
description: A gem for scientific data.
|
113
99
|
email:
|
114
100
|
- fazil.basheer@quester.xyz
|
@@ -129,7 +115,7 @@ files:
|
|
129
115
|
- bin/console
|
130
116
|
- bin/setup
|
131
117
|
- eulim.gemspec
|
132
|
-
- lib/
|
118
|
+
- lib/class_overrides.rb
|
133
119
|
- lib/eulim.rb
|
134
120
|
- lib/eulim/chemical.rb
|
135
121
|
- lib/eulim/chemical/reactors.rb
|
@@ -147,8 +133,8 @@ files:
|
|
147
133
|
- lib/eulim/structures/pipe.rb
|
148
134
|
- lib/eulim/structures/structure.rb
|
149
135
|
- lib/eulim/version.rb
|
150
|
-
- lib/
|
151
|
-
- lib/
|
136
|
+
- lib/matrix_overrides.rb
|
137
|
+
- lib/string_overrides.rb
|
152
138
|
homepage: https://github.com/syedfazilbasheer-quester/eulim-gem
|
153
139
|
licenses:
|
154
140
|
- MIT
|