Skip to content

Commit

Permalink
Improve documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cuihantao committed Mar 18, 2023
1 parent e4d1c27 commit df2a982
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
8 changes: 6 additions & 2 deletions andes/models/static/pq.py
Expand Up @@ -67,9 +67,13 @@ class PQ(PQData, Model):
.. code-block :: python
ss.PQ.config.p2p = 1.0 ss.PQ.config.p2i = 0 ss.PQ.config.p2z = 0
ss.PQ.config.p2p = 1.0
ss.PQ.config.p2i = 0
ss.PQ.config.p2z = 0
ss.PQ.config.q2q = 1.0 ss.PQ.config.q2i = 0 ss.PQ.config.q2z = 0
ss.PQ.config.q2q = 1.0
ss.PQ.config.q2i = 0
ss.PQ.config.q2z = 0
Then, the constant power portion can be altered by changing the ``Ppf`` and
``Qpf`` constants for active power and reactive power.
Expand Down
11 changes: 11 additions & 0 deletions andes/models/timer.py
Expand Up @@ -108,6 +108,17 @@ class Fault(ModelData, Model):
Non-convergence can occur in the proximity of a fault due to various reasons,
including network power transfer capability limitation and parameter issues
of controllers.
When a fault gets cleared, algebraic variables change drastically. E.g.,
voltages can go from nearly zero back to 1.0. As we are using Newton's
method for solving the DAE, the initial values are crucial for the immediate
step after fault clearance.
This Fault model restores the pre-fault values for algebraic variables
``Fault.config.scale`` is the scaling factor to be multiplied to the
pre-fault values for adjusting the initial values. Some trial and error are
expected for severe disturbances, combined with increasing the fault
reactance ``xf``.
"""

def __init__(self, system, config):
Expand Down

0 comments on commit df2a982

Please sign in to comment.