ZW

zw3d-cae-structural

Manages structural CAE analysis setup in ZW3D 2026 including loading and meshing workflows.

Install

mkdir -p .claude/skills/zw3d-cae-structural && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/11393" && unzip -o skill.zip -d .claude/skills/zw3d-cae-structural && rm skill.zip

Installs to .claude/skills/zw3d-cae-structural

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when implementing or debugging ZW3D 2026 structural CAE workflows, including static analysis, modal analysis, buckling, force loads, constraints, contacts, stress/strain/displacement results, and structural task setup through the bridge.
241 chars✓ has a “when” trigger
Advanced

Key capabilities

  • Create static analysis tasks
  • Set up modal analysis tasks
  • Configure buckling analysis tasks
  • Apply force, moment, line, and pressure loads
  • Define fixed, hinged, elastic, and displacement constraints

How it works

The skill guides the user through creating structural analysis tasks, defining material properties, applying various loads and constraints, and then solving and querying results within ZW3D 2026.

Inputs & outputs

You give it
ZW3D 2026 model, material properties, loads, and constraints
You get back
Structural analysis results (displacement, stress, strain, reaction force, natural frequency, buckling factor)

When to use zw3d-cae-structural

  • Running static structural analysis
  • Setting up modal frequency analysis
  • Buckling load calculation

About this skill

ZW3D 结构分析 Skill — v1.3.0

触发词: "结构分析", "静力学", "模态分析", "屈曲分析", "力载荷", "约束", "接触", "structural", "static analysis", "modal", "buckling", "应力", "位移" 适用: ZW3D 2026 ZWMeshWorks 静力/模态/屈曲分析 维护者: 韩天尊 依赖: [[zw3d-plugin-base|plugin-base]] (必需), [[zw3d-cae-mesh|cae-mesh]] (必需), [[zw3d-ipc-comm|ipc-comm]] (必需)

权威来源引用

内容引用
C++ API调用规范[[.workbuddy/skills/zw3d-dev-team/docs/01-spec-cpp|01-spec-cpp.md]]
IPC消息协议[[.workbuddy/skills/zw3d-dev-team/docs/02-ipc-protocol|02-ipc-protocol.md]]
质量门控[[.workbuddy/skills/zw3d-dev-team/docs/04-quality-gate|04-quality-gate.md]]
完整命令码表[[zw3d-ipc-comm#七完整命令码表|ipc-comm §七]]

一、任务类型

类型字符串标识枚举值说明
静力分析"static"ZW_ST_TASK_STATIC (0)线性静力学
模态分析"frequency"ZW_ST_TASK_FREQUENCY (1)固有频率和振型
屈曲分析"buckling"ZW_ST_TASK_BUCKLING (2)临界载荷屈曲

创建任务 (cmd=200)

zwsDbId idxTask;
ZWSimEvxErrors err = czwsSimStCreateTask(ZW_ST_TASK_STATIC, &idxTask);
if (err != ZWSIM_API_NO_ERROR) {
    cvxMsgDisp("Failed to create static task");
    return;  /* idxTask未初始化 */
}

二、材料要求

分析类型必需材料属性
静力分析弹性模量 + 泊松比 (+ 密度用于自重)
模态分析弹性模量 + 泊松比 + 密度
屈曲分析弹性模量 + 泊松比

三、载荷类型

3.1 力载荷 (cmd=236) 📐 设计草案

⚠️ cmd=236 未在 Common/define.h 中注册,以下API签名基于 CaeApiWrapper.h 推断,待实现后验证。

szwsForceLoadData forceData;
czwsSimStForceLoadDataInit(&forceData);
forceData.eEntityType = ZW_ST_ENTITY_TYPE_GEOMETRY;
forceData.iEntNum = 1;
forceData.sEntities = &entityId;
forceData.dValue = 100.0;         // 力的大小 (N)
forceData.dDirection[0] = 1.0;    // X方向分量
forceData.dDirection[1] = 0.0;    // Y方向分量
forceData.dDirection[2] = 0.0;    // Z方向分量

zwsDbId idxLoad;
int err = czwsSimStCreateForceLoad(&forceData, &idxLoad);
czwsSimStFreeForceLoadData(&forceData);
if (err != ZWSIM_API_NO_ERROR) {
    cvxMsgDisp("Failed to create force load");
    return;
}

3.2 力矩载荷 (cmd=237) 📐 设计草案

⚠️ cmd=237 未在 Common/define.h 中注册,以下API签名基于 CaeApiWrapper.h 推断,待实现后验证。

szwsMomentLoadData momentData;
czwsSimStMomentLoadDataInit(&momentData);
momentData.eEntityType = ZW_ST_ENTITY_TYPE_GEOMETRY;
momentData.iEntNum = 1;
momentData.sEntities = &entityId;
momentData.dX = 0.0;
momentData.dY = 50.0;  // N·m
momentData.dZ = 0.0;

zwsDbId idxLoad;
int err = czwsSimStCreateMomentLoad(&momentData, &idxLoad);
czwsSimStFreeMomentLoadData(&momentData);
if (err != ZWSIM_API_NO_ERROR) { /* 处理错误 */ }

3.3 线载荷/分布力 (cmd=238) 📐 设计草案

⚠️ cmd=238 未在 Common/define.h 中注册,以下API签名基于 CaeApiWrapper.h 推断,待实现后验证。

szwsLineLoadData lineData;
czwsSimStLineLoadDataInit(&lineData);
lineData.eEntityType = ZW_ST_ENTITY_TYPE_GEOMETRY;
lineData.iEntNum = 1;
lineData.sEntities = &entityId;  // 边实体
lineData.dValue = 10.0;  // N/m

zwsDbId idxLoad;
int err = czwsSimStCreateLineLoad(&lineData, &idxLoad);
czwsSimStFreeLineLoadData(&lineData);
if (err != ZWSIM_API_NO_ERROR) { /* 处理错误 */ }

3.4 压力载荷

szwsPressureLoadData pressureData;
czwsSimStPressureLoadDataInit(&pressureData);
pressureData.eEntityType = ZW_ST_ENTITY_TYPE_GEOMETRY;
pressureData.iEntNum = 1;
pressureData.sEntities = &entityId;  // 面实体
pressureData.dValue = 0.5;  // MPa

zwsDbId idxLoad;
int err = czwsSimStCreatePressureLoad(&pressureData, &idxLoad);
czwsSimStFreePressureLoadData(&pressureData);
if (err != ZWSIM_API_NO_ERROR) { /* 处理错误 */ }

四、约束类型

4.1 固定约束 (cmd=243) 📐 设计草案

⚠️ cmd=243 未在 Common/define.h 中注册,以下API签名基于 CaeApiWrapper.h 推断,待实现后验证。

szwsFixedGeometryData fixData;
czwsSimStFixedGeometryDataInit(&fixData);
fixData.eEntityType = ZW_ST_ENTITY_TYPE_GEOMETRY;
fixData.iEntNum = 1;
fixData.sEntities = &entityId;

zwsDbId idxConstraint;
int err = czwsSimStCreateFixedGeometry(&fixData, &idxConstraint);
czwsSimStFreeFixedGeometryConstraintData(&fixData);
if (err != ZWSIM_API_NO_ERROR) {
    cvxMsgDisp("Failed to create fixed constraint");
    return;
}

4.2 铰支约束 (cmd=244) 📐 设计草案

⚠️ cmd=244 未在 Common/define.h 中注册,以下API签名基于 CaeApiWrapper.h 推断,待实现后验证。

szwsFixedHingeConstraintData hingeData;
czwsSimStFixedHingeConstraintDataInit(&hingeData);
hingeData.eEntityType = ZW_ST_ENTITY_TYPE_GEOMETRY;
hingeData.iEntNum = 1;
hingeData.sEntities = &entityId;
hingeData.dX = 1.0;  // 铰链轴线方向
hingeData.dY = 0.0;
hingeData.dZ = 0.0;

zwsDbId idxConstraint;
int err = czwsSimStCreateFixedHingeConstraint(&hingeData, &idxConstraint);
czwsSimStFreeFixedHingeConstraintData(&hingeData);
if (err != ZWSIM_API_NO_ERROR) { /* 处理错误 */ }

4.3 弹性支撑 (cmd=245) 📐 设计草案

⚠️ cmd=245 未在 Common/define.h 中注册,以下API签名基于 CaeApiWrapper.h 推断,待实现后验证。

szwsElasticSupportConstraintData elasticData;
czwsSimStElasticSupportConstraintDataInit(&elasticData);
elasticData.eEntityType = ZW_ST_ENTITY_TYPE_GEOMETRY;
elasticData.iEntNum = 1;
elasticData.sEntities = &entityId;
elasticData.dStiffness = 1000.0;  // N/m
elasticData.eDist = ZW_ST_SUPPORT_UNIFORM;

zwsDbId idxConstraint;
int err = czwsSimStCreateElasticSupport(&elasticData, &idxConstraint);
czwsSimStFreeElasticSupportConstraintData(&elasticData);
if (err != ZWSIM_API_NO_ERROR) { /* 处理错误 */ }

4.4 位移约束

szwsDisplacementConstraintData dispData;
czwsSimStDisplacementConstraintDataInit(&dispData);
dispData.eEntityType = ZW_ST_ENTITY_TYPE_GEOMETRY;
dispData.iEntNum = 1;
dispData.sEntities = &entityId;
dispData.dX = 0.0;  // X方向位移(mm)
dispData.dY = 0.0;
dispData.dZ = 0.0;

zwsDbId idxConstraint;
int err = czwsSimStCreateDisplacementConstraint(&dispData, &idxConstraint);
czwsSimStFreeDisplacementConstraintData(&dispData);
if (err != ZWSIM_API_NO_ERROR) { /* 处理错误 */ }

五、接触类型

接触类型枚举值说明
标准接触ZW_ST_CONTACT_TYPE_CONTACT允许分离,摩擦/无摩擦
粗糙接触ZW_ST_CONTACT_TYPE_ROUGH无滑移(无限摩擦)
粘合接触ZW_ST_CONTACT_TYPE_ADHESIVE粘接,不允许分离
通用接触ZW_ST_CONTACT_TYPE_GENERAL自定义接触定义

六、静力分析工作流

Step 1  创建静力任务    czwsSimStCreateTask(ZW_ST_TASK_STATIC)
Step 2  查询仿真几何    czwsTaskInqSimGeoms
Step 3  分配材料       czwsSimGeomSetMaterial (弹性模量+泊松比)
Step 4  施加固定约束    czwsSimStCreateFixedGeometry
Step 5  施加铰支约束    czwsSimStCreateFixedHingeConstraint
Step 6  施加弹性支撑    czwsSimStCreateElasticSupport
Step 7  施加力载荷     czwsSimStCreateForceLoad
Step 8  施加力矩载荷    czwsSimStCreateMomentLoad
Step 9  施加压力载荷    czwsSimStCreatePressureLoad
Step 10 设置接触       czwsSimStCreateContact
Step 11 网格划分      czwsMeshing3D (参见 [[zw3d-cae-mesh\|cae-mesh §三]])
Step 12 求解         czwsSimCalculate
Step 13 查询结果     czwsResultTypeInqData

IPC命令对应 (完整表见 [[zw3d-ipc-comm#七完整命令码表|ipc-comm §七]])

步骤cmd方法状态
创建任务200CreateTask
选择实体220/221/224SelectEntities
力载荷236SetForceLoad📐 设计草案
力矩载荷237SetMomentLoad📐 设计草案
线载荷238SetLineLoad📐 设计草案
固定约束243SetFixedConstraint📐 设计草案
铰支约束244SetHingeConstraint📐 设计草案
弹性支撑245SetElasticSupport📐 设计草案
网格划分250Mesh3D
求解260SolverRun
查询结果261QueryResults

七、模态分析

关键规则

  • 不需要施加力/力矩载荷 — 只关心固有特性
  • 需要约束 — 否则刚体模态,频率为0
  • 需要材料弹性属性(弹性模量、泊松比) + 密度

工作流

Step 1  创建模态任务    czwsSimStCreateTask(ZW_ST_TASK_FREQUENCY)
Step 2  查询仿真几何    czwsTaskInqSimGeoms
Step 3  分配材料       czwsSimGeomSetMaterial
Step 4  施加约束       czwsSimStCreateFixedGeometry (必须有!)
Step 5  设置模态阶数    (通过仿真属性或原生命令)
Step 6  网格划分      czwsMeshing3D
Step 7  求解         czwsSimCalculate
Step 8  查询频率     czwsResultTypeInqData("Frequency")
Step 9  查询振型     czwsResultTypeInqData("Mode Shape")

结果类型

结果说明
Frequency固有频率 (Hz)
Mode Shape振型(位移云图)
Modal Stress模态应力(可选)

八、屈曲分析

关键规则

  • 线性屈曲(特征值屈曲)
  • 需要先施加参考载荷
  • 屈曲因子 = 临界载荷 / 参考载荷

工作流

Step 1  创建屈曲任务    czwsSimStCreateTask(ZW_ST_TASK_BUCKLING)
Step 2  查询仿真几何    czwsTaskInqSimGeoms
Step 3  分配材料       czwsSimGeomSetMaterial
Step 4  施加约束       czwsSimStCreateFixedGeometry
Step 5  施加参考载荷    czwsSimStCreateForceLoad (与静力分析相同)
Step 6  设置屈曲阶数    (通过仿真属性或原生命令)
Step 7  网格划分      czwsMeshing3D
Step 8  求解         czwsSimCalculate
Step 9  查询屈曲因子  czwsResultTypeInqData("Buckle Factor")
Step 10 查询屈曲振型  czwsResultTypeInqData("Buckle Mode")

结果类型

结果说明
Buckle Factor屈曲因子(临界载荷 = 参考载荷 × 因子)
Buckle Mode屈曲振型

九、结果类型

静力分析

结果类型子类型说明
DisplacementTotal/X/Y/Z位移
StressVon Mises/Principal/Max/Min应力
StrainEquivalent/Principal/Max/Min应变
Reaction ForceX/Y/Z/Total支反力

完整结果查询API见 [[zw3d-cae-post#二结果查询api|cae-post §二]]


十、实体类型映射

entityType含义ZW3D类型
0ZW_INPUT_FACE
1ZW_INPUT_EDGE
2顶点ZW_INPUT_VERTEX
3ZW_INPUT_SHAPE
4网格节点ENTITY_TYPE_MESH_NODE
5网格单元ENTITY_TYPE_MESH_ELEMENT

十一、已知限制

限制说明
非线性接触当前API主要支持线性接触
大变形需确认是否支持几何非线性
塑性材料Von Mises等塑性模型需确认API暴露程度
模态阶数设置前n阶模态的参数设置方法待确认

十二、热-结构耦合

热-结构耦合将热仿真温度场结果导入结构分析作为温度载荷。完整工作流和API详见 [[zw3d-cae-thermal#七b热-结构耦合工作流|thermal §七B]]。

快速流程:

  1. 完成热分析 (稳态热/瞬态热) → 求解
  2. cmd=295: 复制热任务并转换为结构任务 (czwsPartDuplicateTaskczwsSimStSwitchTask)
  3. cmd=296: 导入热效应 (czwsSimStCreateThermalEffects)
  4. 设置结构载荷/约束 → 网格 → 求解 → 查询结果
cmd功能关键API
295复制并转换任务czwsPartDuplicateTask, czwsSimStSwitchTask
296导入热效应czwsSimStThermalEffectsInit, czwsSimStCreateThermalEffects

十三、资源

资源路径
结构分析模板sample_templates/StructuralAnalysisAPI_template.cpp
CAE功能清单[[知识库/02_CAE开发/ZWMeshWorks_CAE_插件_功能清单|功能清单.md]]
工程经验[[知识库/02_CAE开发/工程经验_结构化|工程经验_结构化.md]]
代码架构[[知识库/02_CAE开发/代码架构|代码架构.md]]

*文档版本: v1.3.0


Content truncated.

When not to use it

  • When non-linear contact analysis is required
  • When large deformation analysis is required beyond geometric non-linearity
  • When plastic material models are needed beyond Von Mises

Prerequisites

zw3d-plugin-basezw3d-cae-meshzw3d-ipc-comm

Limitations

  • Current API primarily supports linear contact
  • Need to confirm API exposure for plastic material models like Von Mises

How it compares

This skill provides specific API calls and workflows for ZW3D 2026 structural CAE, offering a programmatic and structured approach compared to manual interaction within the software.

Compared to similar skills

zw3d-cae-structural side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
zw3d-cae-structural (this skill)02moNo flagsAdvanced
webapp-testing3533moReviewIntermediate
resolve-conflicts818moReviewIntermediate
telegram-bot-builder1066moReviewIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

You might also like

webapp-testing

anthropics

Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.

353585

resolve-conflicts

antinomyhq

Use this skill immediately when the user mentions merge conflicts that need to be resolved. Do not attempt to resolve conflicts directly - invoke this skill first. This skill specializes in providing a structured framework for merging imports, tests, lock files (regeneration), configuration files, and handling deleted-but-modified files with backup and analysis.

81334

telegram-bot-builder

davila7

Expert in building Telegram bots that solve real problems - from simple automation to complex AI-powered bots. Covers bot architecture, the Telegram Bot API, user experience, monetization strategies, and scaling bots to thousands of users. Use when: telegram bot, bot api, telegram automation, chat bot telegram, tg bot.

106130

dev-browser

SawyerHood

Browser automation with persistent page state. Use when users ask to navigate websites, fill forms, take screenshots, extract web data, test web apps, or automate browser workflows. Trigger phrases include "go to [url]", "click on", "fill out the form", "take a screenshot", "scrape", "automate", "test the website", "log into", or any browser interaction request.

53176

openspec-onboard

studyzy

Guided onboarding for OpenSpec - walk through a complete workflow cycle with narration and real codebase work.

10207

codex-cli-bridge

alirezarezvani

Bridge between Claude Code and OpenAI Codex CLI - generates AGENTS.md from CLAUDE.md, provides Codex CLI execution helpers, and enables seamless interoperability between both tools

9180

Search skills

Search the agent skills registry