This shows you the differences between two versions of the page.
gnucap:manual:tech:plugins:devices:dc_and_transient_analysis [2015/12/11 15:39] 127.0.0.1 external edit |
gnucap:manual:tech:plugins:devices:dc_and_transient_analysis [2024/09/05 18:25] (current) felixs [DC and transient analysis] |
||
---|---|---|---|
Line 86: | Line 86: | ||
== void tr_accept() == | == void tr_accept() == | ||
- | This function is called after the solution at a time step has been accepted. For most devices, it does nothing. For devices having storage and delayed propagation, it evaluates what signal will be propagated. For a transmission line, it calculates and sends on the reflections. | + | This function is called exacty once after the solution at a time step has been accepted. For most devices, it does nothing. For devices having storage and delayed propagation, it evaluates what signal will be propagated. For a transmission line, it calculates and sends on the reflections. |
It is called only when queued, so either tr_review or do_tr must call q_accept() to queue it. | It is called only when queued, so either tr_review or do_tr must call q_accept() to queue it. | ||
- | Only tr_accept is allowed to add events to the event queue (SIM::new_event()). | + | Only tr_accept and tr_advance are allowed to add events to the event queue (SIM::new_event()). |