HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
Public Types | Public Member Functions | List of all members
HArDCore2D::HHO_LocVarDiff Class Reference

The HHO_LocVarDiff class provides tools to implement the HHO method for the diffusion problem. More...

#include <HHO_LocVarDiff.hpp>

Public Types

using solution_function_type = std::function< double(double, double)>
 type for solution
 
using source_function_type = std::function< double(double, double, Cell *)>
 type for source
 
using grad_function_type = std::function< Eigen::Vector2d(double, double, Cell *)>
 type for gradient
 
using tensor_function_type = std::function< Eigen::Matrix2d(double, double, Cell *)>
 type for diffusion tensor
 

Public Member Functions

 HHO_LocVarDiff (tensor_function_type kappa, size_t deg_kappa, source_function_type source, size_t BC, solution_function_type exact_solution, grad_function_type grad_exact_solution, std::string solver_type)
 Constructor of the class. More...
 
Eigen::VectorXd solve (HybridCore &hho)
 Assemble and solve the scheme.
 
double EnergyNorm (HybridCore &hho, const Eigen::VectorXd Xh)
 Discrete H1 norm of an hybrid function.
 
Eigen::VectorXd VertexValues (HybridCore &hho, const Eigen::VectorXd Xh, const char from_dofs)
 From a hybrid function, computes a vector of values at the vertices of the mesh. More...
 
double get_assembly_time () const
 cpu time to assemble the scheme
 
double get_solving_time () const
 cpu time to solve the scheme
 
double get_solving_error () const
 residual after solving the scheme
 
double get_itime (size_t idx) const
 various intermediate assembly times
 

Detailed Description

The HHO_LocVarDiff class provides tools to implement the HHO method for the diffusion problem.


The documentation for this class was generated from the following file: