Code in language C++, massive structures
Describe the mass of structures of 3 elements.Each structure combines the data for the given calculation option.It is necessary for each variant on the time range from 0 to T with the step to build a chart of change of active power P_a (vt), which is dissipated in the dialect.P_a = u^(2) * 2πfc * tg(δ), where
U - the value of tension (vt)
Frequency of current (Hz)
c - the capacity of the condensator (F)
tg(δ) is the tenge of the corner of dielectric loss.Frequency u_i frequency f changes in time:
by U = {
u_0(1-e^(-kt)) for t ∈ [ 0, T/4 ]
u_0(1-e^(-k * (T/4))) for t ∈ [ T/4, T/2 ]
u_0(1-e^(-kt)) e^(-k *(t- (T/2)) for t ∈ [ T/2 , T ]
by k = {
k_0(1+mt) for t ∈ [0, T/2]
k_0(1+m * (T/2)) for t ∈ [T/2, T]
Here u_0, k_0, m is the assigned constants.f = {
f_0(1+ht) for t ∈ [0, T/4]
f_0(1+h*(T/4)) for t ∈ [T/4, (3T)/4]
f_0(1+h*(T/4)) - f_0 *e^(-h(t-(3/4)*T)) for t ∈ [(3T)/4, T]
f_0, h is the fixed constant.The input data is counted from a file ( .txt format).The results of the calculations are entered into another file.Predict separate functions for calculations f k u.Input data
1 .T = 10 c, ∆t = 0.5 c, u_0 = 100 B, k_0 = 0.1 , m= 0.1 , f_0 = 1000 Hz, h = 0.1 , C = 1000 * 10^-12 f, tg(δ) = 10^-3.2. u_0 = 120 B, m = 0.15 , f_0 = 1500 Hz , h = 0.12 , C = 2000 * 10^-12 f , tg(δ) = 0.005. Other data are wonders.by p.1 .3. u_0 = 90 B, m = 0.2, f_0 = 2000 Hz, h = 0.15, C = 4000 * 10^-12 f, tg(δ) = 0.008. Other data are wonders.by p.1 .
Applications 3
-
5852 345 0 I can use C++ in Visual Studio.
In general, the task is understood, you just need to clarify according to the structure of the input file.
If the structure is voluntary, I will do it myself.
There will be both the masses of structures and functions for the calculation of physical sizes.
The output file content will be convenient to build graphs in Excel.
-
280 5 0 Good day . Get acquainted with your project and ready to approach it with maximum responsibility, and implement in the shortest time possible, but you need to discuss the details of the project.