#include <constraints.hpp>
◆ Constraints()
| hpfem::fespace::Constraints::Constraints |
( |
Index |
num_dofs | ) |
|
|
explicit |
◆ add()
| void hpfem::fespace::Constraints::add |
( |
Index |
slave, |
|
|
std::vector< Term > |
terms |
|
) |
| |
Adds \( x_{slave} = \sum \text{coefficient}_i\, x_{master_i} \). Masters may be slaves of other constraints (resolved later).
- Exceptions
-
| InvalidArgument | if an index is out of range, the slave is already constrained, or a master equals the slave. |
◆ append()
| void hpfem::fespace::Constraints::append |
( |
const Constraints & |
other | ) |
|
Adds every constraint of other (same number of DoFs), e.g. hanging-node constraints followed by Bloch-periodic ones.
- Exceptions
-
◆ expand()
| Vector hpfem::fespace::Constraints::expand |
( |
const Vector & |
reduced | ) |
const |
\( P x_f \): slaves filled in from their masters.
◆ has_test()
| bool hpfem::fespace::Constraints::has_test |
( |
| ) |
const |
|
inlinenoexcept |
◆ is_constrained()
| bool hpfem::fespace::Constraints::is_constrained |
( |
Index |
dof | ) |
const |
|
inline |
◆ num_constrained()
| Index hpfem::fespace::Constraints::num_constrained |
( |
| ) |
const |
|
inlinenoexcept |
◆ num_dofs()
| Index hpfem::fespace::Constraints::num_dofs |
( |
| ) |
const |
|
inlinenoexcept |
◆ num_free()
| Index hpfem::fespace::Constraints::num_free |
( |
| ) |
const |
|
inlinenoexcept |
◆ prolongation()
| SparseMatrix hpfem::fespace::Constraints::prolongation |
( |
| ) |
const |
Prolongation \( P \) (num_dofs × num_free): \( x = P x_f \).
◆ reduce()
◆ reduce_rhs()
| Vector hpfem::fespace::Constraints::reduce_rhs |
( |
const Vector & |
rhs | ) |
const |
\( P^H A P \) and \( P^H b \) ( \( Q^H \) with a test space): the system on the free DoFs.
- Exceptions
-
◆ reduced_index()
| Index hpfem::fespace::Constraints::reduced_index |
( |
Index |
dof | ) |
const |
Index of a free DoF among the free DoFs (ascending), kInvalidIndex for a slave.
◆ set_test()
| void hpfem::fespace::Constraints::set_test |
( |
const Constraints & |
test | ) |
|
Sets the test space \( Q \): the same slaves and resolved masters as these constraints, other coefficients. reduce, reduce_rhs then form \( Q^H A P \), \( Q^H b \). Used for Bloch phases off the unit circle, where test holds the phases \( 1/\bar\lambda \) (its conjugate coefficients are the analytic continuation of the real-k test functions). A later add or append drops the test space.
- Exceptions
-
| InvalidArgument | if the DoF count, the slaves or the resolved masters differ. |
◆ terms()
| std::span< const Term > hpfem::fespace::Constraints::terms |
( |
Index |
slave | ) |
const |
Resolved terms of a slave (masters are free DoFs), empty for a free DoF.
- Exceptions
-
◆ test_coefficient()
| Complex hpfem::fespace::Constraints::test_coefficient |
( |
Index |
slave, |
|
|
std::size_t |
k |
|
) |
| const |
Coefficient of the resolved term k of terms(slave) in the test space \( Q \) (the trial coefficient without a test space). Call terms first, which resolves the chains.
◆ test_prolongation()
| SparseMatrix hpfem::fespace::Constraints::test_prolongation |
( |
| ) |
const |
Test prolongation \( Q \) (equal to \( P \) without set_test).
The documentation for this class was generated from the following file: