Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Рассчет.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
- //
- //cout<<<<endl;
- #include "pch.h"
- #include <iostream>
- using namespace std;
- int main()
- {
- float R,P;
- R = 0.0001;
- P = 1;
- P = P * 0.001;
- float Yr = 1,Yrct=1.5,Yrk=1,Yps=3, Ps = 500, P0 = 1, Ar = 0.00006, tm = 125 ;
- float db = 0.02, dl = 0.04, btech = 0.2, l1 = 0.2;
- //1 рассчет Kф
- float Kf = R / Ps;
- cout<<"Kf="<< Kf <<endl;
- //2 Bp
- float Bp = sqrt(P / (P0*Kf));
- cout<< "Bp=" << Bp <<endl;
- //3 Yrt
- float Yrt = Ar * (tm - 20)*100;
- cout << "Yrt=" << Yrt << endl;
- ///4 Ykfmax
- float Ykfmax = Yr - Yps - Yrct - Yrt - Yrk;
- cout << "Ykfmax=" << Ykfmax << endl;
- //5 bточ
- float Btoch = ((db+dl/Kf) * 100) / Ykfmax;
- cout << "Btoch=" << Btoch << endl;
- //6 b
- float B = 0.1;
- if ((Bp*10 > Btoch) && (Bp*10 > btech))
- B+= Bp*10;
- else if ((Btoch > Bp*10) && (Btoch > btech))
- B += Btoch;
- else B += btech;
- cout << "B=" << B << endl;
- //7 l
- float l = Kf * B;
- cout << "l=" << l << endl;
- // 8 l0
- float l0 = l + 2 * l1;
- cout << "l0=" << l0 << endl;
- //9 S
- float S = l0*B;
- cout << "S=" << S << endl;
- //10 P0'
- float P0t = P / (B*l / 100);
- cout << "P0t=" << P0t << endl;
- if (P0t < P0) cout << "Ok";
- else cout << "No, fP0<P0t";
- cout << "=" << endl;
- //11 Yr'
- float Yrsht = Yps + Yrct + Yrt + Yrk + (db / B + dl / l) * 100;
- cout << "Yrsht=" << Yrsht << endl;
- if (Yrsht < Yr) cout << "Ok";
- else cout << "No, Yrt>Yr";
- cout << endl;
- system("pause");
- }
Add Comment
Please, Sign In to add comment