1.0.5 • Published 3 years ago

structural-fatigue v1.0.5

Weekly downloads
19
License
MIT
Repository
github
Last release
3 years ago

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

License

MIT

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago