|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <thermal.hpp>
Public Member Functions | |
| Thermal (const fespace::DofMap< Dim > &dofs, ThermalSetup setup) | |
| const fespace::DofMap< Dim > & | dofs () const noexcept |
| const ThermalSetup & | setup () const noexcept |
| Real | conductivity (Index cell) const |
| κ of a cell. | |
| SparseMatrix | stiffness () const |
| SparseMatrix | mass () const |
| Vector | solve (const Vector &q) const |
| Vector | solve_load (const Vector &load) const |
Temperature for an assembled load \( b_i = \int\phi_i q \) (absorbed_power_load). | |
| Real | total_power (const Vector &q) const |
Assembles and solves the steady heat equation on an H1 space (hanging-node meshes supported through the H1 constraints).
| hpfem::physics::Thermal< Dim >::Thermal | ( | const fespace::DofMap< Dim > & | dofs, |
| ThermalSetup | setup | ||
| ) |
| InvalidArgument | for a non-positive conductivity. |
| Real hpfem::physics::Thermal< Dim >::conductivity | ( | Index | cell | ) | const |
κ of a cell.
|
inlinenoexcept |
| SparseMatrix hpfem::physics::Thermal< Dim >::mass | ( | ) | const |
|
inlinenoexcept |
| Vector hpfem::physics::Thermal< Dim >::solve | ( | const Vector & | q | ) | const |
Temperature coefficients for the source coefficients q on the same map: solves \( K T = M q \) with the fixed temperatures eliminated.
| InvalidArgument | if q does not match the map. |
| Vector hpfem::physics::Thermal< Dim >::solve_load | ( | const Vector & | load | ) | const |
Temperature for an assembled load \( b_i = \int\phi_i q \) (absorbed_power_load).
| SparseMatrix hpfem::physics::Thermal< Dim >::stiffness | ( | ) | const |
Stiffness \( K_{ij} = \int\kappa\nabla\phi_i\cdot\nabla\phi_j \) and mass \( M_{ij} = \int\phi_i\phi_j \) of the space.
| Real hpfem::physics::Thermal< Dim >::total_power | ( | const Vector & | q | ) | const |
Total heat input \( \int q \) [W] (3D) or [W/m] (2D) of source coefficients q (the mass matrix against the coefficients of the constant 1).