Info
This question is closed. Reopen it to edit or answer.
Guidance on oop approach to analysing power system data
1 view (last 30 days)
Show older comments
Hi,
Seeking guidance on implementing an oo approach to processing power system electrical data (data is an array of instantaneous values as a function of time).
The data collected is: a) bus voltages b) node currents
Typically for a set of bus voltages there will be multiple node currents.
So for voltage planning methods to calculate RMS as function of time, frequency as function of time etc.
Similarly for current.
So this leads me (perhaps) to a voltage class and a current class... Or perhaps a bus class which has node subclasses?
For example, to calculate power in a node I need to use bus voltage and node current.
What would be a good way to organise classes for the above? Pass the bus voltage object to the node current object? Subclasses?
Appreciate guidance on the above.
Regards,
Martin.
0 Comments
Answers (1)
Prateek Khandelwal
on 4 Jan 2017
Hi Martin,
As far as Object Oriented Design is concerned, it would your real world objects ( nouns ) that are mapped to individual classes.
So, you'll have a node class, to represent nodes. And then a Bus class to represent Buses.
Now about the relationship between node and bus classes. If in your design, a node IS - A bus, then you should have node as a subclass of bus, however, if the bus HAS - A node, then you need to have node class as an attribute of the bus class.
I would like to mention this here that I have a very limited knowledge of Power Electronics, and my answer is based on my knowledge of Object Oriented Analysis and Design.
I hope this helps.
1 Comment
This question is closed.
Communities
More Answers in the Power Electronics Control
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!