diff --git a/src/pages/tools/number/generic-calc/data/index.ts b/src/pages/tools/number/generic-calc/data/index.ts index 1a700db..465a203 100644 --- a/src/pages/tools/number/generic-calc/data/index.ts +++ b/src/pages/tools/number/generic-calc/data/index.ts @@ -2,5 +2,11 @@ import ohmslaw from './ohmsLaw'; import voltageDropInWire from './voltageDropInWire'; import sphereArea from './sphereArea'; import sphereVolume from './sphereVolume'; - -export default [ohmslaw, voltageDropInWire, sphereArea, sphereVolume]; +import slackline from './slackline'; +export default [ + ohmslaw, + voltageDropInWire, + sphereArea, + sphereVolume, + slackline +]; diff --git a/src/pages/tools/number/generic-calc/data/slackline.ts b/src/pages/tools/number/generic-calc/data/slackline.ts new file mode 100644 index 0000000..843a110 --- /dev/null +++ b/src/pages/tools/number/generic-calc/data/slackline.ts @@ -0,0 +1,49 @@ +import type { GenericCalcType } from './types'; + +const slackline: GenericCalcType = { + icon: 'mdi:bridge', + keywords: [ + 'mechanical', + 'rope', + 'webbing', + 'cord', + 'string', + 'tension', + 'clothesline' + ], + shortDescription: + 'Calculate the approximate tension of a slackline or clothesline. Do not rely on this for safety.', + name: 'Slackline Tension', + path: 'slackline-tension', + description: 'Calculates tension in a slackline', + longDescription: 'This calculator assumes a load in the center of the rope', + formula: 'T = (W * sqrt((S**2) + ((L/2)**2)) )/ (2S)', + presets: [], + variables: [ + { + name: 'L', + title: 'Length', + unit: 'meter', + default: 2 + }, + { + name: 'W', + title: 'Weight', + unit: 'pound', + default: 1 + }, + { + name: 'S', + title: 'Sag/Deflection', + unit: 'meter', + default: 0.05 + }, + { + name: 'T', + title: 'Tension', + unit: 'pound-force' + } + ] +}; + +export default slackline;