The Designer's Guide Community
Forum
Welcome, Guest. Please Login or Register. Please follow the Forum guidelines.
Mar 29th, 2024, 3:43am
Pages: 1
Send Topic Print
Question about two branches for a diode model (Read 410 times)
ruwan2
Junior Member
**
Offline



Posts: 15

Question about two branches for a diode model
Apr 10th, 2015, 7:20am
 
Hi,

When I read the following example on AMS, I am puzzled about two branches for two terminals. What relationship of these two branches i_diode, junc_cap ? A diode should have one current flow through, what about the two current?

Thanks


Code:
module diode (a, c);
electrical a, c;
branch (a, c) i_diode, junc_cap;
parameter real is = 1e-14, tf = 0, cjo = 0, imax = 1, phi = 0.7 ;
analog begin
	 I(i_diode) <+ is*(limexp(V(i_diode)/$vt) – 1);
	 I(junc_cap) <+
		 ddt(tf*I(i_diode) - 2*cjo*sqrt(phi*(phi*V(junc_cap))));
	 if (I(<a>) > imax)
		 $strobe( "Warning: diode is melting!" );
end
endmodule
 

Back to top
 
 
View Profile   IP Logged
ruwan2
Junior Member
**
Offline



Posts: 15

Re: Question about two branches for a diode model
Reply #1 - Apr 10th, 2015, 8:08am
 
Excuse me. I understand now. The capacitor is parallel with the diode. Thanks
Back to top
 
 
View Profile   IP Logged
Pages: 1
Send Topic Print
Copyright 2002-2024 Designer’s Guide Consulting, Inc. Designer’s Guide® is a registered trademark of Designer’s Guide Consulting, Inc. All rights reserved. Send comments or questions to editor@designers-guide.org. Consider submitting a paper or model.