Logo Hpc Gmsh

Hpc Gmsh

Tổ chức
SciMate-AI
hpc-gmsh

Build, review, debug, and automate Gmsh geometry and meshing workflows. Use when working with `.geo` scripts, the Gmsh Python API, GEO versus OpenCASCADE modeling, physical groups, mesh-size fields, transfinite or recombine options, boundary layers, structured/unstructured algorithm selection, mesh partitioning, periodic meshes, high-order elements, mesh export and solver handoff (FEniCS, OpenFOAM, Elmer, SU2, etc.), CAD/STL import, or Gmsh CLI and meshing failures.

Add to TypingMind

Tổng quan

Nhà phát hànhSciMate-AI
Kho mãHPC-Skills
Tên kỹ nănghpc-gmsh
Sao
97
Bản fork
10
Tệp đi kèm
19
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 19 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được SciMate-AI công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Hpc Gmsh trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/SciMate-AI/HPC-Skills/tree/main/skills/hpc-gmsh
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/SciMate-AI/HPC-Skills.git /tmp/HPC-Skills
mkdir -p .claude/skills
cp -r /tmp/HPC-Skills/skills/hpc-gmsh .claude/skills/hpc-gmsh
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Hpc Gmsh trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Hpc Gmsh ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Hpc Gmsh với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

HPC Gmsh

Treat Gmsh as a geometry-plus-meshing stack. Choose the modeling kernel first, then make topology, sizing, and structured-meshing decisions explicit before exporting downstream.

Start

  1. Read references/modeling-kernels-and-geometry.md before creating or repairing a Gmsh model — covers GEO versus OpenCASCADE selection, boolean operations, extrusions, transformations, CAD/STL import, embedded and compound entities, synchronization rules.
  2. Read references/physical-groups-and-entity-tagging.md when solver handoff depends on boundary or region tags — covers export behavior, physical group stability after booleans, downstream solver requirements matrix.
  3. Read references/algorithm-selection-guide.md when choosing 2D or 3D meshing algorithms — covers MeshAdapt, Delaunay, Frontal-Delaunay, HXT, parallel meshing, optimization, element order, subdivision.
  4. Read references/mesh-size-and-field-control.md when choosing mesh sizes — covers the full size determination hierarchy, all field types (Distance, Threshold, Box, Ball, Cylinder, BoundaryLayer, MathEval, AutomaticMeshSizeField, etc.), combining fields, size callbacks.
  5. Read references/boundary-layer-and-refinement-recipes.md when boundary layers, distance-based refinement, or CFD-specific mesh recipes are needed — covers BL parameters, y+ estimation, fan points, wake refinement, complete 2D CFD recipe.
  6. Read references/transfinite-and-recombine-playbook.md when the mesh should be structured, swept, or recombined — covers TransfiniteCurve/Surface/Volume syntax with grading, Recombine, structured extrusion with Layers, periodic meshes, high-order, complete hex workflow.
  7. Read references/cli-and-python-api-playbook.md when choosing between .geo, CLI, and the Python API — covers complete CLI flag reference, Python API patterns for geometry, meshing, fields, partitioning, periodic meshes, CAD import.
  8. Read references/import-export-and-solver-handoff.md when importing CAD/STL or exporting meshes — covers all output formats, MSH4.1/MSH2 format details, element type table, downstream handoff recipes for FEniCS, OpenFOAM, Elmer, SU2, ABAQUS, Code_Aster, mesh partitioning.
  9. Read references/error-recovery.md when meshing or geometry construction fails — covers diagnostic commands, recovery decision tree, geometry/meshing failure recovery sequences, reporting template.
  10. Read references/error-pattern-dictionary.md for fast matching of specific Gmsh failure signatures — 14 patterns covering wrong kernel, missing physical groups, transfinite incompatibility, synchronize missing, boolean tag instability, 3D boundary recovery, negative Jacobians, periodic mismatch, and more.

Scenario Recipes

Load the relevant recipe when the task involves:

  • references/algorithm-selection-guide.md — 2D/3D algorithm selection matrices, parallel meshing, optimization passes, element order, subdivision for all-quad/all-hex
  • references/boundary-layer-and-refinement-recipes.md — BoundaryLayer field setup, y+ targeting, fan points, distance+threshold refinement, box/ball/cylinder refinement, MathEval sizing, complete 2D CFD airfoil recipe, 3D BL strategies
  • references/transfinite-and-recombine-playbook.md — structured hex/quad meshing, TransfiniteCurve grading (Progression, Bump), periodic mesh setup (affine transforms), extruded mesh with Layers, high-order elements
  • references/import-export-and-solver-handoff.md — STEP/IGES/BREP/STL import and healing, MSH4.1/MSH2/VTK/SU2/CGNS/MED format details, downstream solver physical group requirements, mesh partitioning with Metis

Work Sequence

  1. Choose one modeling path and stay consistent:
    • GEO kernel for simple scripted primitives, explicit point/curve control, and hybrid discrete models
    • OpenCASCADE for CAD-style solids, booleans (fuse/cut/fragment), fillets, pipes, lofts, and STEP/IGES import
  2. Build clean topology before tuning mesh size:
    • create all geometry
    • perform all boolean operations
    • call synchronize()
    • inspect entities and boundaries
  3. Define physical groups after geometry is finalized:
    • physical groups encode solver-facing semantics (inlet, outlet, walls, fluid, solid)
    • use getBoundary() and getEntitiesInBoundingBox() to identify surfaces after booleans
    • if physical groups are defined, only tagged elements are exported (use Mesh.SaveAll = 1 to override)
  4. Select the meshing algorithm:
    • 2D default: Delaunay (5) for speed, Frontal-Delaunay (6) for quality, MeshAdapt (1) for robustness
    • 3D default: Delaunay (1) for robustness, HXT (10) for parallel speed
    • embedded entities and size fields require Delaunay or HXT
  5. Configure mesh sizing:
    • start coarse and uniform, then add local refinement one field at a time
    • disable MeshSizeFromPoints, MeshSizeFromCurvature, MeshSizeExtendFromBoundary when fields are authoritative
    • combine multiple fields with Min and set as Background Field
  6. Use structured meshing only where topology supports it:
    • transfinite requires 3- or 4-sided surfaces with compatible node counts on opposite edges
    • extrusion with Layers produces structured hex/prism
    • recombine converts tris to quads (use Blossom algorithm + smoothing for quality)
  7. Optimize and validate before export:
    • optimize tets: gmsh.model.mesh.optimize("Netgen")
    • high-order: setOrder(2) then optimize("HighOrder")
    • check quality: getElementQualities(tags, "minSICN")
  8. Export in the format matching the downstream solver:
    • verify physical groups are present in the output
    • verify element types and mesh dimension match solver expectations

Guardrails

  • Do not mix GEO kernel and OpenCASCADE in the same model.
  • Do not define physical groups before synchronize() — entity tags may be stale.
  • Do not rely on raw entity tags staying stable after boolean operations — use BooleanFragments + the output map.
  • Do not force transfinite or recombine settings onto incompatible topology.
  • Do not use Mesh.SaveAll = 1 with MSH2 if physical group info is needed — MSH2 discards it.
  • Do not treat export format or mesh version as an afterthought — the receiving solver decides what metadata matters.
  • Do not add multiple competing size fields without combining them through a Min field.
  • Do not use embedded entities with algorithms other than Delaunay or HXT — they will be silently ignored.
  • Do not skip optimize("HighOrder") after setOrder(2) — curved elements on complex geometry will have negative Jacobians.
  • Do not mesh 3D without first verifying the 2D surface mesh is valid — 3D boundary recovery depends on it.

Additional References

Load these on demand:

  • references/modeling-kernels-and-geometry.md — GEO versus OpenCASCADE, boolean operations, extrusions, transformations, CAD/STL import, embedded/compound entities
  • references/physical-groups-and-entity-tagging.md — physical group syntax, export behavior, downstream solver requirements
  • references/algorithm-selection-guide.md — 2D and 3D algorithm matrices, parallel meshing, optimization, element order
  • references/mesh-size-and-field-control.md — complete field reference (Distance, Threshold, Box, Ball, Cylinder, BoundaryLayer, MathEval, AutomaticMeshSizeField), size hierarchy, callbacks
  • references/boundary-layer-and-refinement-recipes.md — BL setup, y+ targeting, wake refinement, complete CFD recipes
  • references/transfinite-and-recombine-playbook.md — structured meshing, periodic meshes, high-order, hex workflow
  • references/cli-and-python-api-playbook.md — all CLI flags, Python API patterns, .geo scripting reference
  • references/import-export-and-solver-handoff.md — format details, element types, solver handoff recipes, partitioning
  • references/error-pattern-dictionary.md — 14 failure patterns with symptoms, diagnosis, and fixes
  • references/error-recovery.md — diagnostic commands, recovery decision tree, reporting template

Reusable Templates

Use assets/templates/ when a concrete starting point is faster than building from scratch:

  • minimal_rectangle_2d.geo — simplest OCC rectangle with physical groups
  • occ_box_python.py — 3D box with boundary extraction via Python API
  • parametric_cylinder_in_box.geo — parametric external flow geometry with distance-based refinement
  • airfoil_bl_2d.py — 2D airfoil with boundary layer, wake refinement, and fan points
  • periodic_channel_hex.py — structured hex channel with periodic BCs (DNS/LES)
  • step_import_mesh.py — STEP import, healing, physical groups, parallel meshing
  • gmsh-batch-mesh.sh — minimal batch meshing script
  • gmsh-mesh-slurm.sh — SLURM-submitted batch meshing

Outputs

Summarize:

  • chosen modeling kernel and why
  • physical groups and their intended downstream meaning
  • meshing algorithm (2D and 3D) and why
  • mesh-size strategy: fields used, MeshSizeMin/Max, background field
  • structured-meshing or recombine choices if any
  • element order and optimization passes
  • export format and the exact failure class if the workflow is being repaired
  • mesh statistics: element counts by type, minimum quality metric

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Hpc Gmsh làm được gì?

Build, review, debug, and automate Gmsh geometry and meshing workflows. Use when working with `.geo` scripts, the Gmsh Python API, GEO versus OpenCASCADE modeling, physical groups, mesh-size fields, transfinite or recombine options, boundary layers, structured/unstructured algorithm selection, mesh partitioning, periodic meshes, high-order elements, mesh export and solver handoff (FEniCS, OpenFOAM, Elmer, SU2, etc.), CAD/STL import, or Gmsh CLI and meshing failures.

Vì sao nên dùng Hpc Gmsh trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Hpc Gmsh là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Hpc Gmsh trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/SciMate-AI/HPC-Skills/tree/main/skills/hpc-gmsh. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Hpc Gmsh?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Hpc Gmsh với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Hpc Gmsh với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Hpc Gmsh có miễn phí không?

Có. Kỹ năng này được SciMate-AI phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇