-
Notifications
You must be signed in to change notification settings - Fork 2
zz/dss_writer_edits #55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
2ca4063
ba3873f
9dd6e3d
a0747d0
95f7812
bb83e2c
866ccce
f252c65
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| LL_LN_CONVERSION_FACTOR = 1.732 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| from gdm.distribution import DistributionSystem | ||
| from infrasys import Component | ||
|
|
||
|
|
||
| from ditto.writers.opendss.components.distribution_branch import DistributionBranchMapper | ||
| from ditto.enumerations import OpenDSSFileTypes | ||
|
|
||
|
|
||
| class MatrixImpedanceRecloserMapper(DistributionBranchMapper): | ||
| def __init__(self, model: Component, system: DistributionSystem): | ||
| super().__init__(model, system) | ||
|
|
||
| altdss_name = "Line_LineCode" | ||
| altdss_composition_name = "Line" | ||
| opendss_file = OpenDSSFileTypes.RECLOSER_FILE.value | ||
|
|
||
| def map_name(self): | ||
| self.opendss_dict["Name"] = self.get_opendss_safe_name(self.model.name) | ||
|
|
||
| def map_equipment(self): | ||
| self.opendss_dict["LineCode"] = self.get_opendss_safe_name(self.model.equipment.name) | ||
|
|
||
| def map_is_closed(self): | ||
| # Require every phase to be enabled for the OpenDSS line to be enabled. | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Shouldn't this be a switch by default, and the is_closed be covered by in_service?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it's good to question this. I did not and just copied what's here from the matrix_impedance_switch mapper. |
||
| self.opendss_dict["Switch"] = True | ||
|
|
||
| def map_in_service(self): | ||
| self.opendss_dict["Enabled"] = self.model.in_service | ||
|
|
||
| def map_controller(self): | ||
| pass | ||
Uh oh!
There was an error while loading. Please reload this page.