PLaSK library
Loading...
Searching...
No Matches
gain.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__GAIN_H
15
#define PLASK__GAIN_H
16
17
#include "
plask/math.hpp
"
18
#include "
plask/provider/providerfor.hpp
"
19
20
namespace
plask
{
21
39
struct
PLASK_API
Gain
:
public
MultiFieldProperty
<Tensor2<double>, double> {
40
enum
EnumType
{
41
GAIN = 0,
42
DGDN = 1
43
};
44
static
constexpr
size_t
NUM_VALS = 2;
45
static
constexpr
const
char
* NAME =
"material gain"
;
46
static
constexpr
const
char
* UNIT =
"1/cm"
;
47
// static inline double getDefaultValue() { return NAN; }
48
};
49
53
struct
PLASK_API
Luminescence
:
public
FieldProperty
<Tensor2<double>, double> {
54
static
constexpr
const
char
* NAME =
"luminescence"
;
55
static
constexpr
const
char
* UNIT =
"a.u."
;
56
// static inline double getDefaultValue() { return NAN; }
57
};
58
59
}
// namespace plask
60
61
#endif
// PLASK__GAIN_H
plask
properties
gain.hpp
Generated by
1.9.8