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 C, Yc = 15, Up;
- Up = 10;
- C = 3400;
- float Yc0 = 3, Yct = 1, dB = 0.05, dcowm = 0.1, dtech = 0.01, pob = 0.2, f = 400000, tgb = 0.04, Kz = 2, Epro = 2000000, tmax = 125, eps0 = 0.0885, eps = 5,
- alphaC = 2 * 0.0001;
- dtech = dtech * 0.000001;
- //1 dпрочн
- float dpro = Kz * Up / Epro;
- cout << "dpro=" << dpro << endl;
- //2 Yct
- float YCt = alphaC * (tmax - 20) * 100;
- cout << "YCt="<<YCt << endl;
- //3 Ycmax
- float Ycmax = Yc - Yc0 - Yct-YCt;
- cout << "Ycmax=" << Ycmax << endl;
- //4 C0max
- float C0max = C * (Ycmax / (2 * dB ))*(Ycmax / (2 * dB * 100));
- cout << "C0max" << C0max << endl;
- //5 dточн
- float dtochn = eps * eps0 / (C0max*10);
- cout << "dtochn=" << dtochn << endl;
- //6 d
- float d = 0.00001;
- if ((dtech > dpro) && (dtech > dtochn))
- d += dtech;
- else if ((dpro > dtech) && (dpro > dtochn))
- d += dpro;
- else d += dtochn;
- cout << "d=" << d << endl;
- //7 C0
- float C0 = eps * eps0 / d;
- cout << "C0=" << C0 << endl;
- //8 S2
- float S2 = C / C0;
- cout << "S2=" << S2 << endl;
- //9 B2
- float B2 = sqrt(S2);
- cout << "B2=" << B2 << endl;
- //10 B1
- float B1 = B2 + 2 * dB/10 + 2 * dcowm/10;
- cout << "B1=" << B1 << endl;
- //11 B3
- float B3 = B1 + 2 * (dB/10 + dcowm/10);
- cout << "B3=" << B3 << endl;
- //12 S3
- float S3 = B3 * B3;
- cout << "S3=" << S3 << endl;
- //13 Rob
- float Rob = pob * 1;
- //14 w
- float w = 2 * 3.14 * f;
- cout << "w=" << w << endl;
- //15 tgbоб
- float tgbob = 2 * w*Rob*C*pow(10,-12) / 3;
- cout << "tgbоб=" << tgbob << endl;
- //16 tgbdiel
- float tgbdiel = 0.01;
- cout << "tgbdiel=" << tgbdiel << endl;
- //17 tgbrab
- float tgbrab = tgbob + tgbdiel;
- cout << "tgbrab=" << tgbrab << endl;
- if (tgbrab > tgb) cout << "Wrong tgb";
- //18 Erab
- float Erab = Up / d;
- cout << "Erab=" << Erab;
- if (Erab > Epro) cout << "Wrong Epr";
- system("pause");
- }
Add Comment
Please, Sign In to add comment