Skip to content

Question about Algeb diag_eps #185

Discussion options

You must be logged in to vote

Answer from Hantao:

diag_eps adds an additional small element to the diagonal element in the Jacobian matrix corresponding to this equation and variable. It is needed when the derivative of this equation w.r.t this variable may not be zero to avoid singularity.

For example:

self.vi = Algeb(info='Total input voltages',
                tex_name='V_i',
                unit='p.u.',
                e_str='ue * (-v + vref - WF_y - vi)',
                v_str='-v + vref',
                diag_eps=True,
                )

Here if we compute the derivative of vi (consider e_str as a function g(vi) = 0 and compute dg / d (vi)), we get -ue. If the device is tripped during the simulation, the connecti…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@cuihantao
Comment options

Answer selected by cuihantao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants