Coder Social home page Coder Social logo

Comments (8)

JTS22 avatar JTS22 commented on July 18, 2024

I started working on FIXMEs in #142

Comments on the non-solved FIXMEs:

from dpsim.

JTS22 avatar JTS22 commented on July 18, 2024

/// FIXME: Can we avoid setting right_vector to dynamic?
mRightVector->setReference(mSubVoltageSource->mRightVector);

/// FIXME: Can we avoid setting right_vector to dynamic?
mRightVector->setReference(mSubVoltageSource->mRightVector);

The VoltageSourceRamp should be superceded by the SignalGenerator in the normal VoltageSource. The classes above are only used in one example and not bound to Python, so they can probably be deleted. The issue comes up once more in the DP_Ph1_PQLoadCS:

///CHECK: Can we avoid setting the right_vector attribute to dynamic? Maybe just copy the current source's right_vector somewhere? Or make a new attribute?
mRightVector->setReference(mSubCurrentSource->mRightVector);

I dont know if this class is still needed as it is also not bound to Python. Even if there is probably a way to get around setting the right_vector to dynamic. Since the class implements mnaApplyRightSideVectorStamp I do not know whether the mRightVector is even read at all...

from dpsim.

JTS22 avatar JTS22 commented on July 18, 2024

///FIXME: This is kinda ugly... At least we should somehow unify mLeftSideVector and mLeftSideVectorHarm.
// Best case we have some kind of sub-attributes for attribute vectors / tensor attributes...
if (mFrequencyParallel) {
mSLog->info("Computing network harmonics in parallel.");
for(Int freq = 0; freq < mSystem.mFrequencies.size(); ++freq) {
mLeftSideVectorHarm.push_back(
CPS::Attribute<Matrix>::create("left_vector_"+std::to_string(freq), mAttributes)
);
}
}
else {
mLeftSideVector = CPS::Attribute<Matrix>::create("left_vector", mAttributes);
}

This is probably harder to solve because one needs to rework the MNA Solver for parallel frequencies (if that is even a working usecase right now)

from dpsim.

JTS22 avatar JTS22 commented on July 18, 2024

///FIXME: workaround for dependency analysis as long as the states aren't attributes
const Attribute<Matrix>::Ptr mStates;

///FIXME: workaround for dependency analysis as long as the states aren't attributes
const Attribute<Matrix>::Ptr mStates;

I dont know what states this is talking about. The Matrix attribute itself is only used as a task dependency but never read or written to...

from dpsim.

JTS22 avatar JTS22 commented on July 18, 2024

///FIXME: The resistance is never used anywhere...
mResistance(Attribute<Real>::create("R", mAttributes)) {

Removing the R attribute seems to go against the purpose of the class. But then again, the class is never used / not even compiled so maybe we can just delete it altogether?

from dpsim.

JTS22 avatar JTS22 commented on July 18, 2024

"trafo_snubber_res_hv_side = dpsimpy.sp.ph1.Resistor('trafo_snub_res_mv') ##FIXME: Is the naming correct here?\n",
"trafo_snubber_res_mv_side = dpsimpy.sp.ph1.Resistor('trafo_snub_res_hv')\n",
"trafo_snubber_cap_mv_side = dpsimpy.sp.ph1.Capacitor('trafo_snub_cap_mv')\n",

I cannot comment on this, should be easy to resolve though.

from dpsim.

JTS22 avatar JTS22 commented on July 18, 2024

"# FIXME: Requested log files are not generated by the simulation\n",

The notebook does not even run the simulation to completion, so this seems like a secondary issue...

from dpsim.

JTS22 avatar JTS22 commented on July 18, 2024

"# FIXME: Why does this have to run in a seperate function for the simulation to produce the Left- and RightVector log files?\n",

I can confirm this is still an issue, there is even an entire notebook for examination: https://github.com/sogno-platform/dpsim/blob/master/examples/Notebooks/Components/SynGen_trStab_logger_test.ipynb
The core issue remains unsolved though, probably something to do with the logger only writing out files when the object is deleted from memory...

from dpsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.