JoGed / dissipation-calculation

0 stars 0 forks source link

Documentation for dissipation-calculation

nc_files


This code allows for calculating and visualizing the electric power dissipation profile and its integration (absorption efficiency) of the TopOpt designs and spheres made of Gold and Silicon presented in the article Time-domain topology optimization of the power dissipation in dispersive dielectric and plasmonic nanostructures. The computations require the dataset provided at data, containing the electric field distribution in 3D for multiple wavelengths (netCDF), the final density (netCDF), the design (STL), and the material and simulation parameters (JSON) used in the optimization.

Requirements

Usage

The file commands.txt provides examples of prepared commands one can execute:

Examples

TopOpt design (Gold)

Run: python analyze.py --dir_design=data/Au/Design

Qabs_design_gold

Output: Absorption efficiency $Q_{\text{abs}}$ of the design.


Run: python verifyEpsilon.py --lower_bound=0.3 --upper_bound=0.7 --dir_CCPR=data/Au/Design/materialTopOpt.json --dir_data=data/eps_data/Au_Johnson.txt --N=201

eps_gold

Output: Permittivity $\varepsilon$ fit of Gold.

Sphere (Gold)

Run: python analyze.py --dir_design=data/Au/Sphere

Qabs_sphere_gold

Output: Absorption efficiency $Q_{\text{abs}}$ of a sphere ($d$=300nm).


Run: python verifyMie.py --dir_mie=data/Au/Sphere

mie_gold

Output: Absorption efficiencies $Q_{\text{abs}}$ of the sphere compared to Mie theory ($d$=300nm).