|
hp-FEM
Adaptive hp-FEM suite for nano-optics
|
#include <functional>#include <optional>#include <Eigen/Core>#include "hpfem/assembly/condensation.hpp"#include "hpfem/assembly/h1_forms.hpp"#include "hpfem/core/types.hpp"#include "hpfem/fespace/dof_map.hpp"#include "hpfem/mesh/point_location.hpp"

Go to the source code of this file.
Classes | |
| struct | hpfem::assembly::ElasticForm< Dim > |
| Coefficients of one cell; an empty function means zero (the stiffness is required). More... | |
| struct | hpfem::assembly::AxisymmetricElasticForm |
| Coefficients of one meridian cell; the eigenstrains are Voigt vectors (rr, zz, θθ, γ_rz). More... | |
Namespaces | |
| namespace | hpfem |
| namespace | hpfem::assembly |
Typedefs | |
| template<int Dim> | |
| using | hpfem::assembly::VoigtMatrix = Eigen::Matrix< Complex, kVoigtSize< Dim >, kVoigtSize< Dim > > |
| template<int Dim> | |
| using | hpfem::assembly::VoigtVector = Eigen::Matrix< Complex, kVoigtSize< Dim >, 1 > |
| template<int Dim> | |
| using | hpfem::assembly::ComplexTensor = Eigen::Matrix< Complex, Dim, Dim > |
| template<int Dim> | |
| using | hpfem::assembly::ElasticFormFactory = std::function< ElasticForm< Dim >(Index)> |
| using | hpfem::assembly::AxisymmetricVoigtMatrix = Eigen::Matrix< Complex, 4, 4 > |
| using | hpfem::assembly::AxisymmetricVoigtVector = Eigen::Matrix< Complex, 4, 1 > |
| using | hpfem::assembly::AxisymmetricElasticFormFactory = std::function< AxisymmetricElasticForm(Index)> |
Functions | |
| template<int Dim> | |
| VoigtMatrix< Dim > | hpfem::assembly::isotropic_stiffness (Real youngs_modulus, Real poisson_ratio) |
| template<int Dim> | |
| VoigtVector< Dim > | hpfem::assembly::to_voigt_strain (const ComplexTensor< Dim > &strain) |
| Voigt vector of a symmetric strain tensor (engineering shears 2 ε_ij). | |
| template<int Dim> | |
| ComplexTensor< Dim > | hpfem::assembly::from_voigt_stress (const VoigtVector< Dim > &stress) |
| Symmetric stress tensor of a Voigt stress vector (no factor 2 on the shears). | |
| template<int Dim> | |
| AssembledSystem | hpfem::assembly::assemble_elasticity (const fespace::DofMap< Dim > &dofs, const ElasticFormFactory< Dim > &form_of_cell, int extra_order=2, StaticCondensation *condensation=nullptr) |
| AxisymmetricVoigtMatrix | hpfem::assembly::axisymmetric_isotropic_stiffness (Real youngs_modulus, Real poisson_ratio) |
| AssembledSystem | hpfem::assembly::assemble_axisymmetric_elasticity (const fespace::DofMap< 2 > &dofs, const AxisymmetricElasticFormFactory &form_of_cell, int extra_order=2, StaticCondensation *condensation=nullptr) |
| template<int Dim> | |
| Eigen::Matrix< Complex, Dim, 1 > | hpfem::assembly::evaluate_displacement (const fespace::DofMap< Dim > &dofs, const Vector &u, Index c, const Point< Dim > &xi) |
Displacement (Dim components) of the block coefficients u at reference point ξ of cell c. | |
| template<int Dim> | |
| ComplexTensor< Dim > | hpfem::assembly::evaluate_displacement_gradient (const fespace::DofMap< Dim > &dofs, const Vector &u, Index c, const Point< Dim > &xi) |
| Displacement gradient \( (\nabla u)_{ij} = \partial_j u_i \) at reference point ξ of cell c. | |
| template<int Dim> | |
| ErrorNorms | hpfem::assembly::elasticity_error (const fespace::DofMap< Dim > &dofs, const Vector &u, const std::function< Eigen::Matrix< Complex, Dim, 1 >(const Point< Dim > &)> &exact, const std::function< ComplexTensor< Dim >(const Point< Dim > &)> &exact_gradient, int extra_order=2) |
Variables | |
| template<int Dim> | |
| constexpr int | hpfem::assembly::kVoigtSize = Dim == 2 ? 3 : 6 |
| Number of Voigt components: 3 in 2D, 6 in 3D. | |
Forms of small-strain linear elasticity on the vector H1 space (ADR-0016): Dim copies of the scalar hierarchical DofMap<Dim>, numbered component-major, \( u = (u_x | u_y | u_z) \) with the DoF i·N + k for component i and scalar DoF k (N = dofs.num_dofs()). The bilinear form and the loads are
\[ a(u, v) = \int C\,\varepsilon(u) : \varepsilon(v), \qquad \ell(v) = \int C\,\varepsilon^* : \varepsilon(v) + \int f\cdot v \]
with the stiffness C in Voigt notation: 3D order (xx, yy, zz, yz, xz, xy), 2D (xx, yy, xy) in plane strain, engineering shear strains (γ_ij = 2 ε_ij). Tractions are surface loads (physics::Elasticity). Real problems are assembled as complex with zero imaginary part (ADR-0016 §3). SI units: u [m], C and σ [Pa], f [N/m³]. See docs/theory/elasticity.md.