PLaSK library
Loading...
Searching...
No Matches
functions.hpp
Go to the documentation of this file.
1/*
2 * This file is part of PLaSK (https://plask.app) by Photonics Group at TUL
3 * Copyright (c) 2022 Lodz University of Technology
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, version 3.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 */
14#ifndef PLASK__PHYS_FUNCTIONS_H
15#define PLASK__PHYS_FUNCTIONS_H
16
17#include <plask/config.hpp> //for PLASK_API
18#include "constants.hpp"
19
20namespace plask { namespace phys {
21
30PLASK_API double Varshni(double Eg0K, double alpha, double beta, double T);
31
37inline static double nm_to_eV(double wavelength) { return h_eVc1e9 / wavelength; }
38
44inline static double eV_to_nm(double E) { return h_eVc1e9 / E; }
45
46}} // namespace plask::phys
47
48#endif // PLASK__PHYS_FUNCTIONS_H