[CPP] 분포하중 _ Beam의 SFD, BMD 값

simpled 2013.06.23 14:57 조회 수 : 6488

#define으로 때려박은것들이 그림상 어디를 의미하는지는 알아서 맞추시길 ㅎ

 


 



#include <iostream>

 

using namespace std;

 

#define L 6.2           // 총길이

#define L1 1.925        // 삼각형길이

#define L2 3.1          // 절반길이

#define L3 1.925        // 삼각형길이

 

#define L4 2.35         // 사각형밑변총길이

#define L5 1.175        // 사각형밑변절반길이

 

#define W1 19.25        // 분포하중값

 

int main(void)

{

    double RT, RA, RB, P1;

    double VC;

    double MC;

    double i=0;

 

    RT=W1*L4+W1*L1;

    RA=RB=RT/2;

    P1=W1*L1/2;

 

    cout <<RT<<"(Rt)  t"<<RA

        <<"(Ra)  tt" <<P1<<"(P1)"<<endl;

    cout <<endl;

 

    while(1)

    {

        VC=RA-((W1*i)/2);

        MC=(RA*i)-(((W1*i)/2)*(i/3));

        cout <<i<<"(x)  tt"<<VC

            <<"(Vc) tt" <<MC <<"(Mc) " <<endl;

 

        i=i+0.1;

        if(i>=L1)

            break;

    }

    i=L1;

    VC=RA-((W1*i)/2);

    MC=(RA*i)-(((W1*i)/2)*(i/3));

    cout <<i<<"(x)  tt"<<VC

        <<"(Vc) tt" <<MC <<"(Mc) " <<endl;

    cout <<" 1step Clear"<<endl<<endl;

 

    i=0;

    while(1)

    {

        VC = RA-P1-W1*i;

        MC = RA*(L1+i) -((W1*i)*(i/2)) -(P1*(i+(L1/3)));

        cout <<i+L1<<"(x)  tt"<<VC

            <<"(Vc) tt" <<MC <<"(Mc) " <<endl;

        i=i+0.1;

        if(i>=L5)

            break;

    }

    i=L5;

    VC = RA-P1-W1*i;

    MC = RA*(L1+i) -((W1*i)*(i/2)) -(P1*(i+(L1/3)));

    cout <<i+L1<<"(x)  tt"<<VC

        <<"(Vc) tt" <<MC <<"(Mc) " <<endl;

    cout <<" 2step Clear"<<endl<<endl;

 

    i=L5;

    while(1)

    {

        VC = RA-P1-W1*i;

        MC = RA*(L1+i) -((W1*i)*(i/2)) -(P1*(i+(L1/3)));

        cout <<i+L1<<"(x)  tt"<<VC

            <<"(Vc) tt" <<MC <<"(Mc) " <<endl;

        i=i+0.001;

        if(VC<=0)

            break;

    }cout <<" 3step Clear"<<endl<<endl;

 

    i=(RA-P1)/W1;

    cout <<i+L1<<"(x)  tt"<<endl;

    cout <<" 4step Clear"<<endl<<endl;

 

    return 0;

}

번호 제목 글쓴이 날짜 조회 수
29 [CPP] file 입출력 : space data file simpled 2013.06.23 5271
28 [CPP] 1차 방정식을 통한 y값 구하기 simpled 2013.06.23 5790
27 [CPP] Vector 계산 클래스 (v2.0) file simpled 2013.06.23 4687
26 [CPP] 자리수 표현 simpled 2013.06.23 5633
25 [CPP] 각도 클래스(+ 아크탄젠트 리턴값 조정) file simpled 2013.06.23 6040
24 [CPP] 벡터 계산 클래스 file simpled 2013.06.23 6103
23 [CPP] file 입출력 simpled 2013.06.23 4977
22 [CPP] 수치해석 : Rectangle Method 구분구적분 (적분 프로그래밍) simpled 2013.06.23 8124
» [CPP] 분포하중 _ Beam의 SFD, BMD 값 simpled 2013.06.23 6488
20 [CPP] OOP6. CPP Programming :: Virtual Banking system PPT [끝] file 심플디 2013.06.23 6623
19 [CPP] OOP6. CPP Programming :: Virtual Banking system v3.8 file simpled 2013.06.23 5933
18 [CPP] OOP6. CPP Programming :: Virtual Banking system 모듈프로그램들 file simpled 2013.06.23 5257
17 [CPP] OOP6. CPP Programming :: Virtual Banking system v3.7 file simpled 2013.06.23 5967
16 [CPP] OOP6. CPP Programming :: Virtual Banking system v3.6 file simpled 2013.06.23 6304
15 [CPP] OOP6. CPP Programming :: Virtual Banking system v3.5.1 file simpled 2013.06.23 6456
14 [CPP] OOP6. CPP Programming :: Virtual Banking system v3.5 file simpled 2013.06.23 6635
13 [CPP] -----------------------------------절취선----------------------------------- simpled 2013.06.23 5843
12 [CPP] Banksys 휴식 simpled 2013.06.23 6510
11 [CPP] OOP5. CPP Programming :: Virtual Banking system v3.0.2 [Class design3. String Sorting] simpled 2013.06.23 5627
10 [CPP] OOP5. CPP Programming :: Virtual Banking system v3.0.2 [Class design2. File I/O] simpled 2013.06.23 6563