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... | |
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.
void init_device | ( | DeviceType & | device, |
double | Vg_init, | ||
double | Nd, | ||
double | Na | ||
) |
Initalizes the MOS 1D device for testing.
device | The device class that is to be initalized |
Vg_init | The initial gate voltage |
Nd | The donor doping (m^-3) |
Na | The acceptor doping (m^-3) |
Definition at line 94 of file mos1d_dg.hpp.
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.
quan | An accessor (cell-based) to the quantity |
device | Reference to the device |
filename | Path/Filename of the file (CSV, sperator is space) with reference values |
Definition at line 182 of file mos1d_dg.hpp.