Want to get started quickly? Try our Live Demo first to explore KronosAI's capabilities with pre-built examples before setting up your own custom device.
API: 3D Photonic Simulation with Custom Device
You can upload your own 2D binary mask (.npy
) that specifies the central device region (1 = Si, 0 = SiO₂). The server will place the device into the central region, extrude to 3D, run the KronosAI simulator immediately, and return the link to the image of the electric-field amplitude cross-sections.
Expected Input
- •
binary.npy
2D boolean or numeric array; non-boolean is thresholded at 0.5 to make it binary.
Options
- •
waveLength
wavelength in μm (default: 1.55) - •
discretization
coarse, standard, fine, ultrafine (default: coarse) - •
nx_TF_SF_boundary
total-field scattered-field location, specified as the number of cells away from the perfectly matching layer boundary (default: 20)
Submit a Job
curl -k -X POST "https://192.222.59.232/custom_perm" \
-F "file=@binary.npy;type=application/octet-stream" \
-F "waveLength=1.55" \
-F "discretization=coarse" \
-F "nx_TF_SF_boundary=20"
Example Output
{
"result": "https://192.222.59.232/download/<uuid>_neural-abs.png"
}