[ Home ] [ News ] [ Contact ] [ Search ] [ nextnano.com ] Input parser

 Download Software
 Copyright notice
 Publications

 GUI: nextnanomat
 Tool: nextnano
 Tool: nextnano++
 Tool: nextnano.QCL
 * password protected

 

 
Up
IP: Manual
IP: Keywords
IP: Code Layout
Add material parameters
 

Input Parser Manual

General

The given input parser reads and analyzes an input file according to predefined syntactical rules.
It is written in Fortran 2003. The author was GŁnther Zandler.
It has a unique psychological effect on any user: "No matter if it works or not - you will wonder why!"

The main idea is to realize a tool, which enables the user to write position independent (as far as possible) input files.
The input files can be changed without recompiling the parser.
The parser checks the input file for syntactical correctness, for the presence of required input and for correctness of the data types of the given variable values.

Additionally, functions and variables can be used ==> Macro feature.

Fortran input parser - General comments

  • input_parser.zip
    This is a simple test example (Fortran 2003 code) of GŁnther Zandler's famous input parser that is used inside nextnano≥.
    Maybe you got already familiar with it and want to use it in your own code.
  • Input parser: General
    This manual provides general infomation on keywords and specifiers that are used for treating the input files.
    This is important if you want to add additional
    keywords and additional specifiers in the files keywords.val and database_nn3.in.

 

Fortran input parser - nextnano3 specific comments

  • Input parser: Keywords
    General introduction to some of the keywords and specifiers including some examples.
  • General program layout
    This is a description how the main driving routine (MODULE input_driver_module) works (used for reading input parameters, database information as well as processing and checking the corresponding quantities).
  • Input scaling quantities and physical constants
    All input quantities are assumed to be given in scaled form.
    This is important for the material parameters in the database_nn3.in file.
    - $input-scaling-factors

    - $physical-constants
  • Keywords
    Here you can find detailed information for each individual keyword and its specifiers, e.g. start with
  • Simulation coordinate system
    What is the dimension of your simulation region/sample?
    Description of the
    keyword $simulation-dimension together with its specifiers dimension and orientation.
  • Domain coordinates
    Information about the overall simulation domain, that is the real space region in which the device is defined, - orientation of crystal and substrate.

Program documentation

 

Recent changes to the input parser

  • Input parser can be activated several times during a program run.
  • Added macro feature so that variables can be used.
  • Added function parser feature so that variables can be evaluated.
  • Allow for single precision input (and convert it automatically into double precision).
  • TABs are now allowed.