Skip to content

Conversation

marc-flex
Copy link
Contributor

@marc-flex marc-flex commented Sep 24, 2025

  • Add docs
  • Modify CHANGELOG

Greptile Overview

Updated On: 2025-09-29 14:36:05 UTC

Summary

This PR adds the Hurkx model for direct band-to-band tunneling (HurkxDirectBandToBandTunneling) to the TCAD components. The implementation follows the established patterns in the codebase and includes proper physics equations, parameter validation, and comprehensive integration.

Key additions:

  • New HurkxDirectBandToBandTunneling class with well-documented physics equation and parameters
  • Proper integration into the RecombinationModelType union type
  • Complete API exports and documentation updates
  • Basic instantiation test to ensure the class can be constructed
  • Clear changelog entry following project conventions

Confidence Score: 4/5

  • This PR is safe to merge with only minor stylistic considerations
  • Score reflects a well-implemented feature following established patterns, but with a minor suggestion about parameter defaults that could improve usability
  • Minor attention to generation_recombination.py for the sigma parameter default value consideration

Important Files Changed

File Analysis

Filename        Score        Overview
tidy3d/components/tcad/generation_recombination.py 4/5 Added new HurkxDirectBandToBandTunneling model class with proper documentation and physics equation; minor suggestion on parameter defaults
tidy3d/components/tcad/types.py 5/5 Properly integrated new HurkxDirectBandToBandTunneling into RecombinationModelType union
tests/test_components/test_heat_charge.py 5/5 Added basic instantiation test for HurkxDirectBandToBandTunneling with valid parameters

Sequence Diagram

sequenceDiagram
    participant User
    participant API as Tidy3D API
    participant HurkxBTBT as HurkxDirectBandToBandTunneling
    participant RecombModel as RecombinationModelType
    participant Simulation as ChargeSimulation

    User->>API: Import tidy3d
    API-->>User: Module loaded with HurkxDirectBandToBandTunneling
    
    User->>HurkxBTBT: Create instance with parameters (A, B, E_0, sigma)
    HurkxBTBT->>HurkxBTBT: Validate parameters (A > 0, E_0 > 0, sigma required)
    HurkxBTBT-->>User: HurkxDirectBandToBandTunneling instance
    
    User->>RecombModel: Add to RecombinationModelType union
    RecombModel-->>User: Model type validated
    
    User->>Simulation: Use in charge simulation setup
    Simulation->>HurkxBTBT: Calculate R_BTBT = A * (np - ni²)/((n+ni)(p+ni)) * (|E|/E₀)^σ * exp(-B/|E| * (Eg/Eg300)^1.5)
    HurkxBTBT-->>Simulation: Band-to-band tunneling recombination rate
    Simulation-->>User: Simulation ready with Hurkx BTBT model
Loading

@marc-flex marc-flex self-assigned this Sep 24, 2025
@marc-flex marc-flex force-pushed the marc/btbt_direct branch 2 times, most recently from d16dca5 to e30b4f5 Compare September 25, 2025 18:49
@marc-flex marc-flex marked this pull request as ready for review September 29, 2025 14:32
Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

6 files reviewed, 1 comment

Edit Code Review Agent Settings | Greptile

Copy link
Contributor

Diff Coverage

Diff: origin/develop...HEAD, staged and unstaged changes

  • tidy3d/components/tcad/generation_recombination.py (100%)

Summary

  • Total: 5 lines
  • Missing: 0 lines
  • Coverage: 100%

description="Exponent sigma in the direct BTBT Hurkx model. For direct "
"semiconductors sigma is typically 2.0, while for indirect "
"semiconductors sigma is typically 2.5.",
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these defaults for Si? I guess worth mentioning in the docstring.

1,
title="Reference electric field E_0",
description="Reference electric field E_0 in the direct BTBT Hurkx model.",
units="V/cm",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again the units confusion here which will be always a bit of a problem. Even in the Charge solver, our electric field monitor returns data in units of V/um. So if I wanted to use some recorded E-field as a reference value, it would be very easy to get wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants