Geometries Sweep-Frequencies

中文/English

【Geometries_Sweep】


--- Without change geometries, sweep frequencies


In example :

after spectrum simulation, there are three interesting frequencies will to be simulate.

First order resonance frequency 1095 nm, second order resonance frequency 625 nm,

and absorption resonance frequency 300 nm


Here can use the geometries sweep function to sweep these three frequencies

wavelength 1095 nm

wavelength 625 nm

wavelength 300 nm



A. Select the "sweep cad file"

(1) Select Sphere_BC.stl

B. Setup all the parameters, output name

(1) Press【增加 Import】button two times, to add the same cad Sphere_BC.stl


(2) Rename the parameters file (file name is arbitrary)

FonSinEM_Repeat_Input.txt ==> wavelength_300nm.txt

FonSinEM_Repeat_Input.txt ==> wavelength_625nm.txt

FonSinEM_Repeat_Input.txt ==> wavelength_1095nm.txt


(3) Rename the output folder name (folder name is arbitrary)


(4) To edit the setup parameters

example :

In the file "wavelength_300nm.txt"

re_create_geometry=0  
preview_geometry=1
check_pulse_cw=0
lambda_center=300e-9

do not need to re-create the geometries here, set the parameter

re_create_geometry=0

Set the source to 【Continue Wave】

check_pulse_cw=0

% Set the center wavelength

lambda_center=300e-9

C. Create the sweep geometries


Windows

Linux

D. Press the 【start sweep simulation button】


Windows :

FonSinEM_Sweep.batcd CW_300nm

START /W mpiexec -n 8 -host PC D:\Sphere_Mie_diameter400nm_metal\CW_300nm\FonSinEM_FDTD.exe &
cd ..
cd CW_625nm
START /W mpiexec -n 8 -host PC D:\Sphere_Mie_diameter400nm_metal\CW_625nm\FonSinEM_FDTD.exe &
cd ..
cd CW_1095nm
START /W mpiexec -n 8 -host PC D:\Sphere_Mie_diameter400nm_metal\CW_1095nm\FonSinEM_FDTD.exe &
cd ..


Linux

FonSinEM_Sweep.sh

cd CW_300nm
mpiexec -n 8 -host administrator ./FonSinEM_FDTD.out &
wait %mpiexec
cd ..
cd CW_625nm
mpiexec -n 8 -host administrator ./FonSinEM_FDTD.out &
wait %mpiexec
cd ..
cd CW_1095nm
mpiexec -n 8 -host administrator ./FonSinEM_FDTD.out &
wait %mpiexec
cd ..