PLaSK library

Loading...
Searching...
No Matches
thermal.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__TEMPERATURE_H
15#define PLASK__TEMPERATURE_H
16
17#include <plask/provider/providerfor.hpp>
18#include <plask/provider/combined_provider.hpp>
19
20 namespace plask {
21
74 struct PLASK_API Temperature: public ScalarFieldProperty {
75 static constexpr const char* NAME = "temperature";
76 static constexpr const char* UNIT = "K";
77 static inline double getDefaultValue() { return 300.; }
78};
79
83 struct PLASK_API HeatFlux: public VectorFieldProperty<> {
84 static constexpr const char* NAME = "heat flux";
85 static constexpr const char* UNIT = "W/m²";
86};
87
91 struct PLASK_API Heat: public ScalarFieldProperty {
92 static constexpr const char* NAME = "heat sources density";
93 static constexpr const char* UNIT = "W/m³";
94};
95
99 template <typename SpaceT>
100 struct HeatSumProvider: public FieldSumProvider<Heat, SpaceT> {};
101
105 struct PLASK_API ThermalConductivity: FieldProperty<Tensor2<double>> {
106 static constexpr const char* NAME = "thermal conductivity";
107 static constexpr const char* UNIT = "W/(m×K)";
108};
109
110} // namespace plask
111
112#endif // PLASK__TEMPERATURE_H