Parametric Modeling and Calculation of Ship Structures Based on ANSYS-APDL: Generating APDL Command Streams Using Skill

Preface

In the field of naval architecture and ocean engineering, thin-walled structures are commonly modeled by manually clicking through the ANSYS interface or by maintaining lengthy APDL scripts. Any change in geometric details, such as a frame spacing or plate thickness, requires modifying pre-processing, boundary conditions, and solving settings. Furthermore, buckling analysis often necessitates switching between command streams for eigenvalue and arc-length methods, while batch running and log checking consume significant time. This article introduces the community Skill “ANSYS-APDL Naval Structure Parametric Modeling & Calculation” available on SkillHub. It integrates steps for parametric modeling, static and buckling analysis, command stream generation, and batch processing into an Agent conversation, thereby reducing the repetitive labor of manual APDL coding.

What is this

“ANSYS-APDL Naval Structure Parametric Modeling & Calculation” is a professional Skill sourced from the SkillHub community (community). Its identifier is @user_dc473fcd/ansys-naval-structure, currently at version 1.1.0, maintained by the publisher user_dc473fcd. The tags indicate requires_api_key=false, meaning no additional API Key is required after installation.

It targets parametric modeling and structural analysis using ANSYS APDL: automatically generating parameterized .mac command streams (pre-processing, solving, post-processing) while supporting batch execution, log-based error diagnosis, result extraction, and structural mechanics analysis. The official page and API endpoints are:

  • https://www.skillhub.cn/skills/user_dc473fcd/ansys-naval-structure
  • https://api.skillhub.cn/user_dc473fcd/ansys-naval-structure

The SkillHub page displays a rating of 100000 and 4084 downloads (data is subject to the live page and may change over time).

Core Functions

The following capabilities are derived from the official description; details not explicitly listed will not be expanded upon in this article.

Elements and Analysis Types

  • Beam Elements: BEAM188
  • Shell Elements: SHELL181
  • Combined Models: Beam-Shell Combination

Analysis types include:

  1. Static Strength Analysis
  2. Eigenvalue Buckling
  3. Non-linear Buckling via Arc-Length Method

Command Streams and Execution Chain

The Skill emphasizes the auto-generation of parametric .mac command streams covering pre-processing, solving, and post-processing. It also supports batch execution, error diagnosis based on logs, result extraction, and structural mechanics analysis. Specific macro file naming and directory layout depend on the SKILL.md within the package and the conversation results; this article does not speculate on paths.

When to Trigger this Skill

According to the official description: The Agent should use this Skill when the user mentions keywords such as ANSYS, APDL, command streams, finite element modeling, buckling analysis, arc-length method, shell elements, beam elements, or structural strength calculation.

Installation and Activation

SkillHub recommends two methods: installing via CLI to the current Agent’s skills directory, or sending the installation prompt to an AI to complete the installation following the documentation.

1. Check SkillHub CLI

First, confirm if skillhub is available on your machine:

command -v skillhub && skillhub --version

If it is not installed, you can follow the SkillHub installation documentation (the full installation includes the CLI and default Skills):

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Instructions regarding permissions and priority source configuration can be found at: https://skillhub.cn/install/skillhub.md

2. Install this Skill

During installation, you must use --dir to point to the skills directory recognized by your current Agent. Otherwise, installing to the default ./skills/ might not result in loading.

skillhub install @user_dc473fcd/ansys-naval-structure --dir <skills directory>

Common client skills paths (excerpted from SkillHub installation docs):

Environment skills directory
Cursor ~/.cursor/skills/
Claude Code ~/.claude/skills/
Codex ~/.codex/skills/ or .agents/skills/ under the project

After installation, restart or refresh the Agent according to your client’s requirements to activate the Skill.

3. Install via AI Conversation

The prompt provided on the SkillHub skill page is:

Please install `@user_dc473fcd/ansys-naval-structure` according to https://skillhub.cn/install/skillhub.md.

Send the above content to an AI client that supports Skills, and the Agent will complete the CLI and directory configuration following the official installation documentation.

Typical Usage

Since the official materials do not provide a fixed “one-click example project,” the typical workflow can be understood based on the Skill’s design as follows, to facilitate reproducing conversation intent.

  1. Describe the structure type and parameters in the conversation
    For example: stiffened cylindrical shells, ring-stiffened shells, stiffened plates, beam-shell combinations, or combined structures like “ring-stiffened cylindrical shell - conical shell - transition ring - spherical head.” Provide parameterized descriptions of geometry, loads, and boundary conditions.

  2. Specify the analysis task
    Static strength, eigenvalue buckling, or non-linear buckling via the arc-length method. Specify element type preferences (BEAM188 / SHELL181) if necessary.

  3. Let the Agent generate and check the .mac command stream
    Once the pre-processing, solving, and post-processing command streams are generated, execute them in your local ANSYS APDL or batch environment. If execution fails, you can ask the Agent to diagnose errors based on the logs.

  4. Result extraction and mechanical interpretation
    Request the extraction of key results and provide a structural mechanics explanation within the scope of the Skill’s capabilities (specific output formats depend on the Skill’s internal guidelines).

Trigger words are consistent with the “When to Trigger” section above; there is no need to pile up marketing rhetoric. Simply clearly state ANSYS/APDL/Buckling/Shell-Beam elements.

Scenarios and Precautions

Who is it for

  • Engineers or students doing finite element modeling of thin-walled structures in naval architecture and ocean engineering who are familiar with basic ANSYS APDL workflows and want to use parametric command streams for design changes and batch calculations.
  • Users who need to perform static + buckling (including arc-length method) analysis on the same class of structures and want to reduce the cost of manually switching macros.

Structures listed officially include: stiffened cylindrical shells, ring-stiffened shells, stiffened plates, beam-shell combined structures, and combinations of ring-stiffened cylindrical shells with conical shells, transition rings, and spherical heads.

Usage Notes

  • Community Skill: Sourced from community. It is recommended to check the version and description on the SkillHub page before use. For major engineering projects, standards, drawing review, and manual verification should still be the basis.
  • Local ANSYS Environment: The Skill generates command streams, but actual solving depends on your local or cluster ANSYS licenses and version. This article does not specify a particular ANSYS version to avoid mismatches with your environment.
  • No API Key: requires_api_key=false only indicates that the Skill itself does not force a third-party key; it does not replace ANSYS authorization.
  • Rating and Downloads: Subject to real-time data on the SkillHub page. Do not mix statistics from other channels with the official page.

Conclusion

“ANSYS-APDL Naval Structure Parametric Modeling & Calculation” stitches together BEAM188/SHELL181 beam-shell modeling, static and two types of buckling analysis, parametric .mac generation, and batch processing/log diagnosis into a workflow that an Agent can assist with. It is suitable for scenarios involving repeated parameter changes and calculation of naval thin-walled structures. See SkillHub for installation and details:

https://www.skillhub.cn/skills/user_dc473fcd/ansys-naval-structure

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye