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.npy2D boolean or numeric array; non-boolean is thresholded at 0.5 to make it binary.

Options

  • waveLengthwavelength in μm (default: 1.55)
  • discretizationcoarse, standard, fine, ultrafine (default: coarse)
  • nx_TF_SF_boundarytotal-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"
}