Амплитуда виброускорения, м/с2:
-
Амплитуда виброперемещения, мм:
-
Средняя частота, Гц (f = √ f1 • f2 ) :
-
function do_calc() {
const v1 = document.getElementById('value1');
const v2 = document.getElementById('value2');
const v3 = document.getElementById('value3');
const r1 = document.getElementById('result1');
const r2 = document.getElementById('result2');
const r3 = document.getElementById('result3');
const G = 9.81;
f1 = parseFloat(v1.value);
f2 = parseFloat(v2.value);
ag = parseFloat(v3.value);
f = Math.sqrt(f1*f2);
ams = ag*G;
s = (ams*1000.0)/(4*Math.PI*Math.PI*f*f);
ds = s * 2;
f = Math.round(f * 100) / 100;
s = Math.round(s * 100) / 100;
ams = Math.round(ams * 1000) / 1000;
ds = Math.round(ds * 100) / 100;
r1.innerHTML = ams.toString() + " м/с²";
r2.innerHTML = s.toString() + " мм