For the web, i host a calculator for determining the interior diameter of a sphere to resonate a given frequency and also the ability to create the spheres and generate stl files for 3d printing. i'm trying to create a widget to make the calculator easier and less clunky. There are two calculators. One for a sphere with a sound hole and one for a sphere with a tube to elongate the sound hole. The link to the calculator is here- Spherical Resonator Calculator. the two expressions i use for the calculators are,
17.87*((d/(f^2))^(1/3))
((3(d^2)(C^2))/(8L(f^2)*(3.14^2)))^(1/3)
where
d=diameter of sound hole
f=frequency to resonate
C=speed of sound
L=length of sound tube
in meters. both solve for the diameter of the sphere. i have been unable to create a widget with input fields for the variables. i'm not sure of the approach or correct settings for each entry when creating the widget.
any help would be appreciated.
thank you