flaport / fdtd

A 3D electromagnetic FDTD simulator written in Python with optional GPU support
https://fdtd.readthedocs.io
MIT License
454 stars 116 forks source link

Can I simulate birefringent material (eg. liquid crystal) with this simulation? #44

Closed jongyounghong closed 2 years ago

jongyounghong commented 2 years ago

Hi! Thank you for this wonderful project. Can I simulate birefringent material (eg. liquid crystal) with this simulation? Thank you.

flaport commented 2 years ago

yes you can.

unixial or biaxial materials can easily be modeled by setting grid.inverse_permittivity directly.

If you need off-axis elements in your permittivity, you'll need to create a custom Object. You can have a look at how AnisotropicObject is implemented and do something similar (or subclass it).

Good luck 🙂