The contexts.py module#
Summary#
Get general AEDT simulation workflow guidelines. |
|
Get HFSS-specific workflow guidelines. |
|
Get Maxwell 2D/3D workflow guidelines. |
|
Get Icepak thermal analysis guidelines. |
|
Get Circuit simulation guidelines. |
|
Get geometry creation guidelines for AEDT. |
|
Get mesh setup guidelines for AEDT. |
|
Get boundary and excitation guidelines for AEDT. |
|
Get postprocessing guidelines for AEDT. |
|
Get parametric analysis and optimization guidelines for AEDT. |
|
Get PyAEDT/AEDT simulation guidelines for a specific topic. |
Description#
Context tools for PyAEDT-MCP.
This module defines MCP tools that provide context and guidance for PyAEDT and Ansys Electronics Desktop (AEDT) workflows. These tools return context information that can be accessed by the LLM to get help with various aspects of electromagnetic and thermal simulations.
Module detail#
- contexts.get_guidelines_for_workflow_overview() str#
Get general AEDT simulation workflow guidelines.
Use this tool when explaining or generating PyAEDT or AEDT workflows.
- Returns:
strOverview of the general simulation process for all AEDT analysis types.
- contexts.get_guidelines_for_hfss() str#
Get HFSS-specific workflow guidelines.
Use this tool when explaining or generating HFSS simulations.
- Returns:
strGuidelines for HFSS high-frequency electromagnetic simulations.
- contexts.get_guidelines_for_maxwell() str#
Get Maxwell 2D/3D workflow guidelines.
Use this tool when explaining or generating Maxwell simulations.
- Returns:
strGuidelines for Maxwell electromagnetic simulations.
- contexts.get_guidelines_for_icepak() str#
Get Icepak thermal analysis guidelines.
Use this tool when explaining or generating Icepak thermal simulations.
- Returns:
strGuidelines for Icepak thermal management simulations.
- contexts.get_guidelines_for_circuit() str#
Get Circuit simulation guidelines.
Use this tool when explaining or generating Circuit simulations.
- Returns:
strGuidelines for Circuit and system-level simulations.
- contexts.get_guidelines_for_geometry() str#
Get geometry creation guidelines for AEDT.
Use this tool when explaining or generating geometry operations.
- Returns:
strGuidelines for creating and manipulating geometry in AEDT.
- contexts.get_guidelines_for_mesh() str#
Get mesh setup guidelines for AEDT.
Use this tool when explaining or generating mesh operations.
- Returns:
strGuidelines for mesh settings and operations in AEDT.
- contexts.get_guidelines_for_boundaries() str#
Get boundary and excitation guidelines for AEDT.
Use this tool when explaining or generating boundary conditions.
- Returns:
strGuidelines for boundary conditions and excitations in AEDT.
- contexts.get_guidelines_for_postprocessing() str#
Get postprocessing guidelines for AEDT.
Use this tool when explaining or generating postprocessing operations.
- Returns:
strGuidelines for postprocessing and results export in AEDT.
- contexts.get_guidelines_for_parametric() str#
Get parametric analysis and optimization guidelines for AEDT.
Use this tool when explaining or generating parametric studies.
- Returns:
strGuidelines for parametric sweeps and optimization in AEDT.
- contexts.get_guidelines_for(content: GuidelinesContent) str#
Get PyAEDT/AEDT simulation guidelines for a specific topic.
Use this tool before writing PyAEDT or Ansys AEDT scripting code to retrieve the relevant guidelines for the workflow step or solver you are about to use. Call it once per topic needed. You should call it before every code-generation task.
- Parameters:
- content
str Guideline topic to retrieve. Options follow:
"workflow": PyAEDT workflow overview"hfss": HFSS (high-frequency electromagnetics)"maxwell": Maxwell (low-frequency electromagnetics)"icepak": Icepak (electronics thermal)"circuit": Circuit / Twin Builder"geometry": Geometry creation and modeling"mesh": Mesh operations and refinement"boundaries": Boundary conditions and excitations"postprocessing": Reports, fields, and visualization"parametric": Parametric sweeps and optimization
- content
- Returns:
strGuideline text for the requested topic.
- contexts.GuidelinesContent#