User:Divyanshu: Difference between revisions

From ASCEND
Jump to navigation Jump to search
Divyanshu (talk | contribs)
No edit summary
Divyanshu (talk | contribs)
No edit summary
Line 5: Line 5:
College        : Netaji Subhas Institute of Technology, Dwarka, Delhi, India
College        : Netaji Subhas Institute of Technology, Dwarka, Delhi, India


[[File:diode.a4c]]
<source lang="a4c">
[[File:Screenshot.png|1000px|thumb|left|Screenshot of solving various parameters of a transistor]]
REQUIRE "atoms.a4l";
 
MODEL diode;
(*variables*)
V IS_A voltage;
R IS_A resistance;
VD IS_A voltage;
Is IS_A current;
I IS_A current;
 
(*equations*)
(V - VD)/R = Is * ((exp(VD/0.043478261)) - 1);
I = Is * ((exp(VD/0.043478261)) - 1);
 
METHODS
(*Fixing values for a simple circuit connecting a diode , a dc voltage and a resistor in series*)
METHOD on_load;
FIX V;
V := 5 {volt};
FIX R ;
R := 1000 {ohm};
FIX Is;
Is := 1e-10 {amp};
END on_load;
 
METHOD default_self;
VD := 0.7 {volt};
VD.lower_bound := 0.7 {volt};
VD.upper_bound := 0.8 {volt};
END default_self;
 
END diode;
</source>
[[Image:Screenshot.png|500px|thumb|left|Screenshot of solving various parameters of a transistor]]

Revision as of 19:10, 4 April 2011

Name : Divyanshu Bandil

University  : Delhi University

College  : Netaji Subhas Institute of Technology, Dwarka, Delhi, India

REQUIRE "atoms.a4l";

MODEL diode;
	(*variables*)
	
	V IS_A voltage;
	R IS_A resistance;
	VD IS_A voltage;
	Is IS_A current;
	I IS_A current;

	(*equations*)
	(V - VD)/R = Is * ((exp(VD/0.043478261)) - 1);
	I = Is * ((exp(VD/0.043478261)) - 1);

	
METHODS
	(*Fixing values for a simple circuit connecting a diode , a dc voltage and a resistor in series*)
	
	METHOD on_load;
		FIX V;
		V := 5 {volt};
		FIX R ;
		R := 1000 {ohm};
		FIX Is;
		Is := 1e-10 {amp};
	END on_load;

	METHOD default_self;
		VD := 0.7 {volt};
		VD.lower_bound := 0.7 {volt};
		VD.upper_bound := 0.8 {volt};
	END default_self;

END diode;
Error creating thumbnail: File missing
Screenshot of solving various parameters of a transistor