DiFfRG
Loading...
Searching...
No Matches
DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ > Class Template Reference

Class to manage the system on which we solve, i.e. fe spaces, grids, etc. This class is a System for FV systems. More...

#include <discretization.hh>

Public Types

using Components = Components_
 
using NumberType = NumberType_
 
using VectorType = Vector<NumberType>
 
using SparseMatrixType = SparseMatrix<NumberType>
 
using Mesh = Mesh_
 

Public Member Functions

 Discretization (Mesh &mesh, const JSONValue &json)
 
const auto & get_constraints (const uint i=0) const
 
auto & get_constraints (const uint i=0)
 
const auto & get_dof_handler (const uint i=0) const
 
auto & get_dof_handler (const uint i=0)
 
const auto & get_fe (uint i=0) const
 
const auto & get_mapping () const
 
const auto & get_triangulation () const
 
auto & get_triangulation ()
 
const Point< dim > & get_support_point (const uint &dof) const
 
const auto & get_support_points () const
 
const auto & get_json () const
 
void reinit ()
 
uint get_closest_dof (const Point< dim > &p) const
 
std::vector< uintget_block_structure () const
 

Static Public Attributes

static constexpr uint dim = Mesh::dim
 

Protected Member Functions

void setup_dofs ()
 

Protected Attributes

Meshmesh
 
JSONValue json
 
std::shared_ptr< FESystem< dim > > fe
 
DoFHandler< dimdof_handler
 
AffineConstraints< NumberTypeconstraints
 
MappingQ1< dimmapping
 
std::vector< Point< dim > > support_points
 

Detailed Description

template<typename Components_, typename NumberType_, typename Mesh_>
class DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >

Class to manage the system on which we solve, i.e. fe spaces, grids, etc. This class is a System for FV systems.

Template Parameters
Model_The Model class used for the Simulation

Member Typedef Documentation

◆ Components

template<typename Components_ , typename NumberType_ , typename Mesh_ >
using DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::Components = Components_

◆ Mesh

template<typename Components_ , typename NumberType_ , typename Mesh_ >
using DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::Mesh = Mesh_

◆ NumberType

template<typename Components_ , typename NumberType_ , typename Mesh_ >
using DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::NumberType = NumberType_

◆ SparseMatrixType

template<typename Components_ , typename NumberType_ , typename Mesh_ >
using DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::SparseMatrixType = SparseMatrix<NumberType>

◆ VectorType

template<typename Components_ , typename NumberType_ , typename Mesh_ >
using DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::VectorType = Vector<NumberType>

Constructor & Destructor Documentation

◆ Discretization()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::Discretization ( Mesh & mesh,
const JSONValue & json )
inline

Member Function Documentation

◆ get_block_structure()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
std::vector< uint > DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_block_structure ( ) const
inline

◆ get_closest_dof()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
uint DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_closest_dof ( const Point< dim > & p) const
inline

◆ get_constraints() [1/2]

template<typename Components_ , typename NumberType_ , typename Mesh_ >
auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_constraints ( const uint i = 0)
inline

◆ get_constraints() [2/2]

template<typename Components_ , typename NumberType_ , typename Mesh_ >
const auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_constraints ( const uint i = 0) const
inline

◆ get_dof_handler() [1/2]

template<typename Components_ , typename NumberType_ , typename Mesh_ >
auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_dof_handler ( const uint i = 0)
inline

◆ get_dof_handler() [2/2]

template<typename Components_ , typename NumberType_ , typename Mesh_ >
const auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_dof_handler ( const uint i = 0) const
inline

◆ get_fe()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
const auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_fe ( uint i = 0) const
inline

◆ get_json()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
const auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_json ( ) const
inline

◆ get_mapping()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
const auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_mapping ( ) const
inline

◆ get_support_point()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
const Point< dim > & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_support_point ( const uint & dof) const
inline

◆ get_support_points()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
const auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_support_points ( ) const
inline

◆ get_triangulation() [1/2]

template<typename Components_ , typename NumberType_ , typename Mesh_ >
auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_triangulation ( )
inline

◆ get_triangulation() [2/2]

template<typename Components_ , typename NumberType_ , typename Mesh_ >
const auto & DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::get_triangulation ( ) const
inline

◆ reinit()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
void DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::reinit ( )
inline

◆ setup_dofs()

template<typename Components_ , typename NumberType_ , typename Mesh_ >
void DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::setup_dofs ( )
inlineprotected

Member Data Documentation

◆ constraints

template<typename Components_ , typename NumberType_ , typename Mesh_ >
AffineConstraints<NumberType> DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::constraints
protected

◆ dim

template<typename Components_ , typename NumberType_ , typename Mesh_ >
uint DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::dim = Mesh::dim
staticconstexpr

◆ dof_handler

template<typename Components_ , typename NumberType_ , typename Mesh_ >
DoFHandler<dim> DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::dof_handler
protected

◆ fe

template<typename Components_ , typename NumberType_ , typename Mesh_ >
std::shared_ptr<FESystem<dim> > DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::fe
protected

◆ json

template<typename Components_ , typename NumberType_ , typename Mesh_ >
JSONValue DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::json
protected

◆ mapping

template<typename Components_ , typename NumberType_ , typename Mesh_ >
MappingQ1<dim> DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::mapping
protected

◆ mesh

template<typename Components_ , typename NumberType_ , typename Mesh_ >
Mesh& DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::mesh
protected

◆ support_points

template<typename Components_ , typename NumberType_ , typename Mesh_ >
std::vector<Point<dim> > DiFfRG::FV::Discretization< Components_, NumberType_, Mesh_ >::support_points
protected

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