科研 Skill
力学性能测试表征
mechanical-testing
Covers mechanical property characterization: tensile/compression testing, nanoindentation, fatigue, and fracture toughness. Use for mechanical test data analysis.
SKILL.md
Mechanical Testing
Overview
Mechanical testing quantifies how a material responds to applied stress — tensile/compression testing for bulk stress-strain behavior, nanoindentation for local hardness/modulus at small scales, fatigue for cyclic-loading lifetime, and fracture toughness for resistance to crack propagation. The underlying physics and failure modes differ substantially by material class (metals yield plastically; ceramics fail brittlely with statistical scatter; polymers show viscoelastic/rate-dependent behavior).
When to use this skill
Activate when the request involves:
- Tensile testing, compression testing, stress-strain curve, nanoindentation, hardness, fatigue, fracture toughness, Weibull statistics
- Terms: Young's modulus, yield strength, ultimate tensile strength, S-N curve, K_IC, Oliver-Pharr
- File formats: instrument-specific exports (Instron, MTS), common CSV load-displacement data
- "Analyze this stress-strain curve," "compute fracture strength Weibull modulus," "fit an S-N curve"
Core usage
Stress-strain curve analysis (tensile/compression)
import numpy as np
def stress_strain_properties(strain, stress, gauge_length_mm, cross_section_mm2):
"""Standard tensile properties from an engineering stress-strain curve.
elastic_modulus: fit on the initial linear region, not the whole curve."""
linear_region = strain < 0.002 # typical small-strain window for modulus fit — adjust per material
elastic_modulus = np.polyfit(strain[linear_region], stress[linear_region], 1)[0]
yield_strength = offset_yield_strength(strain, stress, elastic_modulus, offset=0.002)
ultimate_tensile_strength = stress.max()
return {
"elastic_modulus": elastic_modulus,
"yield_strength_0.2%_offset": yield_strength,
"UTS": ultimate_tensile_strength,
}
def offset_yield_strength(strain, stress, elastic_modulus, offset=0.002):
"""0.2% offset method — standard for materials without a sharp yield point."""
offset_line = elastic_modulus * (strain - offset)
diff = stress - offset_line
sign_changes = np.where(np.diff(np.sign(diff)))[0]
return stress[sign_changes[0]] if len(sign_changes) > 0 else np.nan
Nanoindentation (Oliver-Pharr method)
def oliver_pharr_modulus_hardness(load, displacement, contact_stiffness, contact_area, poisson_ratio_sample=0.3, poisson_ratio_indenter=0.07, modulus_indenter_gpa=1141):
"""Reduced modulus from unloading stiffness, then sample modulus via the
standard Oliver-Pharr relation (indenter properties for diamond shown)."""
reduced_modulus = contact_stiffness * np.sqrt(np.pi) / (2 * np.sqrt(contact_area))
inv_sample_modulus = (1 / reduced_modulus) - (1 - poisson_ratio_indenter**2) / modulus_indenter_gpa
sample_modulus = (1 - poisson_ratio_sample**2) / inv_sample_modulus
hardness = load.max() / contact_area
return {"reduced_modulus_gpa": reduced_modulus, "sample_modulus_gpa": sample_modulus, "hardness_gpa": hardness}
Weibull statistics for brittle-fracture strength data
from scipy import stats
import numpy as np
def weibull_fit(fracture_strengths):
"""Ceramics/glasses/brittle materials show statistical (not deterministic)
strength — Weibull analysis is the standard approach, not a normal-distribution
fit. shape (Weibull modulus, m): higher = less scatter/more reliable."""
shape, loc, scale = stats.weibull_min.fit(fracture_strengths, floc=0)
return {"weibull_modulus_m": shape, "characteristic_strength": scale}
def median_rank_weibull_plot_data(fracture_strengths):
"""Median rank (Bernard's approximation) — standard plotting-position method
for Weibull probability plots, more appropriate than naive rank/N for small
sample sizes typical of fracture testing."""
sorted_strengths = np.sort(fracture_strengths)
n = len(sorted_strengths)
ranks = np.arange(1, n + 1)
median_rank = (ranks - 0.3) / (n + 0.4)
return sorted_strengths, median_rank
Fatigue — S-N curve fitting (Basquin relation)
def basquin_fit(stress_amplitude, cycles_to_failure):
"""log-log linear fit — standard for the finite-life regime of an S-N curve."""
log_n = np.log10(cycles_to_failure)
log_s = np.log10(stress_amplitude)
slope, intercept = np.polyfit(log_n, log_s, 1)
return {"basquin_exponent": slope, "basquin_coefficient": 10**intercept}
Validation & Pitfalls
Canonical references: ASTM E8 (tensile testing of metals), ASTM C1239 (Weibull analysis of brittle-material strength), Oliver & Pharr (1992), "An improved technique for determining hardness and elastic modulus using load and displacement sensing indentation experiments," Journal of Materials Research, for nanoindentation.
- Engineering vs. true stress-strain matter, and the difference is not negligible at large strain — engineering stress/strain (using original cross-section/gauge length) diverges from true stress/strain (using instantaneous values) especially past yield/necking. State which is reported, and use true stress-strain for any analysis involving large plastic deformation.
- Weibull modulus fitting is unstable with small sample sizes, and small-N Weibull moduli are frequently over-interpreted — brittle-fracture testing standards (e.g. ASTM C1239) typically call for 30+ specimens for a reliable Weibull modulus estimate; report sample size alongside any fitted m, and treat single-digit-N estimates as preliminary.
- Nanoindentation results are sensitive to indenter tip-area-function calibration, surface roughness, and pile-up/sink-in behavior not accounted for in the basic Oliver-Pharr model — a poorly calibrated tip area function or unaccounted pile-up can bias modulus/hardness by a significant fraction; verify tip calibration against a reference material (e.g. fused silica) before trusting absolute values.
- Material-class failure models don't transfer — a ductile-metal yield-strength framework applied to a brittle ceramic (which doesn't yield plastically the same way) or a viscoelastic polymer (whose stress-strain response is strain-rate- and temperature-dependent) produces a physically-meaningless "yield strength." Match the analysis framework to the material class, and for polymers specifically, always report strain rate and temperature alongside any modulus/strength value.
- S-N curve fatigue data has a runout convention (specimens that survive to a set cycle count without failing) that a naive log-log fit ignores if not handled explicitly — treating runouts as failures at the runout cycle count biases the fitted curve; use a method that properly accounts for censored (runout) data.
示例提示词
我有一批陶瓷样品的拉伸数据,帮我做Weibull统计分析断裂强度。
所属插件
安装该插件会一并获得同领域的 42 个 Skill / MCP。
同插件的其他科研 Skill
- 贝叶斯优化材料发现Covers Bayesian optimization for materials and chemistry design: surrogate models, acquisition functions, batch/constrained BO. Use when planning sample-efficient experiments or simulations.
- CALPHAD热力学计算工作流Covers CALPHAD computational thermodynamics: database selection, equilibrium/metastable calculations, binary/ternary phase diagrams. Use when predicting phase stability or solidification paths.
- 材料第一性原理与分子动力学模拟Routes first-principles and classical materials simulation (DFT, MD, ML potentials) to the right specialized workflow. Use as an entry point for any simulation-based materials task.
- 蠕变力学建模与验证Selects, calibrates, and validates creep deformation and rupture models under sustained thermomechanical load, covering rate prediction. Use when assessing long-term high-temperature components.
- 晶体塑性有限元建模Covers crystal plasticity and CPFE modeling of metals: slip systems for FCC/BCC/HCP, Schmid factors. Use when simulating texture- and orientation-dependent plastic deformation.
- 衍射结构表征Covers diffraction-based structure characterization (XRD, neutron, SAED): space group determination, Rietveld refinement, phase identification. Use for any diffraction-pattern analysis technique.
- EBSD织构分析Analyzes EBSD orientation maps for grain size, misorientation, phase, and texture, with pole figures and twin-boundary identification. Use for electron backscatter diffraction workflows.
- 电化学性能测试分析Covers electrochemical characterization: cyclic voltammetry, battery cycling analysis, EIS. Use for electrochemistry-specific data analysis distinct from general materials characterization.
- 金属疲劳寿命评估Builds, calibrates, and validates fatigue assessments for metals and components: stress-life, strain-life, multiaxial critical-plane. Use when predicting fatigue life or crack growth.
- 多物理场有限元建模Covers finite element modeling for coupled materials, mechanics, and transport problems: weak-form construction, boundary conditions, mesh choice. Use for multiphysics FEM simulations.
- 连续尺度有限元力学建模Covers continuum-scale mechanical, thermal, and multiphysics simulation with Abaqus/COMSOL conventions, mesh generation. Use for macroscale FEM consuming measured or computed material properties.
- 断裂力学评估与建模Selects, constructs, and validates fracture-mechanics assessments: LEFM checks, elastic-plastic fracture mechanics. Use when assessing cracked materials or components.
- 高斯过程材料回归建模Covers Gaussian process regression for materials and chemistry datasets: descriptor selection, kernel design. Use when a probabilistic surrogate model with uncertainty is needed.
- 自驱动实验室闭环材料发现Covers combinatorial synthesis, robotic experimentation. Use for autonomous or robotics-driven experimental campaigns, a less standardized domain.
- 材料数据库可复现访问Covers reproducible API access to materials databases (Materials Project, AFLOW, OQMD, NOMAD, COD, ICSD-style sources): authentication. Use when programmatically querying these databases.
- 材料数据库跨库查询Covers querying public materials databases beyond Materials Project: AFLOW, OQMD, NOMAD, JARVIS. Use when pulling or comparing data from these live, API-integrated resources.
- 材料数据标准与互操作Covers data interoperability standards for materials science: CIF crystal files, the OPTIMADE query API. Use when structuring or exchanging materials data between tools.
- 材料结构特征化Covers converting structures, compositions, and trajectories into ML feature vectors: Magpie-style elemental statistics. Use when building inputs for materials ML models.
- 材料科学图表绘制规范Covers publication-quality figure conventions for materials science plots: phase diagrams, pole figures, stress-strain curves. Use when the deliverable is a figure, not just an analysis result.
- 材料信息学性质预测Covers ML for materials property prediction and generative design: descriptor-based models, crystal GNNs (CGCNN/MEGNet-class). Use for materials informatics distinct from interatomic potentials.
- 材料生命周期评估Covers life-cycle assessment for materials and manufacturing routes: goal/scope definition, functional units, inventory construction. Use for environmental-impact studies of materials.
- 材料科学文献检索Covers formulating literature search queries for materials science questions and synthesizing/citing results responsibly. Requires a web search tool; it cannot substitute for one.
- 工程材料选型设计Selects engineering materials via material indices and Ashby charts, ranking candidates by performance per cost or mass. Use when picking a material class for a design constraint.
- 材料统计方法与实验设计Covers statistics shared across materials characterization and simulation: design of experiments. Use for cross-cutting statistical treatment of materials data.
常见问题
力学性能测试表征能做什么?
Covers mechanical property characterization: tensile/compression testing, nanoindentation, fatigue, and fracture toughness. Use for mechanical test data analysis。
如何安装力学性能测试表征?
在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「力学性能测试表征」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。
力学性能测试表征需要哪些权限?
该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。
力学性能测试表征经过官方审核吗?
是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。