hp-FEM
Adaptive hp-FEM suite for nano-optics
Loading...
Searching...
No Matches
Public Member Functions | List of all members
hpfem::physics::Thermal< Dim > Class Template Reference

#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
 

Detailed Description

template<int Dim>
class hpfem::physics::Thermal< Dim >

Assembles and solves the steady heat equation on an H1 space (hanging-node meshes supported through the H1 constraints).

Constructor & Destructor Documentation

◆ Thermal()

template<int Dim>
hpfem::physics::Thermal< Dim >::Thermal ( const fespace::DofMap< Dim > &  dofs,
ThermalSetup  setup 
)
Exceptions
InvalidArgumentfor a non-positive conductivity.

Member Function Documentation

◆ conductivity()

template<int Dim>
Real hpfem::physics::Thermal< Dim >::conductivity ( Index  cell) const

κ of a cell.

◆ dofs()

template<int Dim>
const fespace::DofMap< Dim > & hpfem::physics::Thermal< Dim >::dofs ( ) const
inlinenoexcept

◆ mass()

template<int Dim>
SparseMatrix hpfem::physics::Thermal< Dim >::mass ( ) const

◆ setup()

template<int Dim>
const ThermalSetup & hpfem::physics::Thermal< Dim >::setup ( ) const
inlinenoexcept

◆ solve()

template<int Dim>
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.

Exceptions
InvalidArgumentif q does not match the map.

◆ solve_load()

template<int Dim>
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).

◆ stiffness()

template<int Dim>
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.

◆ total_power()

template<int Dim>
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).


The documentation for this class was generated from the following file: