You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have a question about a User definition device with non-linear properties
I want to define a specific current source with a specific variable factor.
ex ) when I define that I_current_source is 1.6e-19 * (4e+14) * (V_n1 - V_n2 - 1.12)*((F_MAX)(3/2))*mp.exp(-(3.1e+7)/F_MAX), this I_current_source has specific variable factor "F_MAX = abs(-Root_2 *((((float(V_n3 - V_n4))1.6e-195e+19)/8.854e-14)(1/2)))".
(V_n is node voltage when the circuit is running)
Also, because my circuit has a time transient voltage source, node voltages (=V_n1,2,3,4) vary according to time. so, transient analysis must be implemented.
This is my defined device code. But it doesn't work.
Hi, I have a question about a User definition device with non-linear properties
I want to define a specific current source with a specific variable factor.
ex ) when I define that I_current_source is 1.6e-19 * (4e+14) * (V_n1 - V_n2 - 1.12)*((F_MAX)(3/2))*mp.exp(-(3.1e+7)/F_MAX), this I_current_source has specific variable factor "F_MAX = abs(-Root_2 *((((float(V_n3 - V_n4))1.6e-195e+19)/8.854e-14)(1/2)))".
(V_n is node voltage when the circuit is running)
Also, because my circuit has a time transient voltage source, node voltages (=V_n1,2,3,4) vary according to time. so, transient analysis must be implemented.
This is my defined device code. But it doesn't work.
n1 = cir.add_node('n1')
n2 = cir.add_node('n2')
n3 = cir.add_node('n3')
n4 = cir.add_node('n4')
class I_current_source(ahkab.devices.Component):
element=I_current_source('I_current_source', n1 = n1 , n2 = n2, n3 = n3, n4 = n4)
mycir.append(element)
-----n1---I_current_source---n2----- (n1,n2 is output ports)
so, If you know what my problem is, I would appreciate it if you could give me feedback.
The text was updated successfully, but these errors were encountered: