Skip to content

Conversation

@FilipeFcp
Copy link
Contributor

Hi guys,

I’ve recently received a few questions from users about how to convert the absorption coefficient into a complex refractive index and how to calculate absorbed power, so I decided to create this quick tutorial to demonstrate these features.

@github-actions
Copy link
Contributor

github-actions bot commented Nov 4, 2025

Spell Check Report

BeerLambert.ipynb:

Cell 1, Line 1: 'Beer-Lambert'
  > # Simulating the Beer-Lambert Law with Tidy3D
Cell 3, Line 7: 'Beer-Lambert'
  > We can relate $k$ to the absorption coefficient from the Beer-Lambert law:
Cell 6, Line 1: 'conductivity-based'
  > # Equivalent conductivity-based definition to verify consistency
Cell 7, Line 1: 'Beer-Lambert'
  > ## Simulating the Beer-Lambert Law
Cell 14, Line 5: 'Beer-Lambert'
  > And compare with the analytical results, from Beer-Lambert law:
Cell 17, Line 1: 'Beer-Lambert'
  > # Cumulative absorption along z to compare with Beer-Lambert prediction

Checked 1 notebook(s). Found spelling errors in 1 file(s).
Generated by GitHub Action run: https://github.com/flexcompute/tidy3d-notebooks/actions/runs/19109406087

Copy link
Contributor

@alec-flexcompute alec-flexcompute left a comment

Choose a reason for hiding this comment

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

Great notebook - super useful reference and awesome agreement with analytic solutions.

The only thing I'd suggest is maybe highlighting in the comments that you're using td.EPSILON_0, which is not 1. This caused me several minutes of confusion when I was converting loss to nk mediums. This is an optional suggestion, though.

Copy link
Contributor

@tomflexcompute tomflexcompute left a comment

Choose a reason for hiding this comment

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

Great addition @FilipeFcp !

@FilipeFcp
Copy link
Contributor Author

Thanks all!

@FilipeFcp FilipeFcp merged commit 91107bb into develop Nov 5, 2025
1 check passed
yaugenst-flex pushed a commit that referenced this pull request Nov 6, 2025
Beer-Lambert calculation tutorial
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants