summaryrefslogtreecommitdiff
path: root/3871/CH8/EX8.2/Ex8_2.sce
blob: 46b4b909159c1bfdc1a66e17e579eba402b52767 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
//===========================================================================
//chapter 8 example 2


clc;clear all;

//variable declaration
V       = 220;		//voltage in V
I        = 5;			//current in A
Rp    = 8800;		//resistance of pressure in Ω
V1     = 6;			//voltage excited in V

//calculations
P1      = V*I;                  //power consumed in current coil circuit in W
P2      = (V^2)/(Rp);               //power consumed in pressure  coil circuit in W
P        = P1+P2;                   //total power consumed in W
P11      = V1*I;                //power consumed in current coil circuit in W
P21      = (V^2)/(Rp);             //power consumed in pressure  coil circuit in W
PP        = P11+P21;            //total power consumed in W

//result
mprintf("total power consumed for direct load arrangement = %3.2f W",P);
mprintf("\ntotal power consumed for phanton loading with current circuit = %3.1f W",PP);