Routines for the evalutation of pointwise errors. More...
Routines for the evalutation of pointwise errors.
Definition at line 17 of file Cubature.hpp.
| using Bembel::DiscreteLocalOperator = typedef DiscreteOperator< Eigen::SparseMatrix<typename LinearOperatorTraits<Derived>::Scalar>, Derived> |
DiscreteLocalOperator Specialization of the DiscreteOperator class for sparse matrices and an intgrator for local operators.
Definition at line 97 of file DiscreteLocalOperator.hpp.
Definition at line 18 of file GaussLegendre.hpp.
Definition at line 17 of file GaussSquare.hpp.
| double Bembel::calculateFirstCoefficient | ( | Eigen::VectorXd | cs, |
| unsigned int | deg, | ||
| Eigen::MatrixXd | ps_l, | ||
| Eigen::MatrixXd | ps_f, | ||
| Eigen::MatrixXd | ps_b | ||
| ) |
Calculates the first coefficient such that the mean of the kernel vanishes.
| cs | The already calculated other coefficients |
| deg | The degree |
| ps_l | Gauss quadrature points on the left side of the cube |
| ps_f | Gauss quadrature points on the front side of the cube |
| ps_b | Gauss quadrature points on the bottom side of the cube |
Definition at line 346 of file Coefficients.hpp.
gives the norming factor of the spherical polynomials
Definition at line 709 of file Sphericals.hpp.
|
inline |
Returns the gradient of the modified kernel \( - \sum_{m \in \{-1, 0, 1\}^3} \frac{x-m}{|x-m|^3} + \frac{x}{3} \).
Definition at line 312 of file Coefficients.hpp.
Convert a double to a string with given precision.
| d | double to be converted. |
| precision | Precision of the conversion. |
Definition at line 253 of file GeometryIGS.hpp.
| Eigen::Matrix< double, 3, Eigen::Dynamic > Bembel::Dsolid_harmonics_full | ( | Eigen::Vector3d | x, |
| unsigned int | N, | ||
| Eigen::MatrixXd | spherical_val | ||
| ) |
Calculates all gradients of the solid harmonics, given the Legendre Coefficients L.
Definition at line 492 of file Sphericals.hpp.
| Eigen::Matrix< double, 3, 2 > Bembel::dsolid_spherical_prev | ( | Eigen::Vector3d | y, |
| int | m, | ||
| unsigned int | n, | ||
| Eigen::VectorXd | L, | ||
| double | y_re, | ||
| double | y_im | ||
| ) |
Calculates the derivative of the solid harmonics function \( \phi_n^m \) at the point \( y \) with the spherical values.
Definition at line 593 of file Sphericals.hpp.
|
inline |
Calculates \( \nabla Y_m^n(x) \) based on the Legendre Coefficients L.
Definition at line 532 of file Sphericals.hpp.
| Eigen::Vector3d Bembel::evaluate_dsolid_sphericals | ( | Eigen::Vector3d | x, |
| Eigen::VectorXd | cs, | ||
| unsigned int | deg | ||
| ) |
Evaluates the series \( \sum_{n = 0}^{\rm deg} \sum_{m = -n}^n |x|^{n-3} c_m^n (\nabla Y_m^n)(\frac{x}{|x|}) \) for real coefficients.
| x | The point of evaluation |
| cs | The coefficients stored in the order \( [(0, 0), (1, -1), (1, 0), (1, 1) (2, -2), (2, -1), ... (n, n)] \) |
| deg | The degree |
Definition at line 302 of file Sphericals.hpp.
| Eigen::Vector3d Bembel::evaluate_dsphericals | ( | Eigen::Vector3d | x, |
| Eigen::VectorXd | cs, | ||
| unsigned int | deg | ||
| ) |
Evaluates the series \( \sum_{n = 0}^{\rm deg} \sum_{m = -n}^n c_m^n \nabla Y_m^n(x) \) for real coefficients.
| x | The point of evaluation, a vector with length 1 |
| cs | The coefficients stored in the order \( [(0, 0), (1, -1), (1, 0), (1, 1) (2, -2), (2, -1), ... (n, n)] \) |
| deg | The degree |
Definition at line 213 of file Sphericals.hpp.
| double Bembel::evaluate_solid_sphericals | ( | Eigen::Vector3d | x, |
| Eigen::VectorXd | cs, | ||
| unsigned int | deg, | ||
| bool | grad | ||
| ) |
Evaluates the series \( \sum_{n = 0}^{\rm deg} \sum_{m = -n}^n |x|^n c_m^n Y_m^n( \frac{x}{|x|}) \) for real coefficients cs if grad is false, and \( \sum_{n = 0}^{\rm deg} \sum_{m = -n}^n n |x|^{n-1} c_m^n Y_m^n(\frac{x}{|x|}) \) for real coefficients cs if grad is true.
| x | The point of evaluation |
| cs | The coefficients stored in the order \( [(0, 0), (1, -1), (1, 0), (1, 1) (2, -2), (2, -1), ... (n, n)] \) |
| deg | The degree |
| grad | distinguish the two cases. |
Definition at line 128 of file Sphericals.hpp.
Evaluates the series \( \sum_{n = 0}^{\rm deg} \sum_{m = -n}^n c_m^n Y_m^n(x) \) for real coefficients, with the convenction that \( Y_{-m}^n := \overline{Y_m^n} \).
| x | The point of evaluation, a vector with length 1 |
| cs | The coefficients stored in the order \( [(0, 0), (1, -1), (1, 0), (1, 1) (2, -2), (2, -1), ... (n, n)] \) |
| deg | The degree |
Definition at line 68 of file Sphericals.hpp.
|
inline |
gives \( |z|^3 \) times the Jacobi Matrix of the transformation \( z \mapsto \frac{z}{|z|} \)
Definition at line 723 of file Sphericals.hpp.
| Eigen::VectorXd Bembel::getCoefficients | ( | double | precision | ) |
Calculates the coefficients for the solid harmonics expansion of the periodic kernel \( k(x) = \sum_{m \in \{-1, 0, 1\}^3} \frac{1}{4 \pi |x-m|} + \frac{|x|^2}{6} + \sum_{n = 0}^{N} \sum_{m = -n}^n c_m^n \phi_n^m(x) \).
| precision | The desired mean error from periodicity. |
Definition at line 60 of file Coefficients.hpp.
Returns the degree of the sphericals expansion given a precision. Can be extended, use even numbers only!
Definition at line 221 of file Coefficients.hpp.
| Eigen::VectorXd Bembel::getDisplacement | ( | Eigen::MatrixXd | ps_l, |
| Eigen::MatrixXd | ps_f, | ||
| Eigen::MatrixXd | ps_b | ||
| ) |
Returns the right-hand side for the homogenised coefficient calculation.
| ps_l | Points on the left side, i.e. \( \subseteq \{-0.5\} \times [-0.5, 0.5] \times [-0.5, 0.5] \). |
| ps_f | Points on the front side, i.e. \( \subseteq [-0.5, 0.5] \times \{-0.5\} \times [-0.5, 0.5] \). |
| ps_b | Points on the bottom side, i.e. \( \subseteq [-0.5, 0.5] \times [-0.5, 0.5] \times \{-0.5\} \). |
Definition at line 238 of file Coefficients.hpp.
|
constexpr |
Definition at line 75 of file DifferentialFormEnum.hpp.
Definition at line 67 of file DifferentialFormEnum.hpp.
|
inline |
Returns the modified kernel \( \sum_{m \in \{-1, 0, 1 \}^3} \frac{1}{4 \pi |x-m|} + \frac{|x|^2}{6} \).
Definition at line 286 of file Coefficients.hpp.
Returns the values of the spherical polynomials \( P_n^m(t) \).
Definition at line 677 of file Sphericals.hpp.
method to generate textfile for the geometry
| file_name | name of new textfile |
| number_of_patches | overall number of patches |
Definition at line 130 of file GeometryIO.hpp.
returns the \( n \)-th power of \( x \) without using pow.
Definition at line 742 of file Sphericals.hpp.
| Eigen::Matrix< double, Eigen::Dynamic, 2 > Bembel::spherical_harmonics_full | ( | Eigen::Vector3d | x, |
| unsigned int | N | ||
| ) |
Calculates the the spherical harmonics \( Y_n^m(\frac{x}{|x|}) \), ordered by \( [Y_0^0, \, Y_1^{-1}, \, Y_1^0, \, Y_1^1, \, Y_2^{-2}, ..., Y_N^N] \).
| x | the point of evaluation |
| N | the maximal degree |
Definition at line 388 of file Sphericals.hpp.
|
inline |
Calculates the spherical harmonic \( Y_n^m(x) \) based on previous values.
Definition at line 463 of file Sphericals.hpp.
| double Bembel::surfaceL2error | ( | const AnsatzSpace< Op > & | ansatz_space, |
| const Eigen::MatrixBase< Derived > & | vec, | ||
| const Functor & | functor, | ||
| int | deg = 4 |
||
| ) |
Definition at line 18 of file surfaceL2error.hpp.
|
noexcept |
method to write Patch information into textfile
| knt1 | knotVector1 |
| knt2 | knotVector2 |
| xyzw | Vector with x,y,z,w Matices |
| file_name | filename |
| current_patch_number | current patch number |
Definition at line 154 of file GeometryIO.hpp.
| std::function<double(const Eigen::Vector2d &, const Eigen::Vector2d &)> Bembel::DummyOperator_test_function |
Definition at line 34 of file DummyOperator.hpp.