ViennaSHE 1.3.0
Free open-source semiconductor device simulator using spherical harmonics expansions techniques.
mos1d_dg.hpp File Reference

Contains common code for the 1D MOS DG tests. More...

#include <iostream>
#include <cstdlib>
#include <vector>
#include "tests/src/common.hpp"
#include "viennashe/core.hpp"
#include "viennagrid/config/default_configs.hpp"
#include "viennagrid/algorithm/centroid.hpp"

Go to the source code of this file.

Classes

struct  mos1d_mesh_generator
 MOS 1D test-grid generator. More...
 
struct  reference_values
 A simple reference data reader. More...
 

Functions

template<typename DeviceType >
void init_device (DeviceType &device, double Vg_init, double Nd, double Na)
 Initalizes the MOS 1D device for testing. More...
 
template<typename DeviceType , typename AccessorType >
bool test_result (AccessorType const &quan, DeviceType const &device, std::string filename)
 Tests the given quantity against reference data in a file. Uses reference_values. More...
 

Detailed Description

Contains common code for the 1D MOS DG tests.

This is a header file containing all common definitions and declarations for the density gradient model tests on 1D MOS structures.

Definition in file mos1d_dg.hpp.

Function Documentation

◆ init_device()

template<typename DeviceType >
void init_device ( DeviceType &  device,
double  Vg_init,
double  Nd,
double  Na 
)

Initalizes the MOS 1D device for testing.

Parameters
deviceThe device class that is to be initalized
Vg_initThe initial gate voltage
NdThe donor doping (m^-3)
NaThe acceptor doping (m^-3)

Definition at line 94 of file mos1d_dg.hpp.

◆ test_result()

template<typename DeviceType , typename AccessorType >
bool test_result ( AccessorType const &  quan,
DeviceType const &  device,
std::string  filename 
)

Tests the given quantity against reference data in a file. Uses reference_values.

Parameters
quanAn accessor (cell-based) to the quantity
deviceReference to the device
filenamePath/Filename of the file (CSV, sperator is space) with reference values
Returns
True if the given data (quan) matches the reference from file (filename)

Definition at line 182 of file mos1d_dg.hpp.