A program to recognize and reward our most engaged community members
I want to create a 2D curve with the values of the first harmonic of TorqueElecMag(ROTOR) to see how it changes with an I/O Parameter. Is that possible?
Hi,
When you draw the curve of the torque, you can get the FFT of this curve. To do it:
From this curve you get the first harmonic of the torque. And if you want of see the effect of I/O parameters you need to draw the FFT.
Best regards.
Thanks for answering..
But I was wondering if theres a way to create a 2d curve with the first harmonic module on the Y axis and different values of an I/O parameter on the X axis.
Right now I can do the fft spectrum separately for each value of the I/O parameter but I don't know how to do a 2d curve with the values I mentioned earlier.
To get the first harmonic from a curve you can use this python script:
print Curve2d['SPECTRUM_V1'].y[0].values[0]
Where :
To draw the curve, you can create an I/O parameter:
b= Curve2d['SPECTRUM_V1'].y[0].values[0]
print b
lastInstance = VariationParameterFormula(name='First_harmonic',
formula=str(b))
Hope this will help.