This section introduces the functions that can be used to control simulation.
Description
Adds a FDTD solver into the current simulation project.
Used in FDTD.
Syntax
Code | Function |
---|---|
addfdtd; |
Adds a FDTD solver into the current simulation project. |
addfdtd(x_pos, y_pos, z_pos); |
Adds a FDTD solver at the designated position x_position( x_pos m), y_position( y_pos m), z_position( z_pos m) into the current simulation project. |
See also
addfde, addfdfd
Description
Adds a FDE solver into the current simulation project.
Used in FDE.
Syntax
Code | Function |
---|---|
addfde; |
Adds a FDE solver into the current simulation project. |
addfde(x_pos, y_pos, z_pos); |
Adds a FDE solver at the designated position x_position( x_pos m), y_position( y_pos m), z_position( z_pos m) into the current simulation project. |
See also
addfdtd, addfdfd
Description
Adds a FDFD solver into the current simulation project.
Used in FDFD.
Syntax
Code | Function |
---|---|
addfdfd; |
Adds a FDFD solver into the current simulation project. |
addfdfd(x_pos, y_pos, z_pos); |
Adds a FDFD solver at the designated position x_position( x_pos m), y_position( y_pos m), z_position( z_pos m) into the current simulation project. |
See also
addfdtd, addfde
Description
Adds a mesh into the current simulation project.
Used in FDTD and FDE.
Syntax
Code | Function |
---|---|
addmesh; |
Adds a mesh into the current simulation project. |
addmesh(x_pos, y_pos, z_pos); |
Adds a mesh at the designated position x_position( x_pos m), y_position( y_pos m), z_position( z_pos m) into the current simulation project. |
See also
addfdtd, addfde, addfdfd
Description
Runs the current simulation.
Used in FDTD and FDFD.
Syntax
Code | Function |
---|---|
run; |
Runs the current simulation. |
Example
Run the current simulation.
run;
See also
simulation, runjobs, runanlysis
Description
Solves modes using the selected mode source, port, FDE solver or FDFP monitor whose mode expansion option has been enabled.
Used in FDTD and FDE.
Syntax
Code | Function |
---|---|
solvemode; |
Solves modes using the selected mode source, port, FDE solver or FDFP monitor whose mode expansion option has been enabled. |
solvemode('object_name'); |
Solves modes using the mode source, port, or FDFP monitor named 'object_name'. |
solvemode('parent_name::object_name'); |
Solves modes using the mode source, port, FDFP monitor named 'object_name' in group, analysis group, port group or solver named parent_name. |
Example
Solve modes using mode source named 'Mode Source' in FDTD.
solvemode('FDTD::Mode Source');
See also
run
Description
Runs the setup script in the structure group or analysis group.
This function can force setup script to be executed immediately.
Used in FDTD and FDE.
Syntax
Code | Function |
---|---|
runsetup; |
Runs the setup script in the structure group or analysis group. |
See also
runanalysis
Description
Runs the analysis script in the analysis group.
Used in FDTD.
Syntax
Code | Function |
---|---|
runanalysis; |
Runs the analysis scripts in all analysis groups. |
runanalysis('analysis_group'); |
Runs the analysis script in the analysis group named 'analysis_group' . |
Example
Runs the analysis script in the analysis group named 'Analysis_Group_Test_1' in FDTD.
runanalysis('FDTD::Analysis_Group_Test_1');
See also
run
Description
Gets the basic resource information of CPU and GPU.
Used in FDTD and FDE.
Syntax
Code | Function |
---|---|
getresourceinfo |
Lists all the basic information of CPU and GPU. |
Example
List all the basic information of CPU and GPU.
getresourceinfo
Result:
val =
CPU:
CPU id: 0
name: CPU
cores: 16
memory: 31.9278 GB
NVIDIA GPU:
GPU id: 0
name: NVIDIA GeForce GTX TITAN X
graphic memory: 11.9999 GB
major: 5
tcc: 0
See also
get
Description
Clears simulation files in the job manager.
Used in FDTD and FDE.
Syntax
Code | Function |
---|---|
clearjobs; |
Clears all simulation files in the job manager. |
clearjobs('solver_type'); |
Clears simulation files of designated solver in the job manager. |
Example
Clears simulation files of FDE solver in the job manager.
clearjobs('fde');
See also
addjobs
Description
Lists simulation files in the job manager queue.
Used in FDTD and FDE.
Syntax
Code | Function |
---|---|
L = listjobs; |
Lists all simulation files in the job manager queue. |
L = listjobs('solver_type'); |
Lists all simulation files of designated solver in the job manager queue. |
Example
L = listjobs('fdtd');
L
Result :
L =
fdtd:
F:/fdtd_project_test.mpps
See also
clearjobs, addjob
Description
Adds simulation file to the job manager queue.
Used in FDTD and FDE.
Syntax
Code | Function |
---|---|
addjob('file_path', 'solver_type'); |
Adds simulation file specified by 'file_path' to the job manager queue. |
Example
Adds simulation file to job manager.
addjob('D:\test_file.mpps', 'FDTD');
See also
runjobs
Description
Runs simulation files in the current job manager queue.
Used in FDTD and FDE.
Syntax
Code | Function |
---|---|
runjobs; |
Runs the jobs of the activated solver in current simulation project. If there is no activated solver, runs the jobs of FDTD solver. |
runjobs('solver_type'); |
Runs simulation files of designated solver in the job manager queue. |
runjobs('solver_type', parallel_set) |
Runs simulation files of designated solver in the job manager queue . If parallel_set is 0, runs jobs in single process mode. If parallel_set is 1, runs jobs using parallel settings specified in the job manager. |
See also
addjobs