Metadata-Version: 2.4
Name: tanager
Version: 2026.1.2
Summary: Python-driven 3D full-wave electromagnetic simulation
Project-URL: Homepage, https://tanager-tech.com/
Project-URL: Documentation, https://docs.tanager-tech.com/en/hado/getting-started/
Project-URL: API Reference, https://docs.tanager-tech.com/en/hado/reference/highfrequency/
Project-URL: Tutorials, https://docs.tanager-tech.com/en/hado/tutorial/antenna/design_and_analyze_rectangular_patch_antenna/patchAntenna/
Keywords: electromagnetics,electromagnetic simulation,finite element method,FEM,RF,microwave,signal integrity,S-parameters,antenna,EMC
Requires-Python: <3.16,>=3.11
Description-Content-Type: text/markdown
License-File: LICENSE.txt
Requires-Dist: numpy
Requires-Dist: scipy>=1.15
Requires-Dist: matplotlib
Requires-Dist: scikit-rf
Requires-Dist: pyvista>=0.46
Dynamic: license-file

# Tanager Hado Series

**Python-driven 3D full-wave electromagnetic simulation**

Tanager Hado Series is a programmable electromagnetic simulation platform designed for engineers, researchers, and developers working with high-frequency electromagnetic problems.

Hado combines a Python-based modeling and analysis interface with a compiled native finite element solver. It allows users to configure electromagnetic models, perform full-wave simulations, and analyze results through Python scripts and Jupyter notebooks.

The **Hado Community Edition** is available free of charge, making full-wave electromagnetic simulation accessible for academic research, engineering development, and practical design studies.

## Applications

Hado is suited for analyzing electromagnetic wave propagation, reflection, transmission, and coupling in applications such as:

- **Antennas:** Resonance, impedance matching, and electromagnetic field distributions.
- **RF and microwave circuits:** Transmission-line behavior, reflection, and signal propagation.
- **PCB signal integrity:** Microstrip structures, interconnects, and discontinuities.
- **Electromagnetic research:** Full-wave numerical experiments, model verification, and comparison with measurements.

## Key Features

### 3D Full-Wave Electromagnetic Simulation

Solve three-dimensional, frequency-domain Maxwell equations using the finite element method (FEM).

A compiled native solver performs the numerical computation, while Python provides the interface for model setup and result analysis.

### Python-Based Simulation Workflow

Configure and execute electromagnetic simulations directly from Python.

Import a computational mesh, assign materials and boundary conditions, specify operating frequencies, solve the model, and analyze the results.

The script-based approach supports reproducible analyses, parameter studies, and integration with existing Python engineering workflows.

### Material and Boundary Modeling

Define dielectric materials using relative permittivity and dielectric loss tangent.

Supported boundary conditions include:

- Perfect electric conductor (PEC)
- Absorbing boundary condition (ABC)
- Rectangular lumped ports
- Coaxial lumped ports

### Frequency-Domain Analysis

Perform electromagnetic analysis at individual frequencies or over a frequency sweep.

### Field Post-Processing and Visualization

Examine electromagnetic simulation results using Python visualization tools.

Available capabilities include:

- 3D mesh and model visualization
- S-Parameters
- Surface-current distribution visualization

### External Mesh Integration

Hado works with volume meshes generated using external geometry and meshing software.

This allows users to prepare their geometry and mesh separately while keeping electromagnetic model configuration, simulation, and result analysis within Python.

## Installation

Install the Hado Community Edition from PyPI:

```bash
pip install tanager
```

Import the Hado module:

```python
import hado
```

Prebuilt packages are available for supported Windows and Linux systems. Additional runtime requirements depend on the operating system.

See the [Getting Started guide](https://docs.tanager-tech.com/en/hado/getting-started/) for supported Python versions, system requirements, and installation instructions.

## Getting Started with a Simulation

See the [Rectangular Patch Antenna Tutorial](https://docs.tanager-tech.com/en/hado/tutorial/antenna/design_and_analyze_rectangular_patch_antenna/patchAntenna/) for the complete workflow.

The following example illustrates a rectangular patch antenna simulation using a mesh prepared with Gmsh.

```python
import numpy as np
from hado import boundary, material, highfrequency, mesh

# Create the electromagnetic model.
model = highfrequency.HighFrequency()
model.frequency = np.linspace(2.2e9, 2.7e9, 21)

# Import a prepared computational mesh.
model.mesh = mesh.Mesh("patchAntenna.msh")

# Assign dielectric materials.
model.assign_material(
    material.Dielectric("FR4", epsilon_r=4.3, loss_tangent=0.015),
    domain=1
)
model.assign_material(
    material.Dielectric("Air", epsilon_r=1.0, loss_tangent=0.0),
    domain=2
)

# Configure boundary conditions.
port = boundary.LumpedPort(
    3,
    width=2.5e-3,
    height=1.53e-3,
    voltage_direction=[0.0, 0.0, 1.0],
    voltage=1.0,
    impedance=50.0
)

model.boundary = [
    boundary.Absorbing(2),
    boundary.PEC(1),
    port
]

# Solve and plot the S-parameters.
solution = model.solve()
solution.s_parameters().plot()
```

The `patchAntenna.msh` file must first be generated using the supplied Gmsh tutorial files.

## Examples and Validation

Tanager provides engineering examples demonstrating full-wave electromagnetic simulation and comparisons with experimental measurements or published reference data.

These include patch antennas, microstrip transmission lines, coupled microstrip structures, and PCB interconnects.

Visit the [Tanager website](https://tanager-tech.com/) to explore the examples and simulation results.

## Documentation

Detailed documentation is available online:

- [Getting Started](https://docs.tanager-tech.com/en/hado/getting-started/)
- [Python API Reference](https://docs.tanager-tech.com/en/hado/reference/highfrequency/)
- [Simulation Tutorial](https://docs.tanager-tech.com/en/hado/tutorial/antenna/design_and_analyze_rectangular_patch_antenna/patchAntenna/)

## License

Hado Community Edition is free to use under the Tanager Software License Agreement.

Tanager Hado is proprietary software and is not distributed as open-source software.

Copyright © 2026 Tanager LLC. All rights reserved.
