ademosh

храним

Feb 26th, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.11 KB | None | 0 0
  1. // Рассчет.cpp : Этот файл содержит функцию "main". Здесь начинается и заканчивается выполнение программы.
  2. //
  3. //cout<<<<endl;
  4. #include "pch.h"
  5. #include <iostream>
  6. using namespace std;
  7. int main()
  8. {
  9. float C, Yc = 15, Up;
  10. Up = 10;
  11. C = 3400;
  12. 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,
  13. alphaC = 2 * 0.0001;
  14. dtech = dtech * 0.000001;
  15. //1 dпрочн
  16. float dpro = Kz * Up / Epro;
  17. cout << "dpro=" << dpro << endl;
  18. //2 Yct
  19. float YCt = alphaC * (tmax - 20) * 100;
  20. cout << "YCt="<<YCt << endl;
  21. //3 Ycmax
  22. float Ycmax = Yc - Yc0 - Yct-YCt;
  23. cout << "Ycmax=" << Ycmax << endl;
  24. //4 C0max
  25. float C0max = C * (Ycmax / (2 * dB ))*(Ycmax / (2 * dB * 100));
  26. cout << "C0max" << C0max << endl;
  27.  
  28. //5 dточн
  29. float dtochn = eps * eps0 / (C0max*10);
  30. cout << "dtochn=" << dtochn << endl;
  31. //6 d
  32. float d = 0.00001;
  33. if ((dtech > dpro) && (dtech > dtochn))
  34. d += dtech;
  35. else if ((dpro > dtech) && (dpro > dtochn))
  36. d += dpro;
  37. else d += dtochn;
  38. cout << "d=" << d << endl;
  39.  
  40. //7 C0
  41. float C0 = eps * eps0 / d;
  42. cout << "C0=" << C0 << endl;
  43. //8 S2
  44. float S2 = C / C0;
  45. cout << "S2=" << S2 << endl;
  46. //9 B2
  47. float B2 = sqrt(S2);
  48. cout << "B2=" << B2 << endl;
  49. //10 B1
  50. float B1 = B2 + 2 * dB/10 + 2 * dcowm/10;
  51. cout << "B1=" << B1 << endl;
  52. //11 B3
  53. float B3 = B1 + 2 * (dB/10 + dcowm/10);
  54. cout << "B3=" << B3 << endl;
  55. //12 S3
  56. float S3 = B3 * B3;
  57. cout << "S3=" << S3 << endl;
  58. //13 Rob
  59. float Rob = pob * 1;
  60. //14 w
  61. float w = 2 * 3.14 * f;
  62. cout << "w=" << w << endl;
  63. //15 tgbоб
  64. float tgbob = 2 * w*Rob*C*pow(10,-12) / 3;
  65. cout << "tgbоб=" << tgbob << endl;
  66. //16 tgbdiel
  67. float tgbdiel = 0.01;
  68. cout << "tgbdiel=" << tgbdiel << endl;
  69. //17 tgbrab
  70. float tgbrab = tgbob + tgbdiel;
  71. cout << "tgbrab=" << tgbrab << endl;
  72. if (tgbrab > tgb) cout << "Wrong tgb";
  73. //18 Erab
  74. float Erab = Up / d;
  75. cout << "Erab=" << Erab;
  76. if (Erab > Epro) cout << "Wrong Epr";
  77. system("pause");
  78.  
  79. }
Add Comment
Please, Sign In to add comment