Matrix Free Solver 1.0.0
A matrix free solver for the Advection Diffusion Reaction problem implemented with deal.II
Loading...
Searching...
No Matches
DTR_mg::DTRProblem< dim > Class Template Reference

The main class of the program. More...

#include <DTR_mg.hpp>

Classes

class  DiffusionCoefficient
 
class  DirichletBC1
 
class  DirichletBC2
 
class  ExactSolution
 
class  ForcingTerm
 
class  NeumannBC1
 
class  NeumannBC2
 
class  ReactionCoefficient
 
class  TransportCoefficient
 

Public Member Functions

 DTRProblem (unsigned int degree)
 Constructor.
 
 DTRProblem (unsigned int degree, std::ofstream &dimension_time_file)
 Constructor with a file stream for timing information.
 
void run (unsigned int n_initial_refinements=3, unsigned int n_cycles=9)
 Run the problem.
 
 DTRProblem (unsigned int degree)
 
 DTRProblem (unsigned int degree, std::ofstream &dimension_time_file)
 
void run (unsigned int n_initial_refinements=3, unsigned int n_cycles=9)
 

Detailed Description

template<int dim>
class DTR_mg::DTRProblem< dim >

The main class of the program.

This class manages the setup, assembly, solution, and output for the multigrid solver applied to a differential problem using the deal.II library.

Template Parameters
dimThe spatial dimension of the problem.

Constructor & Destructor Documentation

◆ DTRProblem() [1/4]

template<int dim>
DTR_mg::DTRProblem< dim >::DTRProblem ( unsigned int degree)

Constructor.

Parameters
degreeThe polynomial degree of the finite element basis functions.

◆ DTRProblem() [2/4]

template<int dim>
DTR_mg::DTRProblem< dim >::DTRProblem ( unsigned int degree,
std::ofstream & dimension_time_file )

Constructor with a file stream for timing information.

Parameters
degreeThe polynomial degree of the finite element basis functions.
dimension_time_fileOutput file stream for logging timing information.

◆ DTRProblem() [3/4]

template<int dim>
DTR_mg::DTRProblem< dim >::DTRProblem ( unsigned int degree)

◆ DTRProblem() [4/4]

template<int dim>
DTR_mg::DTRProblem< dim >::DTRProblem ( unsigned int degree,
std::ofstream & dimension_time_file )

Member Function Documentation

◆ run() [1/2]

template<int dim>
void DTR_mg::DTRProblem< dim >::run ( unsigned int n_initial_refinements = 3,
unsigned int n_cycles = 9 )

Run the problem.

This function executes the entire process from setup to output.

Parameters
n_initial_refinementsNumber of initial mesh refinements.
n_cyclesNumber of cycles for the multigrid method.

◆ run() [2/2]

template<int dim>
void DTR_mg::DTRProblem< dim >::run ( unsigned int n_initial_refinements = 3,
unsigned int n_cycles = 9 )

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