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::FullGradientDiffusion Struct Reference

Assemble a diffusion problem. More...

#include <hho-fullgradientdiff.hpp>

Public Types

typedef Eigen::SparseMatrix< double > SystemMatrixType
 
typedef std::function< double(const VectorRd &)> ForcingTermType
 
typedef std::function< double(const VectorRd &)> SolutionType
 
typedef std::function< VectorRd(const VectorRd &)> SolutionGradientType
 
typedef IntegralWeight PermeabilityType
 

Public Member Functions

 FullGradientDiffusion (const HHOSpace &hho_space, const BoundaryConditions &BC, bool use_threads, std::ostream &output=std::cout)
 Constructor. More...
 
void assembleLinearSystem (const ForcingTermType &f, const PermeabilityType &kappa, const SolutionType &u, Eigen::VectorXd &UDir)
 Assemble the global system
More...
 
size_t numSCDOFs () const
 Returns the number of statically condensed DOFs (the cell DOFs) More...
 
size_t numDirDOFs () const
 Returns the number of Dirichlet DOFs. More...
 
size_t numSkeletalDOFs () const
 Returns the number of DOFs after SC but before eliminating Dirichlet DOFs. More...
 
size_t sizeSystem () const
 Returns the size of the final system, after application of SC and removal of Dirichlet BCs. More...
 
const HHOSpacehhospace () const
 Returns the HHO space. More...
 
const Meshmesh () const
 Returns the mesh. More...
 
const SystemMatrixTypesystemMatrix () const
 Returns the linear system matrix. More...
 
SystemMatrixTypesystemMatrix ()
 Returns the linear system matrix. More...
 
const Eigen::VectorXd & systemVector () const
 Returns the linear system right-hand side vector. More...
 
Eigen::VectorXd & systemVector ()
 Returns the linear system right-hand side vector. More...
 
const double & stabilizationParameter () const
 Returns the stabilization parameter (scaling) More...
 
double & stabilizationParameter ()
 Returns the stabilization parameter. More...
 
const SystemMatrixTypescMatrix () const
 Returns the static condensation recovery operator. More...
 
Eigen::VectorXd & scVector ()
 Returns the static condensation rhs. More...
 
std::vector< double > computeEnergyNorms (const std::vector< Eigen::VectorXd > &list_dofs) const
 Compute the discrete energy norm of a family of vectors representing the dofs. More...
 

Detailed Description

Assemble a diffusion problem.


The documentation for this struct was generated from the following files: