Skip to content

LCF uniaxial SWT criterion #35#64

Open
itomac wants to merge 3 commits intofaberorg:mainfrom
itomac:LCF-uniax-SWT-crit-#35
Open

LCF uniaxial SWT criterion #35#64
itomac wants to merge 3 commits intofaberorg:mainfrom
itomac:LCF-uniax-SWT-crit-#35

Conversation

@itomac
Copy link
Collaborator

@itomac itomac commented Mar 15, 2026

Damage Accumulation Rule according to Palmgren-Miner

  • src/fatpy/core/damage_cumulationdamage_cumulation_palmgren_meiner.py
  • tests/core/test_src/fatpy/core/damage_cumulation/test_damage_cumulation.py

FIle src/fatpy/core/energy_life/demage_parameters.py was misspelled.

itomac added 3 commits March 8, 2026 23:43
Damage Accumulation Rule according to Palmgren-Miner
* src/fatpy/core/damage_cumulationdamage_cumulation_palmgren_meiner.py
* tests/core/test_src/fatpy/core/damage_cumulation/test_damage_cumulation.py
Changed location of the tests
LCF uniaxial SWT criterion
* src/fatpy/core/energy_life/damage_parameters.py
* tests/energy_life/test_damage_parameters.py
file `demage_parameters.py` renamed to `damage_parameters.py`.
Copy link
Collaborator

@Vybornak2 Vybornak2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PR contains both SWT and DMG Cumulation. Should be split.

Required structure:

Only STW will be commented:
According to architecture meeting both calculation of SWT DMG PARAM and LIFE based on SWT DMG PARAM should be exposed.

Required functions:

  1. calc_dmg_param_SWT()
  2. calc_life_SWT()

Note: names are yet to be decided, but I propose ones that I mentioned.

Vectorization

Functions should accept ArrayLike as input.
This allows both floats and arrays.

Output should be np.NDArray - meaning entities would be converted to arrays. What do you think? (either generic of python 3.12 or concrete type)

Solution should be such that would allow broadcasting to any amount of dimensions. (e.g. user might decide to have arrays reflecting different layers, materials, model parts using multiple dimensions)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants