$assignparbyfunc

出自 DDCC TCAD TOOL Manual
前往: 導覽搜尋

$assignparbyfunc is a powerful function to change all parameters in the simulation program. It comes with dynamic external library called subroutine parameter_mod. In the 2D program, now it is only open for linux version with the execution file 2D-ddcc-dyna.exe. The file of this function is the file called libmodpar.f90. Simply add this command and the program will called the subroutine parameter_mod. You will need to modify the subroutine in order to modify the program's parameters.

For example:
Add following command in the input file. such as Project_1.inp

$assignparbyfunc

Open libmodpar.f90 file and modify the subroutine parameter_mod. And compile the program under linux environment. Intel fortran compiler is needed. Compile the file libmodpar.f90 to the external library libmodpar.so

ifort  -msse3 -O3  -no-prec-div  -shared -fPIC libmodpar.f90 -o libmodpar.so

And put this file in the same folder of 2D-DDCC or put the file in the shared library folder. Execute the file

2D-ddcc-dyna.exe Project_1.inp