HArD::Core2D
Hybrid Arbitrary Degree::Core 2D - Library to implement 2D schemes with edge and cell polynomials as unknowns
Loading...
Searching...
No Matches
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.
 
void assembleLinearSystem (const ForcingTermType &f, const PermeabilityType &kappa, const SolutionType &u, Eigen::VectorXd &UDir)
 Assemble the global system

 
size_t numSCDOFs () const
 Returns the number of statically condensed DOFs (the cell DOFs)
 
size_t numDirDOFs () const
 Returns the number of Dirichlet DOFs.
 
size_t numSkeletalDOFs () const
 Returns the number of DOFs after SC but before eliminating Dirichlet DOFs.
 
size_t sizeSystem () const
 Returns the size of the final system, after application of SC and removal of Dirichlet BCs.
 
const HHOSpace & hhospace () const
 Returns the HHO space.
 
const Mesh & mesh () const
 Returns the mesh.
 
const SystemMatrixType & systemMatrix () const
 Returns the linear system matrix.
 
SystemMatrixType & systemMatrix ()
 Returns the linear system matrix.
 
const Eigen::VectorXd & systemVector () const
 Returns the linear system right-hand side vector.
 
Eigen::VectorXd & systemVector ()
 Returns the linear system right-hand side vector.
 
const double & stabilizationParameter () const
 Returns the stabilization parameter (scaling)
 
double & stabilizationParameter ()
 Returns the stabilization parameter.
 
const SystemMatrixType & scMatrix () const
 Returns the static condensation recovery operator.
 
Eigen::VectorXd & scVector ()
 Returns the static condensation rhs.
 
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.
 

Detailed Description

Assemble a diffusion problem.


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