Skip to content

Commit

Permalink
Restructure repo
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusgh committed May 11, 2024
1 parent 646fc01 commit b7c7ed2
Show file tree
Hide file tree
Showing 604 changed files with 14 additions and 7,213 deletions.
File renamed without changes.
File renamed without changes.
27 changes: 14 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# ThermoNTFA

<!-- The badges we want to display
[![pages-build-deployment](https://github.com/Systems-Theory-in-Systems-Biology/EPI/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/Systems-Theory-in-Systems-Biology/EPI/actions/workflows/pages/pages-build-deployment)
[![Build & Publish Documentation](https://github.com/Systems-Theory-in-Systems-Biology/EPI/actions/workflows/sphinx.yml/badge.svg)](https://github.com/Systems-Theory-in-Systems-Biology/EPI/actions/workflows/sphinx.yml)
[![Publish to PyPI](https://github.com/Systems-Theory-in-Systems-Biology/EPI/actions/workflows/publish.yml/badge.svg)](https://github.com/Systems-Theory-in-Systems-Biology/EPI/actions/workflows/publish.yml)
[![pytest](https://img.shields.io/github/actions/workflow/status/Systems-Theory-in-Systems-Biology/EPI/ci.yml?label=pytest&logo=pytest)](https://github.com/Systems-Theory-in-Systems-Biology/EPI/actions/workflows/ci.yml)
<!-- The badges we want to display -->
[![pages-build-deployment](https://github.com/DataAnalyticsEngineering/ThermoNTFA/actions/workflows/pages/pages-build-deployment/badge.svg)](https://github.com/DataAnalyticsEngineering/ThermoNTFA/actions/workflows/pages/pages-build-deployment)
[![Build & Publish Documentation](https://github.com/DataAnalyticsEngineering/ThermoNTFA/actions/workflows/sphinx.yml/badge.svg)](https://github.com/Systems-Theory-in-Systems-Biology/EPI/actions/workflows/sphinx.yml)
[![Publish to PyPI](https://github.com/DataAnalyticsEngineering/ThermoNTFA/actions/workflows/publish.yml/badge.svg)](https://github.com/DataAnalyticsEngineering/ThermoNTFA/actions/workflows/publish.yml)
[![pytest](https://img.shields.io/github/actions/workflow/status/DataAnalyticsEngineering/ThermoNTFA/ci.yml?label=pytest&logo=pytest)](https://github.com/DataAnalyticsEngineering/ThermoNTFA/actions/workflows/ci.yml)

[![flake8](https://img.shields.io/badge/flake8-checked-blue.svg)](https://flake8.pycqa.org/)
[![black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE.md)
[![Python](https://img.shields.io/badge/python-3.10-purple.svg)](https://www.python.org/)
[![Python](https://img.shields.io/badge/python-3.11-purple.svg)](https://www.python.org/)
![PyPI](https://img.shields.io/pypi/v/thermontfa)
-->


This repository contains a material routine written in *Python* for the thermo-elasto-plastic Nonuniform Transformation Field Analysis (**ThermoNTFA**) published in ...

Expand All @@ -36,24 +36,25 @@ The documentation of this software, including examples on how to use **ThermoNTF

### Offline phase: Training of the thermo-mechanical NTFA

1. Generate data using thermo-elasto-plastic simulations on the microscale at select temperatures $\theta \in \mathcal{T}$.
1. Generate data using thermo-elasto-plastic simulations on the microscale at select temperatures $`\theta \in \mathcal{T}`$.
For that, we used an in-house FE solver. However, any other suitable simulation software could be used.

2. Compute a reduced basis consisting of plastic modes $\underline{\underline{P}}\_{\mathsf{p}}$ via snapshot POD of the simulated plastic strain fields $\{\varepsilon_\mathsf{p}(x | \theta)\}^n_{i=1}$.
2. Compute a reduced basis consisting of plastic modes $`\underline{\underline{P}}_{\mathsf{p}}`$ via snapshot POD of the simulated plastic strain fields $`\{\varepsilon_\mathsf{p}(x | \theta)\}^n_{i=1}`$.
The corresponding implementation is available in our [AdaptiveThermoMechROM](https://github.com/DataAnalyticsEngineering/AdaptiveThermoMechROM) repository in the module [ntfa.py](https://github.com/DataAnalyticsEngineering/AdaptiveThermoMechROM/blob/ntfa/ntfa.py).

3. Perform additional linear-elastic simulations to determined self-equilibrated fields for the plastic modes $\underline{\underline{P}}_\mathsf{p}$ at select temperatures $\theta \in \mathcal{T}$.
3. Perform additional linear-elastic simulations to determined self-equilibrated fields for the plastic modes $`\underline{\underline{P}}_\mathsf{p}`$ at select temperatures $`\theta \in \mathcal{T}`$.
Again, we used our in-house FE solver for that.

4. Based on the generated data at select temperatures $\theta \in \mathcal{T}$ we perform an interpolation to arbitrarily many intermediate temperatures $\theta_j$.
4. Based on the generated data at select temperatures $`\theta \in \mathcal{T}`$ we perform an interpolation to arbitrarily many intermediate temperatures $`\theta_j`$.
This method is published in our paper ["Reduced order homogenization of thermoelastic materials with strong temperature-dependence and comparison to a machine-learned model"](https://doi.org/10.1007/s00419-023-02411-6), where we show that it produces highly accurate results while the effort is almost on par with linear interpolation.

5. Using the interpolated data, the NTFA system matrices $\underline{\underline{A}}(\theta_j)$, $\underline{\underline{D}}(\theta_j)$, $\bar{\underline{\underline{C}}}(\theta_j)$, $\underline{\tau}\_{\mathrm{\theta}}(\theta_j)$, and $\underline{\tau}_{\mathsf{p}}(\theta_j)$ are computed and stored as tabular data.
5. Using the interpolated data, the NTFA system matrices $`\underline{\underline{A}}(\theta_j)`$, $`\underline{\underline{D}}(\theta_j)`$, $`\bar{\underline{\underline{C}}}(\theta_j)`$, $`\underline{\tau}_{\mathrm{\theta}}(\theta_j)`$, and $`\underline{\tau}_{\mathsf{p}}(\theta_j)`$ are computed and stored as tabular data.
The corresponding implementation is available in our [AdaptiveThermoMechROM](https://github.com/DataAnalyticsEngineering/AdaptiveThermoMechROM) repository in the module [ntfa.py](https://github.com/DataAnalyticsEngineering/AdaptiveThermoMechROM/blob/ntfa/ntfa.py).

### Online phase: Usage of the thermo-mechanical NTFA in simulations on the macroscale

1. Load the tabular data for the NTFA matrices $\underline{\underline{A}}(\theta_j)$, $\underline{\underline{D}}(\theta_j)$, $\bar{\underline{\underline{C}}}(\theta_j)$, $\underline{\tau}\_{\mathrm{\theta}}(\theta_j)$, and $\underline{\tau}_{\mathsf{p}}(\theta_j)$ that are generated in the offline phase based on direct numerical simulations on the microscale.
1. Load the tabular data for the NTFA matrices $`\underline{\underline{A}}(\theta_j)`$, $`\underline{\underline{D}}(\theta_j)`$, $`\bar{\underline{\underline{C}}}(\theta_j)`$, $`\underline{\tau}\_{\mathrm{\theta}}(\theta_j)`$, and $`\underline{\tau}_{\mathsf{p}}(\theta_j)`$ that are generated in the offline phase based on direct numerical simulations on the microscale.
Optionally truncate the NTFA modes $`N_{\mathrm{modes}}`$ to be used.

2. Perform a linear interpolation to determine the NTFA matrices at the current model temperature based on the tabular data.
Given that the tabular data is available at sufficiently many temperatures, the linear interpolation provides results with decent accuracy.
Expand Down
12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0300.00_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0310.10_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0320.20_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0330.30_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0340.40_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0350.51_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0360.61_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0370.71_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0380.81_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0390.91_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0401.01_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0411.11_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0421.21_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0431.31_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0441.41_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0451.52_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0461.62_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0471.72_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0481.82_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0491.92_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0502.02_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0512.12_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0522.22_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0532.32_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0542.42_fix16_N24_100s.inp

This file was deleted.

12 changes: 0 additions & 12 deletions loadcases/loadcase1_T0552.53_fix16_N24_100s.inp

This file was deleted.

Loading

0 comments on commit b7c7ed2

Please sign in to comment.