explicit-adaptive-substepping

Invoke when an explicit UMAT uses embedded Euler/modified Euler, adaptive substepping with accept/reject strategy, and local DT control of local error. The module requires acceptance of stress and all state variables based on the worst component; each step must be truncated so DT ≤ 1−T and only advance T upon acceptance, and the sequence is successful only if all accepted steps reach T=1 without omission. Rejected steps must rollback and reduce step size. Do not use this flow to solve for α, implicit Δλ, to correct drift in isolation, or to set PNEWDT directly. Trial‑only or already‑committed contamination is handled by transactional updates.

Last repository push
GitHub Stars
153
Forks
25
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "explicit-adaptive-substepping" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-7b8dc846e46408c8f332263282b359cd350a2342344f63c35f5d69e67c64e31c. Verify the upstream source and version against https://github.com/xvchujin/umat-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Invoke when an explicit UMAT uses embedded Euler/modified Euler, adaptive substepping with accept/reject strategy, and local DT control of local error. The module requires acceptance of stress and all state variables based on the worst component; each step must be truncated so DT ≤ 1−T and only advance T upon acceptance, and the sequence is successful only if all accepted steps reach T=1 without omission. Rejected steps must rollback and reduce step size. Do not use this flow to solve for α, implicit Δλ, to correct drift in isolation, or to set PNEWDT directly. Trial‑only or already‑committed contamination is handled by transactional updates.

0 Downloads

Introduction source: third_party · xvchujin · 0.0.1 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: explicit-adaptive-substepping
description: |
  当显式 UMAT 用 embedded Euler/改进 Euler、adaptive substepping、accept/reject 与 local DT 控制局部误差时调用。应力和全部状态按最坏分量验收;每步先截断 `DT≤1−T`,仅接受后推进 T,所有接受步无遗漏到达 `T=1` 才成功。拒步回滚并缩步。不能找 α、求隐式 Δλ、单独修漂移或直接设 PNEWDT;纯 trial/committed 污染转事务更新。

显式 UMAT 的联合状态自适应子步

I — 方法论骨架 (Interpretation)

自适应子步是在一次 UMAT 全局应变增量内部,用归一化局部路径参数 T∈[0,1] 控制积分工作量。 每个候选子步开始前都要保存完整 committed 快照,包括应力、所有演化状态及路径位置。 从同一快照计算低阶和高阶近似;两种近似必须覆盖同一组状态变量,不能只提高应力阶数。 两解之差只是局部截断误差代理 η_emb,需用绝对/相对混合尺度归一化,并以所有受控分量中的最坏值验收。 数值误差门与物理约束门相互独立:η_emb 合格不代表屈服残差、定义域和有限数合格;η_emb 也不是 Tsai-Wu 失效指数 e。 只有所有门都通过才原子提交高阶候选并推进 T;任何门失败都恢复快照,再缩小局部 DT 重算同一段。 步长控制器既要限制增长,也要给出缩小下界、局部步长下限、重试上限和剩余区间截断。 预算耗尽不是“接受最后结果”的理由,而是带着干净旧状态进入全局失败/cutback 协议。


A2 — 触发场景 (Future Trigger)

用户会在什么情境下需要这个 skill?

  1. 显式本构积分对固定子步数敏感,精度与速度无法兼顾。
  2. 代码已有 Euler/Heun、RK23/RKF23 或两组候选解,却没有可靠 accept/reject 和 rollback。
  3. 应力误差合格但硬化、孔隙比、织构或损伤变量随步长明显漂移。
  4. 局部子步无限缩小、反复重试,或在最小步长处静默接受坏解。
  5. 正在审查 RTOL、XTOLRC、CNVERG、local DT、substep controller。

语言信号 (用户的话里出现这些就应激活)

  • “显式积分怎么自动分子步 / adaptive substepping”
  • “embedded Euler / improved Euler / RKF23 error estimate”
  • “accept reject rollback / rejected step still changes STATEV”
  • “RTOL、XTOLRC、CNVERG 怎么定义”
  • “应力收敛但内变量不收敛 / joint-state error norm”

与相邻 skill 的区分

  • 与 explicit-alpha-yield-intersection:后者先定位弹性终点 α;本 skill 对剩余 (1-α)Δε 分配和验收局部 DT。
  • 与 explicit-yield-drift-correction:本 skill 控制两阶近似差 η_emb;后者在候选子步后检查并修复屈服残差。
  • 与 umat-failure-cutback-protocol:本 skill 优先在 UMAT 内局部重试;后者只在局部预算耗尽或不可恢复失败时请求全局重算。
  • 与 umat-transactional-state-update:本 skill 必须同时出现嵌入误差估计、local DT 和接受/拒绝控制;若只需修复 trial/committed 状态污染,使用事务式状态技能。
  • 与隐式 return mapping:本 skill 的 DT 控制显式路径离散,不负责求解一致性乘子 Δλ。

E — 可执行步骤 (Execution)

  1. 定义联合状态、尺度和配置

    • 列出应力与所有演化状态 y=[σ,q],为每一类量给出 atol_i+rtol_i·scale_i,并参数化安全系数、增长/缩小限幅、DT_min、重试和总子步预算。
    • 完成标准:没有演化变量被排除于误差控制;无量纲误差在分量过零时仍有限,参数的单位依赖被记录。
    • 判停路径:若关键状态无可辩护尺度或存在未初始化分量,停止配置,不能用单个裸相对误差继续。
  2. 建立归一化局部路径

    • 把待积分的剩余应变映射到 T∈[0,1],初始化 T=0,并令 DT 不超过剩余 1-T。
    • 完成标准:每个接受子步的局部增量之和最终精确覆盖剩余路径,无超调、重复或漏积分。
  3. 对子步起点做完整快照

    • 保存应力、全部状态变量、能量/辅助输出、T 以及控制器所需历史;候选计算只写 trial 缓冲区。
    • 完成标准:执行任意次数拒绝后,逐分量比较都能恢复到相同起点。
  4. 从同一起点计算嵌入解对

    • 形成低阶候选 y_L 和高阶候选 y_H;每次斜率评价使用对应的完整候选状态,所有内部变量与应力采用设计要求的同阶公式。
    • 完成标准:两解覆盖同一物理时间段和同一状态向量,独立常步长收敛试验显示预期阶次。
    • 判停路径:导数、候选状态或尺度出现 NaN/Inf、越过模型定义域时,拒绝本子步;若缩步后重复出现则进入失败升级。
  5. 计算最坏分量误差 η_emb

    • 对每个受控分量计算尺度化 |y_H-y_L|/(atol_i+rtol_i·scale_i),用最大值或明确的保守范数组合;另保留各分量诊断。
    • 完成标准:人为放大任一状态误差都会使总 η_emb 不减;复核 CNVERG 不存在“小误差覆盖大误差”,FDIFTL 等受控量没有遗漏。
  6. 执行独立的数值门和物理门

    • 数值门要求 η_emb≤1(或等价明确阈值);物理门检查有限数、可容许域、屈服残差和模型不变量,必要时调用漂移修正后重新验收。
    • 完成标准:每个门有独立布尔结果和失败原因;漂移修正后的状态仍需重新通过全部相关门。
  7. 接受:原子提交并调下一步

    • 仅在所有门通过后提交 y_H,推进 T←T+DT,按嵌入阶数和 η_emb 计算下一 DT,施加增长上限并截到剩余区间。
    • 完成标准:一次提交包含应力和所有状态;T 单调且最终在容差内到达 1;控制器不会因 η_emb=0 产生除零或无界放大。
  8. 拒绝:回滚并重算同一段

    • 丢弃全部 trial 输出,从快照恢复,按安全系数缩小局部 DT,增加拒绝计数但不推进 T。
    • 完成标准:失败子步对已提交材料历史的净影响严格为零;新 DT 有限、为正且小于旧值。
    • 判停路径:DT≤DT_min、重试/总子步预算耗尽、控制器停滞,或同一不可恢复域错误重复出现时,停止局部循环并交给 umat-failure-cutback-protocol。
  9. 结束与独立精度核验

    • 到达 T=1 后返回联合状态及诊断;用至少两档容差和高精度参考路径检查误差随容差收紧而下降。
    • 完成标准:结果不依赖任意初始子步,且接受/拒绝数量、最坏误差分量、最小 DT 可追踪。

B — 边界 (Boundary)

五个控制量必须隔离

  • α:总增量中先走完的弹性路径比例;它只决定子步器接收多少剩余应变,不是子步大小。
  • 局部 DT:归一化局部路径 T 的一次推进量;它是 UMAT 内部变量,不等于 Abaqus 的全局 DTIME。
  • Δλ:塑性流动/一致性方程的乘子;显式子步可以更新它所代表的塑性演化,但 DT 不是 Δλ。
  • PNEWDT:返回给 Abaqus 的全局增量比例建议;局部拒绝应先调整局部 DT,不应每次都改 PNEWDT。
  • η_emb:嵌入解对差异构成的局部误差代理;它不是真实误差,不等于屈服漂移残差 f,也不等于 Tsai-Wu 失效指数 e。

不要在以下情况使用此 skill

  • 唯一任务是找弹性路径首次屈服点:使用 α 交点 skill。
  • 候选解局部误差合格但偏离屈服面:使用漂移修正,并保留本 skill 的验收门。
  • Abaqus 全局 Newton 或接触失败且材料点局部积分均正常:应查全局模型,而非继续缩局部 DT。
  • 需要证明严格真实误差界:嵌入解差只能提供估计,需更高精度参考或理论分析。

相关 skills

  • depends-on: umat-transactional-state-update——拒绝子步必须从完整 committed 快照重算,不能只恢复应力。
  • contrasts-with: 无——显式/隐式路线的唯一二选一边已在入口层表达,本 skill 不另建重复对比边。
  • composes-with: explicit-alpha-yield-intersection——承接首交点后的剩余路径并执行自适应积分;ddsdde-finite-difference-audit——对子步组成的完整离散更新逐列审计最终 Jacobian。

公开版说明

本公开版只保留作者重新组织的机制边界、执行步骤和相邻 skill 路由。所有第三方原始材料及内部中间文件均已排除。

Current listing version

0.0.1

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value95/100

Highlights

  • 解决显式UMAT自适应子步的核心工程难题,直接影响仿真精度与稳定性
  • 覆盖从误差估计、接受/拒绝策略到事务性状态更新的完整闭环
Trigger Precision90/100

Highlights

  • 触发词精准覆盖embedded Euler/RKF23、accept/reject、rollback等关键场景
  • 明确区分与alpha定位、漂移修正、全局cutback等相邻技能的边界
Structure and Standards85/100

Highlights

  • 方法论骨架清晰,执行步骤完整覆盖配置、快照、误差估计、门控、提交/回滚全流程
  • 边界说明明确隔离α、DT、Δλ、PNEWDT、η_emb五个关键控制量
Execution Reliability88/100

Highlights

  • 完整的事务性状态更新机制确保拒绝步零污染
  • 多重独立门控(数值误差+物理约束)保障结果可靠性
  • 预算耗尽时正确转入全局失败协议而非静默接受坏解
Evidence Verifiability (mean of the first four)90/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.