Git Product home page Git Product logo

Comments (8)

jinningwang avatar jinningwang commented on June 18, 2024 1

Check this example, https://docs.andes.app/en/latest/_examples/ex9.html

from andes.

Cmt111 avatar Cmt111 commented on June 18, 2024

Here is the program.

import andes
import matplotlib
import matplotlib.pyplot as plt
ss = andes.load(andes.get_case("ieee14/ieee14_full.xlsx"), setup=False, default_config=True)
ss.setup()
ss.PQ.config.p2p = 1
ss.PQ.config.q2q = 1
ss.PQ.config.p2z = 0
ss.PQ.config.q2z = 0
ss.PQ.pq2z = 0
ss.PFlow.run()
ss.TDS.config.tf = 7
ss.TDS.config.criteria = 0
ss.TDS.run()
ss.GENROU.set(src='u', idx='GENROU_3', attr='v', value=0.6)

ss.TDS.config.tf = 55
ss.TDS.config.criteria = 0
ss.TDS.run()

matplotlib.use('TkAgg')

ss.TDS.load_plotter()
ss.TDS.plt.plot(ss.GENROU.omega,a=(0, 1, 2, 3, 4), ylabel="Generator Frequency(Hz)",grid=True,ytimes=60)
ss.TDS.run()

from andes.

jinningwang avatar jinningwang commented on June 18, 2024

I don't think this is a bug. You might need to check ss.GENROU.set(src='u', idx='GENROU_3', attr='v', value=0.6). I am confused about this.

from andes.

Cmt111 avatar Cmt111 commented on June 18, 2024

I don't think this is a bug. You might need to check ss.GENROU.set(src='u', idx='GENROU_3', attr='v', value=0.6). I am confused about this.

Thank you for your response. Maybe my expression is wrong. I use “ss.GENROU.set(src='u', idx='GENROU_3', attr='v', value=0.6)” to achieve the GENROU3 to increase the active power of 0.2p.u. at 7s(The original active power of the GENROUr is 0.4p.u.). How to achieve it, please?

from andes.

cuihantao avatar cuihantao commented on June 18, 2024

u is connectivity status that should only be 0 or 1. Setting u to non-binary values will lead to unexpected results.

from andes.

Cmt111 avatar Cmt111 commented on June 18, 2024

u is connectivity status that should only be 0 or 1. Setting u to non-binary values will lead to unexpected results.

Thank you for your response. What statement should be used to change the active power of the GENROU at a certain moment, please?

from andes.

cuihantao avatar cuihantao commented on June 18, 2024

See the link Jinning shared. I'd like to add that active power output is a dependent variable of the stator voltages and currents. One cannot directly change the power output; it has to go through the references, either by changing the setpoint at turbine governors or at the generator (only when turbine governor is not connected for that generator).

from andes.

cuihantao avatar cuihantao commented on June 18, 2024

Closing the issue for now due to lack of activity. Feel free to re-open it or post updates to Discussions.

from andes.

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.