, Visual C#




86.1. .

// :

public double d, H, Rn, s, s_sheet, C, L, rho,

nu, El, sig_ys, sig_u, e_u, e_tot;

public int Radio;

double dH, Ha, D;

double B, a, b, t, W, F, Nbl, W_F;

double pi = Math.PI;

// :

// "":

double Allowance()

{

// - , , :

dH=5;

// 2,

// ; Radio=1:

if (Radio==1) dH=0;

return dH;

}

double Semiproduct()

{

dH=Allowance();

// :

Ha = H + dH;

return Ha;

}

// "":

double Area1_Semiproduct()

{

double A1 = pi*(d-2*Rn)*(d-2*Rn)/4;

return A1; //mm*mm

}

double Area2_Semiproduct()

{

double A2 = pi*(Rn-s/2)*(2*(Rn-s/2)+pi*(d-2*Rn)/2);

return A2; //mm*mm

}

double Area3_Semiproduct()

{

Ha=Semiproduct();

double A3 = pi*(d-s)*(Ha-Rn);

return A3; //mm*mm

}

double Area_Semiproduct()

{

double A, A1, A2, A3;

A1=Area1_Semiproduct();

A2=Area2_Semiproduct();

A3=Area3_Semiproduct(); A=A1+A2+A3;

return A;

}

double DBlank()

{

double A = Area_Semiproduct();

D=Math.Sqrt(4*A/pi);

return D;

}

// "":

double Bstrip()

{

// :

double del_st, del1, z_b;

a=1.2; b=1.6; del_st=0.7; del1=0.4; z_b=1;

// :

D = DBlank(); t = D + a;

// :

B = D + 2*(b + del_st) + z_b + del1;

return B;

}

void Cutting()

{

// :

double N_strip_1, N_strip_2, N_bl_st_1, N_bl_st_2,

N_bl_1, N_bl_2;

B = Bstrip();

// :