"> {[] rezult={«», «», «», «», «», «», «» };
/ * Qг. в. max * / [0]=Convert. ToString (Math. Round (Convert. ToDouble (nagruzka) * 2.4f,
));
/ * Qг. в. цирк * / [1]=Convert. ToString (Math. Round (Convert. ToDouble (nagruzka) * 0.25f / (1 + 0.25f),
));
/ * Gг. в. max * / [2]=Convert. ToString (Math. Round (Convert. ToDouble (rezult [0]) * 1000 / (Convert. ToDouble (T1) - Convert. ToDouble (T2)),
));
/ * Gг. в. min * / [3]=Convert. ToString (Math. Round (Convert. ToDouble (rezult [1]) * 0.8f * 100,3));
/ * Gцірк. max * / [4]=Convert. ToString (Math. Round (Convert. ToDouble (rezult [3]) * 1.5f,
));
/ * Gцірк. min * / [5]=Convert. ToString (Math. Round (Convert. ToDouble (rezult [3]) * 0.4f,
));
/ * Gг. в. років * / [6]=Convert. ToString (Math. Round (Convert. ToDouble (rezult [2]) * 0.8f,
)); rezult;
} 2: / / ГВП тупикова
{[] rezult={«», «», «» };
/ * Qг. в. max * / [0]=Convert. ToString (Math. Round (Convert. ToDouble (nagruzka) * 2.4f,
));
/ * Gг. в. max * / [1]=Convert. ToString (Math. Round (Convert. ToDouble (rezult [0]) * 1000 / (Convert. ToDouble (T1) - Convert. ToDouble (T2)),
)); [2]=Convert. ToString (Math. Round (Convert. ToDouble (rezult [1]) / 3600,6)); rezult;
}:
{[] rezult={«» }; Rezult;
}
}
} [] calculatePoteri (object dyprib, object dytrub, object inputrashod)
{rashod=Convert. ToDouble (inputrashod); dypribora=Convert. ToDouble (dyprib) / 1000; dytruboprovoda=Convert. ToDouble (dytrub) / 1000; L=Math. Round (getTrubaLength (dypribora), 1); v=rashod / ((3.14f * dytruboprovoda * dytruboprovoda) / 4.0f); Re=v * dytruboprovoda / (0.415f * Math. Pow (10, - 6.0f)); Rep=560.0f * dytruboprovoda / 0.0002f; lt; (Re
); hdif=((0.46f * lt * (1 - 1 / (n * n))) + (0.5f * (1 - 1 / (n * n)) * v * v) / (2.0f * 9.81f)); hkonf=((0.46f * lt * (1 - 1 / (n * n))) * (v * v / (2.0f * 9.81f))); hp =htr + hdif + hkonf + 0.1f; [] rezult={L, Math. Round (v, 3), Math. Round (lt, 3), n,. Round (htr, 3), Math. Round (hdif, 3), Math. Round (hkonf, 3),. Round (hp, 3)}; rezult;
}
}
}
getFunctions. cs
using System; System. Collections. Generic; SystemponentModel; System. Data; System. Drawing; System. Linq; System. Text; System. Windows. Forms; ProjectCreator
{partial class MainForm: Form
{getTrubaLength (object dypribora)
{dy=Convert. ToInt32 (dypribora); (dy>=50) {return 1.2f; } If (dy == 40) {return 1.0f; } {Return 0.8f; }