transducer
A cantilever with a tip mass and bonded piezoelectric patches (31 mode) reduced to the one-mass numbers dynamics takes, referred to the motion of the tip mass's centre: force per volt (theta), clamped capacitance, short-circuit stiffness, effective and forcing mass, coupling k^2, short- and open-circuit frequencies; the beam's worst bending stress and each patch's peak strain per mm of motion, judged at a swing against a strain limit. Stepped Euler-Bernoulli beam (composite section per piece: neutral axis, EI), cubic finite elements, first mode with the tip mass or the static tip-load shape; series or parallel wiring; optional bond layer; length tuned to a frequency. Built-in PZT-5A and PVDF constants (CC BY sources). Files: shape.csv, scene.glb (the beam, patches and mass deflected, coloured by surface strain).
- Field
- Waves, optics and circuits
- Version
- 0.1.0
- Runs as
- Compiled (Rust)
- Typical run
- 2 s
Compiled from source: run sh packs/install.sh once before admitting it.
Known answers it must pass
r0001bare cantilever, static tip-load shape: K = 3EI/L^3 = 500 N/m, effective mass M_t + 33/140 m L, forcing mass M_t + 3/8 m L, root stress 3EI/L^3 x 1 mm x L x (h/2)/I = 30 MPa per mm (tolerance 1e-6: the stiffness solve's round-off at 240 elements)passed
stiffness_N_per_m500 ± 0.0005500lockedunder 0.01 % of the tolerance usedeffective_mass_kg0.0118386 ± 1.2e-080.0118386lockedunder 0.01 % of the tolerance usedforcing_mass_kg0.012925 ± 1.3e-080.012925lockedunder 0.01 % of the tolerance usedstress_per_mm_MPa30 ± 3e-0530lockedunder 0.01 % of the tolerance usedstress_per_mm_bare_MPa30 ± 3e-0530lockedunder 0.01 % of the tolerance usedstatic_stiffness_N_per_m500 ± 0.0005500lockedunder 0.01 % of the tolerance usedbeam_mass_kg0.0078 ± 7.8e-150.0078locked0.011 % of the tolerance usedr0002bare cantilever, first mode, no tip mass: f = 1.87510407^2/(2 pi) sqrt(EI/(m L^4)) = 81.799 Hz, modal mass at the tip m L/4 (tolerance 1e-5: mesh)passed
sc_frequency_Hz81.799 ± 0.0008281.799lockedunder 0.01 % of the tolerance usedeffective_mass_kg0.00195 ± 1.9e-080.00195lockedunder 0.01 % of the tolerance usedstiffness_N_per_m515.098 ± 0.0052515.098lockedunder 0.01 % of the tolerance usedr0003cantilever with a point tip mass, first mode: root of 1 + cos l cosh l + mu l (cos l sinh l - sin l cosh l) = 0, mu = 1.282, l = 1.18550, f = 32.6967 Hz (tolerance 1e-6)passed
sc_frequency_Hz32.6967 ± 3.3e-0532.6967lockedunder 0.01 % of the tolerance usedr0004two-layer section over the whole length (steel 1 mm + piezo 0.5 mm, E 66 GPa), static shape: neutral axis and EI of the two-layer section, K = 3EI/L^3, theta = |e31| b (z_p - z_n) x 3/(2L) (slope difference of the tip-load shape), C = eps33S b L / h_ppassed
sections.S1.neutral_axis_mm{"value": 0.6062231759656652, "rel_tol": 1e-12}sections.S1.EI_Nm2{"value": 0.33287643061516453, "rel_tol": 1e-12}stiffness_N_per_m998.629 ± 0.001998.629lockedunder 0.01 % of the tolerance usedtheta_N_per_V0.00121094 ± 1.2e-090.00121094lockedunder 0.01 % of the tolerance usedcapacitance_F2.65626e-08 ± 2.7e-202.65626e-08lockedunder 0.01 % of the tolerance usedr0005stepped beam: a PZT-5A patch (built-in constants) 8 x 15 x 0.2 mm from 5 mm on a 0.5 mm steel strip, tip load: compliance and the patch's slope difference by integrating M/EI piecewise (quadrature), theta and C by hand, root stress K x 1 mm x L x (h/2)/I on the bare root (tolerance 1e-6)passed
sections.S2.neutral_axis_mm{"value": 0.28111111111111114, "rel_tol": 1e-12}sections.S2.EI_Nm2{"value": 0.03204742547425475, "rel_tol": 1e-12}stiffness_N_per_m609.392 ± 0.00061609.392lockedunder 0.01 % of the tolerance usedtheta_N_per_V0.000284517 ± 2.8e-100.000284517lockedunder 0.01 % of the tolerance usedcapacitance_F7.93021e-09 ± 7.9e-217.93021e-09lockedunder 0.01 % of the tolerance usedstress_per_mm_MPa73.127 ± 7.3e-0573.127lockedunder 0.01 % of the tolerance usedstress_peak_at_mm0 ± 1e-090lockedunder 0.01 % of the tolerance usedstress_per_mm_bare_MPa73.127 ± 7.3e-0573.127lockedunder 0.01 % of the tolerance usedr0006a PZT-5A bimorph on brass with a 12 g tip mass (geometry and materials as restated, CC BY, in Machu et al., Sensors 21 (2021) 6759, Tables 1-2) wired in parallel: capacitance 2 eps33S b L/h_p (4 x the series value) while the coupling and the short-circuit frequency are the series wiring's (values pinned from this instrument's series run; that run was compared, read only, with the resonances published for this bimorph: within 0.4 %)passed
coupling_k20.113376 ± 1.1e-100.113376locked0.058 % of the tolerance usedsc_frequency_Hz45.7032 ± 4.6e-0845.7032lockedunder 0.01 % of the tolerance usedcapacitance_F1.65039e-07 ± 1.7e-191.65039e-07lockedunder 0.01 % of the tolerance usedr0007tune the free length of a bare cantilever to 100 Hz: L = sqrt(1.8751^2/(2 pi f) sqrt(EI/m)) = 90.4428 mm (tolerance 1e-5, mesh; the frequency hit to 1e-7: eigenvalue round-off)passed
length_m0.0904428 ± 9e-070.0904428lockedunder 0.01 % of the tolerance usedsc_frequency_Hz100 ± 1e-05100lockedunder 0.01 % of the tolerance usedr0008a tip mass whose centre sits 20 mm beyond the end of a bare cantilever, static: a force F there bends the beam by a tip force F and moment F e, so the centre moves F((L+e)^3 - e^3)/(3EI): K = 290.698 N/m; root moment F (L+e): 20.930232558139533 MPa per mm (tolerance 1e-6)passed
stiffness_N_per_m290.698 ± 0.00029290.698lockedunder 0.01 % of the tolerance usedstress_per_mm_MPa20.9302 ± 2.1e-0520.9302lockedunder 0.01 % of the tolerance usedr0009PVDF unimorph on steel with a 2.6 g tip mass over its last 4 mm, measured first resonance 18.7 Hz (Sensors 21 (2021) 6759, CC BY: Tables 1 and 2 and section 3.3); the tip mass taken as a point at its centre on a rigid 2 mm arm (tolerance 3 %: the mass's shape is not given; as a point at the end of a 69.9 mm beam it gives 1.4 % lower)passed
sc_frequency_Hz18.7 ± 0.5619.1091locked73 % of the tolerance used
Each line is one reading the kernel checked. The bright band is the tolerance; the needle is the value the instrument actually returned when it was admitted. A needle near the centre line used little of its tolerance.
Inputs
| Name | Unit | Default | Meaning |
|---|---|---|---|
beam_E_Pa | Pa | ||
beam_thickness_m | m | ||
beam_width_m | m | ||
beam_density_kg_per_m3 | kg/m^3 | ||
length_m | m | Free length, clamp to the beam's end (the start value when tune_length_to_Hz is given). | |
tip_mass_kg | kg | 0 | |
tip_offset_m | m | 0 | How far the tip mass's centre sits beyond the beam's end (rigidly attached). Readings per mm refer to that centre's motion. |
tip_inertia_kg_m2 | kg m^2 | 0 | Rotary inertia of the tip mass about its centre. |
patches | [] | ||
wiring | parallel | How every patch layer is connected (polarities taken to add). | |
bond_thickness_m | m | 0 | An adhesive layer under every patch (perfectly bonded, carries load). |
bond_E_Pa | Pa | 3000000000.0 | |
bond_density_kg_per_m3 | kg/m^3 | 1200 | |
shape | mode | Shape the lumped constants are taken over: the first mode with the tip mass, or the static shape under a force at the mass's centre. Both are reported. | |
elements | 240 | ||
tune_length_to_Hz | Hz | Find the free length that gives this short-circuit frequency (patches stay where they are). | |
tune_length_range_m | m | [shortest, longest] searched; default half to twice length_m. | |
swing_mm | mm | Motion amplitude of the mass's centre (e.g. @run:swing_mm from dynamics): stress and strain at it. | |
strain_limit | 1 | The patch's allowed peak strain (judged when swing_mm is given). | |
base_velocity_rms_mmps | mm/s | The base vibration: returns dynamics.velocity_rms_mmps scaled by forcing_ratio, so dynamics' one mass is forced as the beam is. |
Readings
| Name | Unit | Meaning |
|---|---|---|
length_m | m | |
theta_N_per_V | N/V | |
capacitance_F | F | |
stiffness_N_per_m | N/m | |
effective_mass_kg | kg | |
beam_share_kg | kg | |
forcing_mass_kg | kg | int(rho A phi) + M_tip: the mass the base acceleration pushes |
forcing_ratio | 1 | |
coupling_k2 | 1 | theta^2/(K C), as dynamics' coupling_k2 |
sc_frequency_Hz | Hz | |
oc_frequency_Hz | Hz | |
frequency_split_pct | % | |
static_stiffness_N_per_m | N/m | |
second_mode_Hz | Hz | |
stress_per_mm_MPa | MPa/mm | beam outer fibre, worst point, per mm of the mass's motion, patches bonded perfectly |
stress_per_mm_bare_MPa | MPa/mm | the same moment on the bare beam section: the bound when shear lag leaves the beam bare near patch ends and at the clamp (what fatigue gets) |
stress_bare_peak_at_mm | mm | |
stress_at_swing_bare_MPa | MPa | |
stress_peak_at_mm | mm | |
patch_strain_per_mm | 1/mm | |
beam_mass_kg | kg | |
tip_mass_kg | kg | |
swing_mm | mm | |
stress_at_swing_MPa | MPa | |
patch_strain_at_swing | 1 | |
strain_limit | 1 | |
strain_ok | ||
ok | ||
warnings | ||
tuned_to_Hz | Hz | |
patches | per patch layer (name_face): theta, capacitance, k31^2, clamped permittivity, e31, strain per mm, strain at the swing, ok | |
sections | per piece of constant layup: from, to, neutral axis from the beam's bottom face, EI, mass per length | |
other_shape | the same constants over the other shape | |
dynamics | for dynamics, by reference: @run:dynamics.theta_N_per_V and so on | |
fatigue | for fatigue: @run:fatigue.alternating_per_mm_MPa (the bare-section bound; alternating_per_mm_bonded_MPa with a perfect bond) | |
scene | ||
shape.csv | ||
scene.glb |
Try the call
Change a value and the command updates. Nothing runs here; paste it into your terminal or give it to your agent.