structural-fatigue

1.0.5 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i structural-fatigue

    Weekly Downloads

    1

    Version

    1.0.5

    License

    MIT

    Unpacked Size

    18.7 kB

    Total Files

    11

    Last publish

    Collaborators

    • grjus