Metadata-Version: 2.4
Name: cassy-fatigue
Version: 0.1.0
Summary: Nodal fatigue post-processing of Ansys results using CASSY design-code rules
Author: F4E engineering analyses unit
License-Expression: EUPL-1.2
Project-URL: Documentation, https://fusion4energy.github.io/cassy-fatigue/
Project-URL: Repository, https://github.com/Fusion4Energy/cassy-fatigue
Project-URL: Issues, https://github.com/Fusion4Energy/cassy-fatigue/issues
Keywords: fatigue,ansys,dpf,fem,design codes,RCC-MRx,SDC-IC
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Science/Research
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: ansys-dpf-core<0.17,>=0.16.3
Requires-Dist: cassy-f4e>=3.3.2
Requires-Dist: numpy
Requires-Dist: pyvista
Requires-Dist: PySide6>=6.6
Requires-Dist: pyvistaqt>=0.11
Requires-Dist: PyYAML>=6.0
Provides-Extra: dev
Requires-Dist: build>=1.2; extra == "dev"
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: pytest-qt>=4; extra == "dev"
Requires-Dist: ruff==0.17.4; extra == "dev"
Requires-Dist: twine>=5; extra == "dev"
Provides-Extra: mapdl
Requires-Dist: ansys-mapdl-core>=0.74.1; extra == "mapdl"
Provides-Extra: docs
Requires-Dist: zensical; extra == "docs"
Dynamic: license-file

# cassy-fatigue

<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/Fusion4Energy/cassy-fatigue/main/docs/images/logo_full_dark.svg">
  <img src="https://raw.githubusercontent.com/Fusion4Energy/cassy-fatigue/main/docs/images/logo_full.svg" alt="cassy-fatigue" width="500"/>
</picture>

Design-code fatigue assessment at **every node** of an Ansys Mechanical solid model.

CASSY checks fatigue along linearized stress paths. For thermally cycled components the
critical point is often not on a path you defined. `cassy-fatigue` reads the nodal
stresses and temperatures of your `.rst`/`.rth` files with Ansys DPF and applies CASSY's
own fatigue rules (SDC-IC, RCC-MRx, RCC-MR) at each node. For every fatigue event you
define it gives the usage `Vj = ncycles / N`, and the total `U_total = Σ Vj`, as a map of
the whole model.

The assessment is set up and run in a graphical editor: add the result files, assign
CASSY materials, define loads (signed combinations of result sets, classified P or Q)
and fatigue events (sums of loads with a cycle count), then *Save and run*. The results
open in a built-in 3D viewer with hotspot tables and node reports.

## Install

Requirements: Ansys with DPF (and a license) and Python ≥ 3.11. CASSY (`cassy-f4e`
3.3.2 or later) is installed automatically.

```bash
python -m pip install cassy-fatigue
```

## Use

```bash
cassy-fatigue gui                                  # new assessment
cassy-fatigue gui results/example/fatigue.vtu      # results viewer only
```

On Windows, `cassy-fatigue-gui` starts the GUI without a console window. A run writes
`fatigue.vtu` (usage, allowable cycles, stress ranges, temperatures and invalid flags at
every node), `configuration.yaml` and `traceability.json` (versions, file hashes,
units). A local DPF server is started and stopped automatically.

Advanced users can write the configuration file by hand and run it from the command line
(`cassy-fatigue run my_assessment.yaml --output results/`), see
[Configuration file](https://fusion4energy.github.io/cassy-fatigue/configuration.html) and [Command line](https://fusion4energy.github.io/cassy-fatigue/cli.html).

## Documentation

The user guide is published at <https://fusion4energy.github.io/cassy-fatigue/>.

- [Getting started](https://fusion4energy.github.io/cassy-fatigue/getting-started.html)
- [Setting up an assessment](https://fusion4energy.github.io/cassy-fatigue/assessment.html) and [material assignment](https://fusion4energy.github.io/cassy-fatigue/materials.html)
- [Results viewer](https://fusion4energy.github.io/cassy-fatigue/viewer.html)
- [Results](https://fusion4energy.github.io/cassy-fatigue/outputs.html) and [troubleshooting](https://fusion4energy.github.io/cassy-fatigue/troubleshooting.html)
- [Scope and limitations](https://fusion4energy.github.io/cassy-fatigue/limitations.html)

Developers: see [Development](https://fusion4energy.github.io/cassy-fatigue/development.html) and
[AGENTS.md](https://github.com/Fusion4Energy/cassy-fatigue/blob/main/AGENTS.md).


