|
| double | vulpes::assemble::dg::sqrtNonNegative (double x, double tol=1e-12) |
| | Square root of a quantity that is non-negative in exact arithmetic (squared norms, quadratic forms).
|
| double | vulpes::assemble::dg::computeDGError (double errH1int, double errJump) |
| | compute the total DG error by combining the H1 semi-norm error and the jump error.
|
| template<typename MeshType, typename FeSpaceType, typename ExprType> |
| double | vulpes::assemble::dg::integrateFeExpression (const MeshType &mesh, assemble::CellManager< MeshType, FeSpaceType > &cell_manager, const ExprType &expression, std::optional< uint32_t > quad_degree=std::nullopt) |
| | Integrate a scalar finite element expression over the entire domain.
|
| template<typename MeshType, typename FeSpaceType, typename DofHandlerType, typename ExprType> |
| double | vulpes::assemble::dg::computeL2Error (const MeshType &mesh, assemble::CellManager< MeshType, FeSpaceType > &cell_manager, const DofHandlerType &dof_handler, const la::Vector &u_h, const ExprType &u_exact_expr, std::optional< uint32_t > quad_degree=std::nullopt) |
| | Compute the L2 error integral between a numerical solution and an exact expression.
|
| template<typename MeshType, typename FeSpaceType, typename DofHandlerType, typename ExprType> |
| double | vulpes::assemble::dg::computeH1SemiError (const MeshType &mesh, assemble::CellManager< MeshType, FeSpaceType > &cell_manager, const DofHandlerType &dof_handler, const la::Vector &u_h, const ExprType &grad_u_exact_expr, std::optional< uint32_t > quad_degree=std::nullopt) |
| | Compute the H1 semi-norm error integral between a numerical solution and an exact gradient.
|
| template<typename MeshType> |
| double | vulpes::assemble::dg::computeJumpError (const dofs::DofHandler< MeshType > &dof_handler, const la::Vector &u_h, const la::SparseMatrix &matrix) |
| | Compute the total Jump error that is: sqrt(u_h^T matrix u_h). This is used only when the provided problem has homogeneous Dirichlet boundary conditions.
|
| template<std::size_t Dim> |
| auto | vulpes::assemble::dg::createPenaltyExpression (std::size_t order, double gamma) |
| | Create a penalty expression for DG methods.
|
| template<std::size_t Dim, typename CellType> |
| double | vulpes::assemble::dg::faceMeasureForPenalty (const CellType &cell, std::size_t face_id) |
| | Measure |F| of a face of a cell, as used by the Kb penalties: the face diameter in 2D (equal to its length) and the face area in 3D.
|
| template<std::size_t Dim> |
| auto | vulpes::assemble::dg::createPenaltyExpressionKb (std::size_t order, double gamma) |
| | Create a penalty expression for DG methods using the face's Kb.
|
| template<std::size_t Dim> |
| auto | vulpes::assemble::dg::createPenaltyExpressionHarmonic (std::size_t order, double gamma) |
| | Create a penalty expression for DG methods using the harmonic mean between the two cells.
|
| template<std::size_t Dim, typename VelocityFunc> |
| auto | vulpes::assemble::dg::createUpwindFlux (VelocityFunc velocity_func) |
| | Create an upwind flux expression from a velocity callable.
|
| template<typename MeshType> |
| double | vulpes::assemble::dg::computeError (const dofs::DofHandler< MeshType > &dof_handler, const la::Vector &u_h, const la::Vector &u_exact, const la::SparseMatrix &matrix) |
| | Compute the error between a discrete solution and an exact one.
|
| double | vulpes::assemble::dg::computeAverage (const la::Vector &u, const la::Vector &rhs_const, double domain_measure) |
| | Compute the spatial average of a function in modal/DG space.
|
| template<typename MeshType> |
| la::Vector | vulpes::assemble::dg::projectConstantOntoModalSpace (const dofs::DofHandler< MeshType > &dof_handler, double constant_value, const la::SparseMatrix &mass_matrix, const la::Vector &rhs_const) |
| | Project a constant value onto modal DG space using L2 projection.
|
| template<typename MeshType> |
| double | vulpes::assemble::dg::forceEqualMean (const dofs::DofHandler< MeshType > &dof_handler, la::Vector &u, const la::Vector &u_reference, const la::SparseMatrix &mass_matrix, const la::Vector &rhs_const, double domain_measure) |
| | Adjust a solution to match the average of a reference solution.
|
| template<typename MeshType, typename CellManagerType, typename DofHandlerType, typename FeSpaceType, typename Expression> |
| la::Vector | vulpes::assemble::dg::l2ProjectExpressionScalar (const MeshType &mesh, CellManagerType &cell_manager, const DofHandlerType &dof_handler, const FeSpaceType &fe_space, const Expression &expr, const la::SparseMatrix &mass_scalar) |
| | L2-project a scalar expression using a precomputed scalar mass matrix.
|
| template<typename MeshType, typename CellManagerType, typename DofHandlerType, typename FeSpaceType, typename Expression> |
| la::Vector | vulpes::assemble::dg::l2ProjectExpressionScalar (const MeshType &mesh, CellManagerType &cell_manager, const DofHandlerType &dof_handler, const FeSpaceType &fe_space, const Expression &expr, const la::SparseMatrix &mass_blocked, std::size_t component) |
| | L2-project a scalar expression using one component extracted from a blocked mass matrix.
|
| template<std::size_t VecSize, std::size_t NFields, typename MeshType, typename CellManagerType, typename DofHandlerType, typename FeSpaceType, typename Expression> |
| la::Vector | vulpes::assemble::dg::l2ProjectExpressionBlockedSubset (const MeshType &mesh, CellManagerType &cell_manager, const DofHandlerType &dof_handler, const FeSpaceType &fe_space, const Expression &expr, std::size_t component_offset, const la::SparseMatrix &mass_blocked) |
| | L2-project a vector expression into a subset of components of a blocked vector.
|