adhesive-tape-tensile-test
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 "adhesive-tape-tensile-test" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-650f2d33189fb855a78718b443092ef2e420ea1a9b8e1df09ca86083922689e8. Verify the upstream source and version against https://skillhub.cn/skills/user_c160f2b7/adhesive-tape-tensile-test before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Adhesive tape tensile-test data visualization skill: triggered when the user supplies tensile test data for tape (displacement, force, time) and requests force–displacement curves, stress–strain curves, or comparison plots. It automatically handles data alignment and annotates the maximum force point, aimed at materials mechanics testing and analysis of tapes/adhesives/films.
Introduction source: third_party · user_c160f2b7 · 1.0.0 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- Python 3.8+ numpy matplotlib
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: adhesive-tape-tensile-test
description: 胶布拉力试验数据可视化技能。当用户提供胶布拉力试验数据(位移、力值、时间),要求生成力-位移曲线、应力-应变曲线或对比图时触发。自动处理数据对齐、标注最大力值点。面向材料力学测试、胶带/胶布/膜材力学性能分析场景。
agent_created: true胶布拉力试验数据可视化
概述
该技能将胶布拉力试验的原始数据(位移、力值、时间)自动转换为三张标准力学性能曲线图:
- 力-位移曲线 — 直观呈现各试样的拉伸力变化趋势
- 应力-应变曲线 — 归一化对比不同试样的材料力学响应
- 组合对比图 — 双图并排,一目了然
支持任意数量实验号的多曲线叠加对比,自动对齐数据长度、标注最大力值点。
触发条件
当用户出现以下任一意图时,应加载本技能:
- 提供胶布/胶带/膜材的拉力试验数据,要求画图
- 要求"力-位移曲线"、"应力-应变曲线"或"拉伸曲线"
- 提到"拉力机数据"、"万能试验机数据"、"拉伸试验"等关键词
- 请求:将格式化的试验数据(位移、力值、时间数组)转换为标准力学性能图表
工作流程
Step 1: 引导用户填写数据
用户原始请求中可能只提供了模板(位移/力值/时间用 [...] 占位),需要主动引导用户填入实际数据。可提供如下模板供用户填写:
胶布宽度(mm):___
胶布厚度(mm):___(若无则写"未知")
胶布长度(mm):___(仅夹持段参考,可标注)
实验号1:
位移(mm): [逗号分隔数值]
力值(N): [逗号分隔数值]
时间(s): [逗号分隔数值]
实验号2:
...
⚠ 数据完整性检查:
- 每组的位移和力值数组 必须对应(等长或可截断对齐)
- 时间数组为可选项,缺少时不影响图形生成
- 明显长度不一致时在输出中给出警告
Step 2: 编辑脚本中的数据
打开 scripts/tensile_plot.py,在 __main__ 块中修改:
# 1. 胶布几何参数
TAPE_WIDTH_MM = 25.0 # ← 填入实际宽度
TAPE_THICKNESS_MM = None # ← 有厚度填数值,无则 None
# 2. 试验数据
raw_data = [
{
'disp': [0.0, 0.5, 1.0, ...], # 位移数组
'force': [0.0, 1.2, 2.8, ...], # 力值数组
'time': [0.0, 0.5, 1.0, ...], # 时间数组
},
# 更多实验号...
]
# 3. 可选:自定义实验标签
experiment_labels = ['试样A-25℃', '试样B-25℃', '试样C-25℃']
Step 3: 运行脚本生成图形
执行脚本以生成三张 PNG 图像:
python scripts/tensile_plot.py
输出文件(默认以 tensile_ 为前缀):
tensile_force_displacement.png— 力-位移曲线tensile_stress_strain.png— 应力-应变曲线tensile_comparison.png— 双图对比组合图
Step 4: 展示结果
将生成的 PNG 路径通过 present_files 展示给用户,并附上简要文字说明:
- 各实验的最大力值与对应位移
- 曲线趋势的一致性/差异性
- 若有厚度数据可给出抗拉强度
Step 5: 实物仿真动画(可选)
当用户要求"仿真动画"、"实物模拟"、"GIF动图"、"拉力过程动画"时,使用 scripts/tensile_animation.py 生成动画:
# 在独立脚本中调用:
from tensile_animation import generate_tensile_animation
generate_tensile_animation(
disp=disp_array, # 位移数组 ndarray
force=force_array, # 力值数组 ndarray
time_arr=time_array, # 时间数组 ndarray
width_mm=30.0, # 试样宽度 (mm)
thickness_mm=0.4567, # 试样厚度 (mm),None 则按 N/mm 计算
length_mm=100.0, # 试样原始标距 (mm)
label='实验名称',
n_frames=150, # 动画帧数
fps=15, # 帧率
save_path='output.gif',
)
输出 tensile_sim_实验X.gif — 实物仿真动画,包含:
- 试样矩形在拉力下伸长,宽度泊松收缩
- 应力颜色映射:蓝(低)→绿→黄→红(高)
- 上下夹具,下夹具随拉伸下移
- 实时参数面板(时间/位移/力值/应力/应变)
- 力-位移曲线跟踪进度小图
- 进度百分比和最大力值统计
Step 6: 180° 剥离仿真动画(可选)
当用户要求"剥离实验动画"、"180度剥离"、"peel test 动画"、"剥离仿真"时,使用 scripts/tensile_animation_180peel.py:
from tensile_animation_180peel import generate_peel_180_animation
generate_peel_180_animation(
disp=disp_array, # 剥离距离数组 ndarray (mm)
force=force_array, # 剥离力数组 ndarray (N)
time_arr=time_array, # 时间数组 ndarray (s)
width_mm=30.0, # 胶带宽度 (mm)
panel_length_mm=150.0, # 基板总长度 (mm)
label='实验名称',
n_frames=150,
fps=15,
save_path='peel180_output.gif',
)
输出 peel180_sim_实验X.gif — 180° 剥离仿真动画,包含:
- 刚性基板 + 胶带粘接段(水平布局)
- 剥离前沿沿基板移动(红色圆点标记)
- 已剥离胶带段呈现 180° 折返向上形态
- 剥离前沿应力集中颜色映射(RdYlGn_r 色阶)
- 实时参数面板(时间/剥离距离/剥离力/剥离强度/剥离速度)
- 剥离力-距离跟踪进度小图
- 上方"180° 剥离方向"箭头指示
应力计算逻辑
| 条件 | 公式 | 单位 |
|---|---|---|
| 有厚度数据 | σ = F / (w × t) | MPa (N/mm²) |
| 无厚度数据 | σ = F / w | N/mm |
应变按工程应变近似:ε = ΔL / L₀(以最大位移为参考标距)。
图形参数说明
| 参数 | 默认值 |
|---|---|
| 图形尺寸 | (10, 6) 英寸 |
| DPI | 150 |
| 配色方案 | 10 色循环(蓝/红/绿/橙/紫/棕/粉/灰/黄/青) |
| 线型方案 | 6 种循环(实线/虚线/点划线/点线/短虚线/长虚线) |
| 最大力值标注 | 圆点标记 + 虚线辅助线 + 数值注释 |
| 网格 | 开启,虚线样式 |
| 中文支持 | 自动检测系统 CJK 字体(Microsoft YaHei / SimHei 等) |
依赖
- Python 3.8+
- numpy
- matplotlib
资源
scripts/
tensile_plot.py— 核心数据处理与绘图脚本。提供process_experiment_data()函数供编程调用,也支持命令行直接运行。tensile_animation.py— 拉力试验实物仿真动画生成脚本。提供generate_tensile_animation()函数,将实验数据转换为动画 GIF。tensile_animation_180peel.py— 180° 剥离试验实物仿真动画生成脚本。提供generate_peel_180_animation()函数,将实验数据转换为剥离过程动画 GIF。
assets/
tensile_force_displacement.png— 力-位移曲线示例输出tensile_stress_strain.png— 应力-应变曲线示例输出tensile_comparison.png— 组合对比图示例输出
Current listing version
1.0.0
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 功能高度专业化,解决实际工程分析痛点
- 支持多种输出形式(静态图 + 动态仿真)
Highlights
- 触发条件覆盖全面,关键词精准
Highlights
- 文档结构清晰,步骤详细,示例丰富
Areas to improve
-
缺少对输出目录不存在或写入权限不足的处理 Reported severity: Minor
脚本未显式检查输出目录是否存在或是否有写入权限,可能导致运行时错误
Recommendation: 在执行文件写入前添加目录存在性检查和权限验证
-
未说明如何处理非数值型输入数据 Reported severity: Minor
文档未说明当用户输入包含非数值字符时的处理机制
Recommendation: 在数据处理部分增加输入验证和清洗逻辑说明
Highlights
- 提供可复用的函数接口,便于集成
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.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Python 3.8+ numpy matplotlib
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.