Declare solution variables explanation: Difference between revisions

From Flooxs
Jump to navigation Jump to search
(New page: This page explains this section of code: #Define solution variables DevicePackage solution name=Potential nosolve solution add name=DevPsi solve negative solution add name=Elec solv...)
 
(No difference)

Revision as of 18:57, 26 October 2010

This page explains this section of code:

#Define solution variables 
DevicePackage
solution name=Potential nosolve
solution add name=DevPsi solve negative 
solution add name=Elec solve !negative
solution add name=Hole solve !negative

Flooxs was originally developed as a process simulator (floops). To decomission the typical process simulator vairables (such as Boron or vacancy concentrations), and initialize the usual device simulation variables instead (Elec, Hole, and DevPsi), use the "DevicePackage" command.

DevicePackage

Floods output:

flooxs> DevicePackage
solution add name = Int !negative !damp nosolve 
solution add name = Vac !negative !damp nosolve 
solution add name=V2 nosolve !negative 
solution add name=I2 nosolve !damp !negative 
solution add name=C311 nosolve !damp !negative 
solution add name=D311 nosolve !damp !negative 
solution add name=Smic nosolve !damp !negative 
solution add name = Potential nosolve damp negative 
solution add name = Boron nosolve !negative 
solution add name = Phosphorus nosolve !negative 
solution add name = Arsenic nosolve !negative 
solution add name = Antimony nosolve !negative 
solution add name = Germanium nosolve !negative 
solution add name = Carbon nosolve !negative 
solution add name = CarbonInt nosolve !negative 
solution add name = Temp const val=25 add solve 
solution add name=DevPsi solve negative damp 
solution add name=Elec solve !negative 
solution add name=Hole solve !negative 
solution add name=Circuit solve negative damp circuit const val=0.0 
Initialized for Device Simulation

The solution name "Potential" is reserved for the chemical potential in process simulation. That is why electrostatic potential is called "DevPsi," which stands for "Device Psi," where Psi is the greek letter that usually stands for electrostatic potential. The arguments to the solution command below should be self-explanatory. nosolve means don't solve this solution variables, solve means solve, negative means the solution variables is allowed to go negative, and !negative means that the solution variable will never be negative (keep in mind that Elec and Hole is electron or hole concentration /cm3 and does not include the charge sign. This is included in equations).

solution name=Potential nosolve
solution add name=DevPsi solve negative 
solution add name=Elec solve !negative
solution add name=Hole solve !negative

By default, these solutions are declared as pde solutions. If you wanted to do a "poisson-only" solve, see her (link).


In general you can add any solution variables you want.

*link to general page about solution variables (link to workflow link)