Skip to content

fix micro and test#99

Merged
chemiskyy merged 3 commits into
masterfrom
fix/micro
Jul 22, 2026
Merged

fix micro and test#99
chemiskyy merged 3 commits into
masterfrom
fix/micro

Conversation

@chemiskyy

Copy link
Copy Markdown
Member

This pull request introduces improvements to tangent mode propagation in the micromechanics code and adds a new regression test to ensure correct behavior when using a plastic (modular) matrix in the Mori-Tanaka homogenization. The main focus is on ensuring that the correct tangent mode is consistently used and tested throughout the codebase.

Tangent mode propagation improvements:

  • Ensured that tangent_mode is explicitly copied in the state_variables assignment operator and in the rotate_g2l method, so that the solver’s tangent mode parameter is always properly propagated and used by the kernels. [1] [2]
  • In umat_multi, explicitly set each sub-phase's tangent_mode to simcoon::tangent_continuum at the start of the localization process, preventing the caller's tangent mode from leaking into the localization schemes.

Testing and validation:

  • Added a new test file test/Umats/MIMTP/TMIMTP.cpp that verifies the correct tangent mode is used in the incremental Mori-Tanaka formulation with a plastic (modular) matrix, guarding against regressions in tangent mode propagation.
  • Registered the new test in test/CMakeLists.txt so it is included in the test suite.

Add test data and reference output for the Umats MIMTP test suite. Files added: comparison/results_job_global-0.txt (reference results), data/Nellipsoids0.dat (ellipsoid/particle definitions), data/material.dat (material parameters and orientation), data/path.txt (test loading path and temperature), data/solver_control.inp (solver control parameters, executable), and data/solver_essentials.inp (solver type and rate). These provide input and expected output for regression tests of the MIMTP umat implementation.
Add MSVC dev environment and sccache actions to Windows jobs and enable sccache + Ninja integration. Install ninja in the editable install and CI steps, set SCCACHE_GHA_ENABLED and CMAKE_ARGS/CMAKE_*_LAUNCHER so scikit-build-core/CMake use sccache, and switch the Windows build to the Ninja generator. This speeds Windows builds by enabling compiler caching and ensures the compiler-launcher setting is honored.
@chemiskyy
chemiskyy merged commit 5413900 into master Jul 22, 2026
7 checks passed
@github-project-automation github-project-automation Bot moved this from Backlog to Done in simcoon 2.0 Jul 22, 2026
@chemiskyy
chemiskyy deleted the fix/micro branch July 22, 2026 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant