A final well structured problem: the Wheatstone bridge
Here we will model the Wheatstone bridge problem in DEPS. A Wheatstone bridge is an electrical system made up of 3 known resistors, an unknown resistor and an ammeter, mounted as shown in the figure below. The problem is to find the value of the unknown resistor so that the current in the ammeter is equal to zero.

Modeling the Wheatstone bridge system
Model WheatstoneSys(Gen)
Constants
Variables
Elements
Res1:Resistor(1);
Res2: Resistor(2, 3);
Res3 : Resistor(3, 6);
Res4 : Resistor(4, 4);
Ammeter : Dipole(1);
Gen : VSource[Voltage];
Connexion1 : Node(Gen.Pin, Res1.Pout, Res4.Pout);
Connexion2 : Node(Gen.Pout, Res2.Pin, Res3.Pin);
Connexion3 : Node(Res2.Pout, Res1.Pin, Ammeter.Pin);
Connexion4 : Node(Res4.Pin, Res3.Pout, Ammeter.Pout);
Properties
End
Modeling the Wheatstone bridge problem
Problem WheatstoneBridge
Constants
e: Voltage = 50;
Variables
Elements
Gen : VSource(e);
S : WheatstoneSys(Gen);
Properties
S.Ammeter.I = 0.0;
S.Ammeter.Pin.V = S.Ammeter.Pout.V;
End
Compiling and solving the problem
After opening the Wheatstone.proj
project file in DEPS Studio, we can compile the project (project > build the problem).

Then the problem can be solved (Solve > Firts Solution).
