Open felixrico opened 1 year ago
At the moment if the frequency is not in the list no correction is applied. The piezo lag is set to 0 deg and the amplitude quotient is set to 1.
We can call and discuss about how to implement the interpolation.
I agree about how the tolerances are calculated right now is not the best. We can discuss that too. I will send an email
Piezo lag correction in:
https://github.com/jlopezalo/PyFMRheo/blob/62c11c7075c514f6a79d1007de81194be8bda8e5/src/pyfmrheo/models/rheology.py#L41
What happens if the frequency of oscillation is not in the list of piezo-characterization? I think that we should interpolate an calculate a value of fi in that case.
Also, the tolerance should be better calculated from the ratio of the frequencies between experimental (f_exp) and expected (f_theor) and not the difference. Maybe the abs(f_exp/f_theor-1). And maybe we should use a lower value.