MAIA bb96820c
Multiphysics at AIA
|
Functions | |
void | calcMortarProjectionMatrixP (const MInt sourcePolyDeg, const MFloat *const sourceNodes, const MFloat *const sourceBaryWeights, const MInt targetPolyDeg, const MFloat *const targetNodes, MFloat *const matrix) |
void | calcMortarProjectionMatrixHForward (const MInt polyDeg, const MFloat *const nodes, const MFloat *const wBary, const MInt position, MFloat *const matrix) |
void | calcMortarProjectionMatrixHReverse (const MInt polyDeg, const MFloat *const nodes, const MFloat *const wBary, const MInt position, MFloat *const matrix) |
Variables | |
const MBool | forward = true |
const MBool | reverse = false |
const MInt | lower = 0 |
const MInt | upper = 1 |
|
inline |
Calculate h-refinement forward projection matrix from a coarse element to the mortar element (2D).
[in] | polyDeg | Polynomial degree of element/mortar. |
[in] | nodes | Node locations of Lagrange polynomial in [-1,1]. |
[in] | wBary | Barycentric weights of Lagrange polynomial. |
[in] | position | Determines lower or upper element. |
[out] | matrix | Projection matrix of size (polyDeg + 1) x (polyDeg + 1). |
Projection: lower: upper: | _ | | | | /| | | | / | \ | | _| | | | | |
See also pp. 25-26 in Sven Berger: Implementation and validation of an adaptive hp-refinement method for the discontinuous Galerkin spectral element method. Master thesis, RWTH Aachen University, 2014.
Definition at line 106 of file dgcartesianmortar.h.
|
inline |
Calculate h-refinement reverse projection matrix from a mortar element to the coarse element (2D).
[in] | polyDeg | Polynomial degree of element/mortar. |
[in] | nodes | Node locations of Lagrange polynomial in [-1,1]. |
[in] | wBary | Barycentric weights of Lagrange polynomial. |
[in] | position | Determines lower or upper element. |
[out] | matrix | Projection matrix of size (polyDeg + 1) x (polyDeg + 1). |
Projection: lower: upper: | | | | | / | | _ | |/_ | |\ | | \ | | | | |
See also pp. 25-26 in Sven Berger: Implementation and validation of an adaptive hp-refinement method for the discontinuous Galerkin spectral element method. Master thesis, RWTH Aachen University, 2014. and pp. 11-14 in Patrick Antony: Development of a coupled discontinuous Galerkin -finite volume scheme, Bachelor thesis, RWTH Aachen University, 2018.
Contrary to the method described as in the first reference by Berger, the reverse projection operator performs the following steps (see second reference by Antony): 1) Transform input from any quadrature node types to Gauss nodes 2) Apply mortar projection on Gauss nodes (identical to the original formulation in Berger) 3) Transform result from Gauss nodes to original quadrature node types
Therefore, the projection operator contructed here is a matrix multiplication of three matrices. If the integration nodes are Gauss nodes as well, this is equivalent to the method in the first reference.
Definition at line 160 of file dgcartesianmortar.h.
|
inline |
Calculate p-refinement mortar projection matrix from source to target polynomial degree.
[in] | sourcePolyDeg | Source polynomial degree. |
[in] | sourceNodes | Node locations in [-1,1] of source polynomial degree. |
[in] | sourceBaryWeights | Barycentric weights of source polynomial degree. |
[in] | targetPolyDeg | Target polynomial degree. |
[in] | targetNodes | Node locations in [-1,1] of target polynomial degree. |
[out] | matrix | Projection matrix of size (targetPolyDeg + 1) x (sourcePolyDeg + 1). |
This method can be used to calculate the projection matrix between any two polynomial degrees. For each forward projection, the corresponding reverse projection can be found by reversing the source and target polynomial degrees.
When projecting from polynomial degree N_s to N_t, then sourcePolyDeg = N_s and targetPolyDeg = N_t. The reverse projection can then be obtained by setting sourcePolyDeg = N_t and targetPolyDeg = N_s.
The content of the projection matrix P_ij is from polynomial degree N_s to N_t is as follows:
P_ij = l_j(x_i)
where l_j are the N_s + 1 Lagrange polynomials of degree N_s while x_i are the N_t + 1 Gauss nodes of degree N_t.
See also p. 22, Eq. 3.33 and Eq. 3.34 in Sven Berger: Implementation and validation of an adaptive hp-refinement method for the discontinuous Galerkin spectral element method. Master thesis, RWTH Aachen University, 2014.
Definition at line 63 of file dgcartesianmortar.h.
const MBool maia::dg::mortar::forward = true |
Definition at line 21 of file dgcartesianmortar.h.
const MInt maia::dg::mortar::lower = 0 |
Definition at line 23 of file dgcartesianmortar.h.
const MBool maia::dg::mortar::reverse = false |
Definition at line 22 of file dgcartesianmortar.h.
const MInt maia::dg::mortar::upper = 1 |
Definition at line 24 of file dgcartesianmortar.h.