Class: URBANopt::RNM::Capacitor
- Inherits:
-
Object
- Object
- URBANopt::RNM::Capacitor
- Defined in:
- lib/urbanopt/rnm/capacitor_opendss.rb
Overview
creating the Capacitor class with required parameters by the OpenDSS catalog
Instance Method Summary collapse
Instance Method Details
#create(capacitor) ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/urbanopt/rnm/capacitor_opendss.rb', line 10 def create(capacitor) hash = {} hash[:nameclass] = capacitor[' Name'] hash[:kvar] = capacitor[' size (kVA)'] hash[:resistance] = capacitor['resistance(Ohm)'] hash[:phases] = capacitor[' number of phases'] hash[:connection] = capacitor['connection'] hash[:control_type] = capacitor['control_type'] return hash end |