Está en la página 1de 8

Calculo de Peralte Efectivo

#include <iostream>

#include "math.h"

/* run this program using the console pauser or add your own getch, system("pause") or input
loop */

using namespace std;

float fbeta1(float fc){

float beta1;

if(fc <=280) beta1 = 0.85;

else beta1 = 0.85 - 0.05*(fc-280)/70;

if(beta1 < 0.65) beta1 = 0.65;

return beta1;

float frhob(float fc, float fy, float b1){

float rb;

rb = 0.85*b1*fc/fy*6000/(6000+fy);

return rb;

int main(int argc, char** argv){

float fc, fy, beta1, rhob, Mu, b, h, r, t, d, a, rhomax, Asmax, As;

cout<<"f'c [kg/cm2] = ";cin>>fc;

cout<<"fy [kg/cm2] = ";cin>>fy;

cout<<"Mu [tn-m] = ";cin>>Mu;

cout<<"b[cm] = ";cin>>b;

cout<<"h[cm] = ";cin>>h;

cout<<"r[cm] = ";cin>>r;

d-h=r;

a=0.2*d;
do{

t=a;

As=Mu*1e5/(0.9*fy*(d-a/2));

a=As*fy/(0.85*fc*b);

}while(fabs(t-a)>0.01*t);

beta1=fbeta1(fc);

rhob=frhob(fc,fy,beta1);

cout<<"rhob = "<<rhob;

rhomax=0.75*rhob;

Asmax=rhomax*h*d;

cout<<"\nAsmax = "<<Asmax;

if{As>Asmax} cout<< "As supere la cuantía maxima";

else cout<<"\nAs = "<<As<<"cm2";

return 0;

También podría gustarte