import{ }

Calling sequence

import{ }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • items: \(\mathrm{maximum\;1}\)

Dependencies
Functionality

Specifications for importing data from a file or generating them from an analytic function, e.g. electrostatic potential, alloy profile, strain profile, doping profile, generation rate profile, electron or hole Fermi level profile.

Once a file has been imported or a function has been defined, it can be used several times, e.g. the same file could include the alloy concentration of a ternary for different region objects.

Data with dimensionality deviating from the simulation dimension can also be imported, e.g. an absorption spectrum for solar cell modeling.

Examples
import{
    file{...}
    output_imports{}
}
import{
    analytic_function{...}
    output_imports{}
}

Nested keywords


directory

Calling sequence

import{ directory }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • type: \(\mathrm{character\;string}\)

  • default: empty

Functionality

Name of directory where files to be imported are located (if data are imported from files)

Example
import{
    directory = "D:\\import_files\\"
    file{...}
}

file{ }

Calling sequence

import{ file{ } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • items: \(\mathrm{no\;constraints}\)

Functionality

Example
import{
    file{...}
}

file{ name }

Calling sequence

import{ file{ name } }

Properties
  • using: \(\mathrm{\textcolor{WildStrawberry}{required\;within\;the\;scope}}\)

  • type: \(\mathrm{character\;string}\)

Functionality

Name for referencing the imported data in the input file, e.g. “imported_potential_profile_2D”

Example
import{
    file{
        name = "1D_import"
        ...
    }
}

file{ filename }

Calling sequence

import{ file{ filename } }

Properties
  • using: \(\mathrm{\textcolor{WildStrawberry}{required\;within\;the\;scope}}\)

  • type: \(\mathrm{character\;string}\)

Functionality

Name of file which is imported. Three ways of using are available.

One can define an absolute path to a file, e.g., "D:\\precious_data.dat". If so then directory is ignored if specified.

If the path is not specified here, e.g., "precious_data.dat" then the file must be located in the directory specified by directory.

When neither path is specified here, e.g., "precious_data.dat", nor the directory is defined, then the file must be located in the directory of the input file

Examples
import{
    file{
        name = "1D_import"
        filename = "D:\\precious_data.dat"
        ...
    }
}
import{
    directory = "D:\\"
    file{
        name = "1D_import"
        filename = "precious_data.dat"
        ...
    }
}
import{
    file{
        name = "1D_import"
        filename = "precious_data.dat"
        ...
    }
}

file{ format }

Calling sequence

import{ file{ format } }

Properties
  • using: \(\mathrm{\textcolor{WildStrawberry}{required\;within\;the\;scope}}\)

  • type: \(\mathrm{choice}\)

  • choices: AVS; DAT

Functionality

Format of the file to be imported. Formats .fld and .dat are supported for options AVS and DAT, respectively.

Example
import{
    directory = "D:\\"
    file{
        name = "1D_import"
        filename = "precious_data.dat"
        format = DAT
    }
}

file{ scale }

Calling sequence

import{ file{ scale } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • type: \(\mathrm{real\;number}\)

  • values: no constraints

  • default: 1.0

  • unit: \(\mathrm{-}\)

Functionality

A factor used to multiply the imported data. Can be used to change units of imported data for consistency with nextnano++, e.g., conversion from J to eV.

Examples
import{
    directory = "D:\\"
    file{
        name = "1D_import"
        filename = "precious_data.dat"
        format = DAT
        scale = 1.6022e-19
    }
}
import{
    directory = "D:\\"
    file{
        name = "1D_import"
        filename = "precious_data.dat"
        format = DAT
        scale = -1
    }
}

file{ number_of_dimensions }

Calling sequence

import{ file{ number_of_dimensions } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • type: \(\mathrm{integer}\)

  • values: {1, 2, 3}

  • default: simulation dimension

  • unit: \(\mathrm{-}\)

Functionality

Explicit specification of the number of dimensions of the space onto which the data is defined. Can be only used for .dat files.

Example
import{
    directory = "D:\\"
    file{
        name = "1D_import"
        filename = "precious_spectra.dat"
        format = DAT
        number_of_dimensions = 1
    }
}

analytic_function{ }

Calling sequence

import{ analytic_function{ } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • items: \(\mathrm{no\;constraints}\)

Dependencies
Functionality

Defines analytic functions to be imported here. Does not need to be defined if data are imported from files.

Example
import{
    analytic_function{
        name = "function_1"
        component{...}
    }
    analytic_function{
        name = "function_2"
        function = ...
    }
    analytic_function{
        name = "function_3"
        function = ...
        label = ...
    }
}

analytic_function{ name }

Calling sequence

import{ analytic_function{ name } }

Properties
  • using: \(\mathrm{\textcolor{WildStrawberry}{required\;within\;the\;scope}}\)

  • type: \(\mathrm{character\;string}\)

Functionality

Name for referencing the imported function in the input file.

Example
import{
    analytic_function{
        name = "Distribution_FD"
        function = ...
    }
}

analytic_function{ function }

Calling sequence

import{ analytic_function{ function } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • type: \(\mathrm{character\;string}\)

Functionality

String defining the function in case only one component needs to be defined, otherwise use component.

Attention

One should use the syntax allowed for functions:

  • white spaces are ignored

  • valid operators are “+”, “-”, “*”, “/” and “^”

  • multiplication signs always have to be spelled out (i.e. “5*x” is valid, “5x” is not)

  • variable names are fixed to “x”, “y” and “z” (capital letters are also allowed)

  • additional functions also available (e.g. “exp” , “sqrt”, “sin”, see full list below), have to be followed by brackets (“exp(x)” is valid, “exp x” is not)

  • global variables are allowed if preceded by “$” (e.g. “$PI”)

  • exponential notation (“2e-3” or “4E10”) is allowed

See also table at the bottom of this site.

Example
import{
    analytic_function{
        name = "Distribution_FD"
        function = 1/(exp(x) + 1)
    }
}

analytic_function{ label }

Calling sequence

import{ analytic_function{ label } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • type: \(\mathrm{character\;string}\)

Functionality

Label to be displayed in legend in case only one component is defined. If it’s not defined then, analytic_function{ name } is displayed.

Example
import{
    analytic_function{
        name = "Distribution_FD"
        function = 1/(exp(x) + 1)
        label = "Fermi Dirac"
    }
}

analytic_function{ component{ } }

Calling sequence

import{ analytic_function{ component{ } } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • items: \(\mathrm{no\;constraints}\)

Functionality

In case multiple components are needed, define one component group for each component.

Example
import{
    analytic_function{
        name = "Distributions"
        component{...}
        component{...}
    }
}

analytic_function{ component{ function_i } }

Calling sequence

import{ analytic_function{ component{ function_i } } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • type: \(\mathrm{character\;string}\)

Functionality

String defining the function for this component.

Example
import{
    analytic_function{
        name = "Distributions"
        component{
            function_i = 1/(exp(x) + 1)
        }
        component{
            function_i = 1/(exp(x) - 1)
        }
    }
}

analytic_function{ component{ label } }

Calling sequence

import{ analytic_function{ component{ label } } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • type: \(\mathrm{character\;string}\)

Functionality

Label to be displayed in legend for this component.

Example
import{
    analytic_function{
        name = "Distributions"
        component{
            function_i = 1/(exp(x) + 1)
            label = "Fermi-Dirac"
        }
        component{
            function_i = 1/(exp(x) - 1)
            label = "Bose-Einstein"
        }
    }
}

output_imports{ }

Calling sequence

import{ output_imports{ } }

Properties
  • using: \(\mathrm{\textcolor{ForestGreen}{optional\;within\;the\;scope}}\)

  • items: \(\mathrm{maximum\;1}\)

Functionality

Output all imported data including scale factor. The filenames correspond to the entry given in name = .... The files will be written to a folder called Imports/.

Example
import{
    file{...}
    analytic_function{...}
    output_imports{}
}

Operators and Functions supported by analytic_function{} group, sorted with decreasing precedence:

Operators

power (exponentiation)

^

multiplication, division

* /

plus and minus

+ -

round arithmetic brackets

( )

Functions

sqrt()

square root \(\sqrt{\text{ }}\)

cbrt()

cubic root \(\sqrt[3]{\text{ }}\)

exp()

exponential function \(\exp({\text{ }})\)

log()

natural logarithm \(\log\)

ln()

natural logarithm \(\ln\)

log2()

decadic logarithm (base 2) \(\log_{2}\)

log10()

decadic logarithm (base 10) \(\log_{10}\)

sin()

sine \(\sin({\text{ }})\)

cos()

cosine \(\cos({\text{ }})\)

tan()

tangent \(\tan({\text{ }})\)

asin()

acrsine \(\sin^{-1}({\text{ }})\)

acos()

arccosine \(\cos^{-1}({\text{ }})\)

atan()

arctangent \(\tan^{-1}({\text{ }})\)

sinh()

hyperbolic sine \(\sinh({\text{ }})\)

cosh()

hyperbolic cosine \(\cosh({\text{ }})\)

tanh()

hyperbolic tangent \(\tanh({\text{ }})\)

asinh()

inverse hyperbolic sine \(\sinh^{-1}({\text{ }})\)

acosh()

inverse hyperbolic cosine \(\cosh^{-1}({\text{ }})\)

atanh()

inverse hyperbolic tangent \(\tanh^{-1}({\text{ }})\)

erf()

error function \(\text{erf}({\text{ }})\)

erfc()

complementary error function \(\text{erfc}({\text{ }})\)

gamma()

Gamma function \(\Gamma({\text{ }})\)

fdm3half()

complete Fermi–Dirac integral \(F_{-3/2}({ })\) of order -3/2 (includes the \(1/\Gamma(-1/2)\) prefactor)

fdmhalf()

complete Fermi–Dirac integral \(F_{-1/2}({ })\) of order -1/2 (includes the \(1/\Gamma(1/2)\) prefactor)

fdzero()

complete Fermi–Dirac integral \(F_{0}({ })\) of order 0 (includes the \(1/\Gamma(1)=1\) prefactor)

fdphalf()

complete Fermi–Dirac integral \(F_{1/2}({ })\) of order 1/2 (includes the \(1/\Gamma(3/2)\) prefactor)

fdp3half()

complete Fermi–Dirac integral \(F_{3/2}({ })\) of order 3/2 (includes the \(1/\Gamma(5/2)\) prefactor)

abs()

absolute value \(|{\text{ }}|\)

floor()

floor function floor(x): largest integer \(\le x\)

ceil()

ceiling function ceil(x): smallest integer \(\ge x\)

round()

rounds the number to the nearest integer

sign()

sign function

heaviside()

Heaviside step function (corresponds to isnotnegative())

ispositive()

check if value is positive

isnegative()

check if value is negative

iszero()

check if value is zero

isnotpositive()

check if value is not positive

isnotnegative()

check if value is not negative (corresponds to heaviside())

isnotzero()

check if value is not zero