Input file



Input for TiberCAD is composed by an input file e.g. "input.tib" and a mesh file generated by a mesher software: as for now, mesh files from GMSH (*.msh, v.1 and v.2.0 ) and from ISE-TCAD (*.grd) are supported.

Be sure that the material files are in the correct directory.

To run the program, type:
tibercad input_file_name

 

A valid input file for TIBERCAD is a text file with the structure described in the following.
In the whole input file, everything following a ’#’ is considered as a comment and is
disregarded; blank lines can be present anywhere and are disregarded too.
Input file is composed by several sections: each section begins with a sectionname
preceded by ”$” (e.g. $Physics ).
A section is enclosed between ”{” and ”}” brackets and is possibly composed (depending
on the section) by a variable number of blocks enclosed between ”{” and ”}”
brackets.

Each block can be possibly composed by one or more blocks, each preceded by a
block-name.
The elementary block ( parameters-block ) is a block which contain zero or any
number of parameter assignements in the form:
tagname = tagvalue”,
where
• ”tagname” is a string
• ”tagvalue” is a single numerical or string item or a list of items between ”(” and ”)”
parenthesis and separated by commas. e.g. (cathode, anode)
Format is free for the parameter assignements, provided that they are separated by
spaces. Everything which follows a ’#’ is considered as a comment and is disregarded.

For example:

driftdiffusion
{
coupling = poisson
nonlin_max_it = 70
nonlin_rel_tol = 1e-10
ls_max_step = 2
#ls_type = none
discretization = fem
integration_order = 2
#pc_type = composite
ksp_type = bcgs
#quasi_equilibrium = (cathode, anode)
}

Here and in the whole input file a string item can include a combination of characters,
special characters and numbers, but not spaces; if a space is found , the string item is
taken as terminated.
The input file is composed by the following sections:
Device , Scale, Models , Physics, Solver, Simulation
which will be described in the following.