#include <condensation.hpp>
◆ StaticCondensation()
| hpfem::assembly::StaticCondensation::StaticCondensation |
( |
Index |
num_dofs | ) |
|
|
explicit |
- Parameters
-
| num_dofs | size of the global system. |
◆ add_identity()
| void hpfem::assembly::StaticCondensation::add_identity |
( |
SparseAssembler & |
assembler | ) |
const |
Adds the identity rows of all interior DoFs seen so far (call once after the cell loop).
◆ condense()
| void hpfem::assembly::StaticCondensation::condense |
( |
std::span< const Index > |
dofs, |
|
|
Index |
num_interior, |
|
|
Matrix & |
local, |
|
|
Vector & |
load, |
|
|
std::vector< Index > & |
exterior |
|
) |
| |
Condenses the local system of one cell in place: dofs are the cell's global DoFs in local order with the last num_interior being the interior ones; local and load shrink to the exterior block and exterior receives the exterior DoFs. The recovery data of the cell is stored (thread-safe, callable from parallel cell loops). Cells without interior DoFs pass through unchanged.
- Exceptions
-
| Error | if the interior block is singular. |
◆ condense_load()
| Vector hpfem::assembly::StaticCondensation::condense_load |
( |
const Vector & |
load | ) |
const |
Condensed load \( \tilde f_E = f_E - K_{EB}K_{BB}^{-1}f_B \) of another full load for the same operator (interior entries zero), e.g. another incident field.
◆ condense_load_transposed()
| Vector hpfem::assembly::StaticCondensation::condense_load_transposed |
( |
const Vector & |
functional | ) |
const |
Condensed right-hand side of the transposed system \( K^\top z = q \) (the adjoint of the sensitivities): \( \tilde q_E = q_E - (K_{BB}^{-1}K_{BE})^\top q_B \), interior entries zero. The condensed matrix of the transposed system is the transpose of \( \tilde K_{EE}
\), so its solution is a transposed solve with the factors of the condensed system.
- Exceptions
-
◆ num_dofs()
| Index hpfem::assembly::StaticCondensation::num_dofs |
( |
| ) |
const |
|
inlinenoexcept |
◆ num_interior()
| Index hpfem::assembly::StaticCondensation::num_interior |
( |
| ) |
const |
|
inlinenoexcept |
◆ recover() [1/2]
| Vector hpfem::assembly::StaticCondensation::recover |
( |
const Vector & |
solution | ) |
const |
Fills the interior entries of a solution of the condensed system (for the loads passed to condense).
- Exceptions
-
◆ recover() [2/2]
| Vector hpfem::assembly::StaticCondensation::recover |
( |
const Vector & |
solution, |
|
|
const Vector & |
load |
|
) |
| const |
Interior recovery for a solution of the condensed system with load.
◆ recover_transposed()
| Vector hpfem::assembly::StaticCondensation::recover_transposed |
( |
const Vector & |
solution, |
|
|
const Vector & |
functional |
|
) |
| const |
Interior recovery of the transposed system: \( z_B = K_{BB}^{-\top}(q_B - K_{EB}^\top z_E)
\) for a solution of the condensed transposed system with right-hand side functional.
- Exceptions
-
The documentation for this class was generated from the following file: