SkillAgentSearch skills...

Ketupa

This is a deep learning project applied to signal integrity and RF analysis. Automated modeling, simulation, and data storage of HFSS for patch antennas , transmission lines vias and connectors. By simulating and testing a large amount of S-parameter and TDR data, the S-parameter model is trained.

Install / Use

/learn @Shallot-2009/Ketupa
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

[Notes] Feed Patch_antenna and Transmission Line

V 0.0.3 Initial Release (Correlation with VC measurement data)

[Date] Aug 14, 2025

[Source] From Asenjo.HB.L design model at Beijing.

[Author's Email] 3405802009@qq.com

[Copyright] Copyright Asenjo.HB.L . All rights reserved.

Teaser image Teaser image1 Teaser image Teaser image

Ketupa—v0.0.3

Table of Contents

Disclaimer

The simulation part of Ketupa project uses Ansys HFSS , which uses an Open Source (BSD license) python wrapper interface to the Ansys HFSS Windows COM API, enabling you to control HFSS from python. Ketupa simplifies control of HFSS from Python for RF, signal integrity, microwave, and antenna design analysis.

  • This project is an open-source Python wrapper for Ansys HFSS and is not an official Ansys product.
  • The software is provided "as is" with no guarantee of functional completeness or compatibility.
  • We are not responsible for any losses incurred by using the Ansys COM API.
  • When including third-party components, you must verify their license compliance.

[License] This Ketupa project uses the BSD license. Users must ensure:

  1. Legally hold an Ansys HFSS license
  2. The secondary development script is independent of the commercial software binary/SDK
  3. Do not use the Ansys or contributors' names for promotional purposes
  4. Legally hold a Polar SI9000 license if using this software for impedance calculation

Introduction

This is a deep learning project applied to signal integrity and RF antenna design analysis. 1.Automated modeling, simulation, and data storage of HFSS for patch antennas and transmission lines. 2.Import the impedance parameters of the transmission line designed by Si9000 into HFSS for automatic modeling and simulation analysis. 3.API interface integration with large models to achieve interaction. 4.Automated Desktop Control Based on OmniParser. 5.Realize signal integrity and RF analysis through CNN.

Architecture

Patch_antenna

 ./Ketupa/simulation/Ansys_HFSS
   # Input
   -models
     - Wifi_patch_antenna.py
     - Edge_Fed_Rectangular_Patch_Antenna.py
     - Inset_Fed_Rectangular_Patch_Antenna.py
     - Planar_InvertedF_Antenna.py
     - Inset_Fed_Elliptical_Patch_Antenna.py
   -input_files
  
   # Output
   -HFSS_Projects
   -sim_results
     -  .bmp
     -  .csv
     -  .s1p

Transmission_Line

Print the impedance calculated from Polar SI9000 into a .pdf file, export and save it in ./Ketupa/simulation/Ansys_HFSS_from_si9000/input_files/ path and rename to Surface_Sicrostrip_1B.pdf or Edge-Coupled_Offset_Stripline_1B1A.pdf.

 ./Ketupa/simulation/Ansys_HFSS_from_si9000
    # Input
   -models
     - Surface_Microstrip_1B.py
     - Edge-Coupled_Offset_Stripline_1B1A.py
     - Diff_Offset_Coplanar_Strips_1B1A.py
     - …………
   -input_files
     - Surface_Microstrip_1B.pdf
     - Edge-Coupled_Offset_Stripline_1B1A.pdf
     - Diff_Offset_Coplanar_Strips_1B1A.pdf
     - …………
     
   # Output
   -HFSS_Projects
   -sim_results
     -  .bmp
     -  .csv
     -  .s4p
   -logs

Installation

Clone this repository:

git clone https://github.com/Shallot-2009/Ketupa.git
cd ./Ketupa/

Install PyTorch and other dependencies:

conda create -y -n [ENV] python=3.12
conda activate [ENV]

Torch

### conda install -y pytorch=[>=1.6.0] torchvision cudatoolkit=[>=9.2] -c pytorch ###
### pip install torch==2.2.2 torchvision==0.17.2 torchaudio==2.2.2 --index-url https://download.pytorch.org/whl/cpu ###

Data set

pip install -r requirements.txt
python main.py

Ansys hfss models:

cd ./Ketupa/simulation/Ansys_HFSS/models/
 python  Wifi_patch_antenna.py
#python Edge_Fed_Rectangular_Patch_Antenna.py
#python Inset_Fed_Rectangular_Patch_Antenna.py
#python Planar_InvertedF_Antenna.py
#python Inset_Fed_Elliptical_Patch_Antenna.py

or
cd ./Ketupa/simulation/Ansys_HFSS_from_si9000/models/
python Surface_Microstrip_1B
#python Edge-Coupled_Offset_Stripline_1B1A
#python Diff_Offset_Coplanar_Strips_1B1A

Matlab:

cd ./Ketupa/matlab/
run s_read_files.m

Simulation

cd ./Ketupa/simulation/Ansys_HFSS/models/
python Inset_Fed_Elliptical_Patch_Antenna.py

Output: Teaser image1 Teaser image Teaser image

or
cd ./Ketupa/simulation/Ansys_HFSS_from_si9000/models/
python Surface_Microstrip_1B

Teaser image Teaser image

or
cd ./Ketupa/simulation/Ansys_HFSS_from_si9000/models/
python Edge-Coupled_Offset_Stripline_1B1A

Teaser image Teaser image

Next Steps

Matlab CNN Test:

Teaser image

Auto_desk:

cd ..
python Auto_desk.py

Reference:
git clone https://github.com/microsoft/OmniParser.git

View on GitHub
GitHub Stars79
CategoryDevelopment
Updated4d ago
Forks9

Languages

Python

Security Score

95/100

Audited on Mar 26, 2026

No findings