Add slack line calc

This commit is contained in:
Daniel Dunn
2025-05-06 01:19:54 -06:00
parent 7813594bbb
commit a31fe6b617
2 changed files with 57 additions and 2 deletions

View File

@@ -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
];

View File

@@ -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;