Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
MFNavierStokesPreconditionGMG< dim > Class Template Reference

#include <fluid_dynamics_matrix_free.h>

Inheritance diagram for MFNavierStokesPreconditionGMG< dim >:
[legend]

Public Types

using VectorType
using MGVectorType
using MGNumber = typename MFNavierStokesPreconditionGMGBase<dim>::MGNumber
using GCTransferType = MGTransferGlobalCoarsening<dim, MGVectorType>

Public Member Functions

 MFNavierStokesPreconditionGMG (const SimulationParameters< dim > &simulation_parameters, const DoFHandler< dim > &dof_handler, const DoFHandler< dim > &dof_handler_fe_q_iso_q1)
void create_level_operator (const unsigned int level) override
void initialize (const std::shared_ptr< SimulationControl > &simulation_control, FlowControl< dim > &flow_control, const VectorType &present_solution, const VectorType &time_derivative_previous_solutions)
void initialize_auxiliary_physics (const DoFHandler< dim > &temperature_dof_handler, const VectorType &temperature_present_solution)
Public Member Functions inherited from MFNavierStokesPreconditionGMGBase< dim >
 MFNavierStokesPreconditionGMGBase (const SimulationParameters< dim > &simulation_parameters, const DoFHandler< dim > &dof_handler, const DoFHandler< dim > &dof_handler_fe_q_iso_q1)
virtual ~MFNavierStokesPreconditionGMGBase ()=default
void reinit (const std::shared_ptr< Mapping< dim > > &mapping, const std::shared_ptr< Quadrature< dim > > &cell_quadrature, const std::shared_ptr< Function< dim > > &forcing_function, const std::shared_ptr< SimulationControl > &simulation_control, const std::shared_ptr< PhysicalPropertiesManager > &physical_properties_manager, const std::shared_ptr< FESystem< dim > > &fe)
void initialize ()
void vmult (VectorType &dst, const VectorType &src) const
void print_relevant_info () const
const MGLevelObject< std::shared_ptr< OperatorType > > & get_mg_operators () const
const MGLevelObject< std::shared_ptr< PreconditionBase< MGVectorType > > > & get_mg_smoother_preconditioners () const

Additional Inherited Members

Public Attributes inherited from MFNavierStokesPreconditionGMGBase< dim >
TimerOutput mg_setup_timer
TimerOutput mg_vmult_timer
Protected Types inherited from MFNavierStokesPreconditionGMGBase< dim >
using Number = double
using MGNumber = double
using VectorType = LinearAlgebra::distributed::Vector<Number>
using MGVectorType = LinearAlgebra::distributed::Vector<MGNumber>
using TrilinosVectorType = LinearAlgebra::distributed::Vector<double>
using LSTransferType = MGTransferMatrixFreeWrapper<dim, MGNumber>
using GCTransferType = MGTransferGlobalCoarsening<dim, MGVectorType>
using OperatorType = NavierStokesOperatorBase<dim, MGNumber>
using SmootherPreconditionerType = PreconditionBase<MGVectorType>
using SmootherType
using ChebyshevSmootherType
using PreconditionerTypeLS
using PreconditionerTypeGC
using CoarseGridSolverApply
Protected Member Functions inherited from MFNavierStokesPreconditionGMGBase< dim >
void setup_AMG ()
void setup_ILU ()
Protected Attributes inherited from MFNavierStokesPreconditionGMGBase< dim >
unsigned int minlevel
unsigned int maxlevel
unsigned int intlevel
std::vector< std::shared_ptr< const Triangulation< dim > > > coarse_grid_triangulations
MGLevelObject< DoFHandler< dim > > dof_handlers
MGLevelObject< std::shared_ptr< MappingQCache< dim > > > mappings
MGLevelObject< MGTwoLevelTransfer< dim, MGVectorType > > transfers
MGLevelObject< std::shared_ptr< OperatorType > > mg_operators
std::shared_ptr< mg::Matrix< MGVectorType > > mg_matrix
std::shared_ptr< mg::Matrix< MGVectorType > > mg_interface_matrix_in
MGLevelObject< MatrixFreeOperators::MGInterfaceOperator< OperatorType > > ls_mg_operators
MGLevelObject< MatrixFreeOperators::MGInterfaceOperator< OperatorType > > ls_mg_interface_in
MGLevelObject< std::shared_ptr< PreconditionBase< MGVectorType > > > mg_smoother_preconditioners
std::shared_ptr< MGSmootherBase< MGVectorType > > mg_smoother
MGLevelObject< MGConstrainedDoFs > mg_constrained_dofs
std::shared_ptr< LSTransferType > mg_transfer_ls
std::shared_ptr< GCTransferType > mg_transfer_gc
std::shared_ptr< PreconditionAdapter< MGVectorType, TrilinosVectorType > > coarse_grid_precondition
std::shared_ptr< SolverControl > coarse_grid_solver_control
std::shared_ptr< SolverControl > direct_solver_control
std::shared_ptr< SolverGMRES< TrilinosVectorType > > coarse_grid_solver
std::shared_ptr< MGCoarseGridBase< MGVectorType > > mg_coarse
std::shared_ptr< SolverControl > coarse_grid_solver_control_intermediate
std::shared_ptr< MGCoarseGridBase< MGVectorType > > mg_coarse_intermediate
std::shared_ptr< SolverGMRES< MGVectorType > > coarse_grid_solver_intermediate
std::shared_ptr< Multigrid< MGVectorType > > mg_intermediate
std::shared_ptr< PreconditionMG< dim, MGVectorType, GCTransferType > > gc_multigrid_preconditioner_intermediate
std::shared_ptr< PreconditionMG< dim, MGVectorType, LSTransferType > > ls_multigrid_preconditioner_intermediate
std::shared_ptr< Multigrid< MGVectorType > > mg
std::shared_ptr< PreconditionMG< dim, MGVectorType, LSTransferType > > ls_multigrid_preconditioner
std::shared_ptr< PreconditionMG< dim, MGVectorType, GCTransferType > > gc_multigrid_preconditioner
ConditionalOStream pcout
SimulationParameters< dim > simulation_parameters
const DoFHandler< dim > & dof_handler
DoFHandler< dim > dof_handler_fe_q_iso_q1
std::vector< unsigned int > coarse_grid_iterations
MGLevelObject< DoFHandler< dim > > temperature_dof_handlers
MGLevelObject< MGTwoLevelTransfer< dim, MGVectorType > > transfers_temperature
std::shared_ptr< GCTransferType > mg_transfer_gc_temperature
bool use_manifold_for_normal

Detailed Description

template<int dim>
class MFNavierStokesPreconditionGMG< dim >

A geometric multigrid preconditioner implementation for incompressible flow.

Definition at line 336 of file fluid_dynamics_matrix_free.h.

Member Typedef Documentation

◆ GCTransferType

template<int dim>
using MFNavierStokesPreconditionGMG< dim >::GCTransferType = MGTransferGlobalCoarsening<dim, MGVectorType>

Definition at line 348 of file fluid_dynamics_matrix_free.h.

◆ MGNumber

template<int dim>
using MFNavierStokesPreconditionGMG< dim >::MGNumber = typename MFNavierStokesPreconditionGMGBase<dim>::MGNumber

Definition at line 344 of file fluid_dynamics_matrix_free.h.

◆ MGVectorType

template<int dim>
using MFNavierStokesPreconditionGMG< dim >::MGVectorType
Initial value:

Definition at line 342 of file fluid_dynamics_matrix_free.h.

◆ VectorType

template<int dim>
using MFNavierStokesPreconditionGMG< dim >::VectorType
Initial value:

Definition at line 340 of file fluid_dynamics_matrix_free.h.

Constructor & Destructor Documentation

◆ MFNavierStokesPreconditionGMG()

template<int dim>
MFNavierStokesPreconditionGMG< dim >::MFNavierStokesPreconditionGMG ( const SimulationParameters< dim > & simulation_parameters,
const DoFHandler< dim > & dof_handler,
const DoFHandler< dim > & dof_handler_fe_q_iso_q1 )

Member Function Documentation

◆ create_level_operator()

template<int dim>
void MFNavierStokesPreconditionGMG< dim >::create_level_operator ( const unsigned int level)
overridevirtual

Creates the operator for a given level.

Parameters
[in]levelIdentifier of the level to be created

Implements MFNavierStokesPreconditionGMGBase< dim >.

Reimplemented in MFNavierStokesVANSPreconditionGMG< dim >.

Definition at line 2607 of file fluid_dynamics_matrix_free.cc.

References MFNavierStokesPreconditionGMGBase< dim >::mg_operators, and MFNavierStokesPreconditionGMGBase< dim >::simulation_parameters.

◆ initialize()

◆ initialize_auxiliary_physics()

template<int dim>
void MFNavierStokesPreconditionGMG< dim >::initialize_auxiliary_physics ( const DoFHandler< dim > & temperature_dof_handler,
const VectorType & temperature_present_solution )

Transfer the current temperature solution to the different multigrid levels and compute the thermal buoyancy term in each of the multigrid operators.

Parameters
[in]temperature_dof_handlerDoF Handler used for the heat transfer.
[in]temperature_present_solutionPresent solution of the temperature as given by the multiphysics interface.

Definition at line 2730 of file fluid_dynamics_matrix_free.cc.

References MFNavierStokesPreconditionGMGBase< dim >::dof_handlers, fluid_dynamics, Parameters::LinearSolver::gcmg, Parameters::LinearSolver::lsmg, MFNavierStokesPreconditionGMGBase< dim >::maxlevel, MFNavierStokesPreconditionGMGBase< dim >::mg_operators, MFNavierStokesPreconditionGMGBase< dim >::mg_transfer_gc_temperature, MFNavierStokesPreconditionGMGBase< dim >::minlevel, MFNavierStokesPreconditionGMGBase< dim >::simulation_parameters, MFNavierStokesPreconditionGMGBase< dim >::temperature_dof_handlers, and MFNavierStokesPreconditionGMGBase< dim >::transfers_temperature.


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