summaryrefslogtreecommitdiff
path: root/1538/CH17/EX17.4/Ex17_4.sce
blob: 9072cc4d592c48b65d0ac3004272efbdb83d3062 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//example-17.4
//page no-526
//given
//one mole of magnesium weighs
MMg=0.0243  //Kg
//current density
I=20*10^-3   //A/m^2
//design life of 15 years
t=15*365*24*3600  //sec
//charge= 2 faradya
Q=2*96490  //C
//charge needed per m^2 of structure's for design life
q=I*t  //A s
//the amount of magnesium needed
AMg=MMg*q/Q  //kg/m^2
printf("the amount of magnesiun meeded is %f kg/m?^2",AMg)