structural-fatigue
v1.0.5
Published
Calculates: fatigue stress, damage, equivalent modification factor
Downloads
2
Maintainers
Readme
structural-fatigue
structural-fatigue is javascript library for basic structural fatigue calculation
Installation
Use the package manager Node.js to install structural-fatigue.
npm install structural-fatigue
Usage
Input stress and related material constants should be defined in ksi
import {
calculateStressRatio,
calculateAlternatingStress,
calculateMeanStress,
calculateFatigueStress,
calculateDamage,
getDeratingFactor,
} from "structural-fatigue";
const minStress = -40;
const maxStress = 50;
const ultStrength = 155;
const stressRatio = calculateStressRatio(minStress, maxStress);
const altStress = calculateAlternatingStress(minStress, maxStress);
const meanStress = calculateMeanStress(minStress, maxStress);
const fatigueStress = calculateFatigueStress(
minStress,
maxStress,
"GOODMAN",
{ ultStrength: ultStrength },
true
);
const modificationFactors = {
loadType: "axial", //
surfFinish: ["RHR125", ultStrength],
miscFactor: 1.0,
};
const effectiveDeratingFactor = getDeratingFactor(modificationFactors);
const requiredCycle = 400_000;
const damage = calculateDamage(
fatigueStress,
requiredCycle,
ultStrength,
effectiveDeratingFactor
);