Shape file maker for FDTD program in SALMON
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples add examples and others. Oct 24, 2018
misc add examples and others. Oct 24, 2018
README.md Update README.md Nov 12, 2018
about_inf_s.pdf add examples and others. Oct 24, 2018
make_shape.py add adj_err Oct 31, 2018
shape.inp Update shape.inp Oct 24, 2018

README.md

FDTD_make_shape

SALMON has a FDTD functionality to solve electromagnetic problems. This program makes the input shape file.

figure

Requirements

  • Python 3
  • NumPy

If you are windows user who uses python for the first time, I recommend to install WinPython that includes all requirements for this program.

Usage

make_shape.py is an executable file. shape.inp is a input file. make_shape.py and shape.inp must be in the same directory. When you use WinPython, open make_shape.py by Spyder that is included in WinPython and push F5 key.

The input parameters are as follows:

  • al_em(3)
    Size of simulation box in electromagnetic analysis. This must match the input parameter in SALMON.

  • dl_em(3)
    Spacing of real-space grids in electromagnetic analysis. This must match the input parameter in SALMON.

  • n_s
    Number of shape-templates. Maximum is 200.

  • rot_type
    Type of rotation for shape-template. 'degree' and 'radian' can be chosen. Default is 'radian'.

  • output
    Type of output file. 'cube' and 'mp' can be chosen. If 'cube', the output file can be drawn by ParaView(Usage: Open the cube file by ParaView→click:Molecule→Apply→Gridded Data→Representation→Volume). Default is 'cube'.

  • typ_s(x)
    Type of x-th shape-template. Maximum of x is n_s. 'ellipsoid', 'half-ellipsoid', 'elliptic-cylinder', 'triangular-cylinder', 'rectangular-cylinder', 'elliptic-cone', 'triangular-cone', and 'rectangular-cone' can be chosen.

  • id_s(x)
    ID number of x-th shape-template. This ID number must match the index of the input parameter in SALMON(e.g. epsilon, rmu, and sigma).

  • inf_s(x,:)
    Information of x-th shape-template. This depends on typ_s. See about_inf_s.pdf in detail.

  • ori_s(x,3)
    Origin of x-th shape-template.

  • rot_s(x,3)
    Rotation angle of x-th shape-template. Rotation axes of rot_s(x,1:3) correspond to x-, y-, and z-axes, respectively.

External Links

SALMON Project