Conversation
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #423 +/- ##
==========================================
+ Coverage 65.22% 65.79% +0.57%
==========================================
Files 374 385 +11
Lines 22723 23369 +646
Branches 11240 11616 +376
==========================================
+ Hits 14820 15375 +555
- Misses 7877 7939 +62
- Partials 26 55 +29 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
e427a58 to
38abe56
Compare
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
a initPowerFromTerminal method was implemented to be able to set the parameters of the load before running the simulation. Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Modified the setParameters function of the DecouplingIdealTransformerEMT. Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
…xample. Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
delay in the ITM. Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
- Add parameters for consistent initialization using extrapolation - Improve initialization - Refactor: Rename decoupling node specifying that it is Ph1 Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: Andres Acosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
37bcc73 to
3df984d
Compare
Signed-off-by: pipeacosta <pipeacosta@gmail.com>
leonardocarreras
left a comment
There was a problem hiding this comment.
Hi Andres! Thanks for the PR! This is just a quick first comment. We can discuss more and see how to integrate it.
| /// Initializes component from power flow data | ||
| void initializeFromNodesAndTerminals(Real frequency) override; | ||
| /// | ||
| void initPowerFromTerminal(); |
There was a problem hiding this comment.
Is good to use a verb for the function name, i.e. initializePowerFromTerminal... In my opinion is also important to see if this is active, reactive or both powers. I think is possible to use the comment on top to say this in the code.
| void SystemTopology::removeNode(const String &name) { | ||
| for (auto it = mNodes.begin(); it != mNodes.end(); ) { | ||
| if ((*it)->name() == name) { | ||
| it = mNodes.erase(it); |
There was a problem hiding this comment.
Does this makes sure to collect the components connected to the node and erase them too?
| if (args.options.find("seq") != args.options.end()) | ||
| numSeq = args.getOptionInt("seq"); | ||
|
|
||
| std::cout << "Simulate with " << numThreads |
There was a problem hiding this comment.
Please use a logger
| UInt mExtrapolationDegree = 0; | ||
| Eigen::MatrixXd mVoltageSrcIntfCurr; | ||
|
|
||
| Real interpolate(std::vector<Real> &data); |
There was a problem hiding this comment.
what does this inter/extrapolate? maybe more explanation can help
| public: | ||
| typedef std::shared_ptr<DecouplingIdealTransformer_EMT_Ph1> Ptr; | ||
|
|
||
| const Attribute<Real>::Ptr mSourceVoltageIntfVoltage; |
There was a problem hiding this comment.
if possible, a drawing of this circuit in the documentation will help
| Logger::matrixToString(**mActivePower), | ||
| Logger::matrixToString(**mReactivePower)); | ||
| SPDLOG_LOGGER_INFO(mSLog, "Nominal Voltage={} [V]", **mNomVoltage); | ||
| if (doInitPowerFromTerminal) { |
There was a problem hiding this comment.
why is this change needed?
|
|
||
| SimPowerComp<Real>::Ptr EMT::Ph3::RXLoad::clone(String name) { | ||
| if (doInitPowerFromTerminal) { | ||
| initPowerFromTerminal(); |
There was a problem hiding this comment.
why is this needed/cannot use existing function?
| Matrix mCapacitance; | ||
| /// | ||
| Bool initPowerFromTerminal = true; | ||
| Bool doInitPowerFromTerminal = true; |
There was a problem hiding this comment.
mInitPowerFromTerminals ? new name has verb, is preferable that variables have noun names
| protected: | ||
| Real mDelay; | ||
|
|
||
| std::shared_ptr<EMT::SimNode> mNode1, mNode2; |
There was a problem hiding this comment.
please draw the circuit and add it to the documentation
| .def(py::init<CPS::Real>()) | ||
| .def("add", &DPsim::SystemTopology::addComponent) | ||
| .def("add", &DPsim::SystemTopology::addComponents) | ||
| .def("add_node", &DPsim::SystemTopology::addNode) |
There was a problem hiding this comment.
should we overload add? as we do not have add component or add signal separately
leonardocarreras
left a comment
There was a problem hiding this comment.
Hi Andres! Please have a look to the comments! Thanks for the PR!
This PR implements new decoupling elements based on the Ideal Transformer Model (ITM) for exemplifying co-simulation scenarios.