![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <fluid_dynamics_matrix_free.h>
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 |
A geometric multigrid preconditioner implementation for incompressible flow.
Definition at line 336 of file fluid_dynamics_matrix_free.h.
| using MFNavierStokesPreconditionGMG< dim >::GCTransferType = MGTransferGlobalCoarsening<dim, MGVectorType> |
Definition at line 348 of file fluid_dynamics_matrix_free.h.
| using MFNavierStokesPreconditionGMG< dim >::MGNumber = typename MFNavierStokesPreconditionGMGBase<dim>::MGNumber |
Definition at line 344 of file fluid_dynamics_matrix_free.h.
| using MFNavierStokesPreconditionGMG< dim >::MGVectorType |
Definition at line 342 of file fluid_dynamics_matrix_free.h.
| using MFNavierStokesPreconditionGMG< dim >::VectorType |
Definition at line 340 of file fluid_dynamics_matrix_free.h.
| MFNavierStokesPreconditionGMG< dim >::MFNavierStokesPreconditionGMG | ( | const SimulationParameters< dim > & | simulation_parameters, |
| const DoFHandler< dim > & | dof_handler, | ||
| const DoFHandler< dim > & | dof_handler_fe_q_iso_q1 ) |
Constructor.
Definition at line 2620 of file fluid_dynamics_matrix_free.cc.
References MFNavierStokesPreconditionGMGBase< dim >::dof_handler, MFNavierStokesPreconditionGMGBase< dim >::dof_handler_fe_q_iso_q1, MFNavierStokesPreconditionGMGBase< dim >::MFNavierStokesPreconditionGMGBase(), and MFNavierStokesPreconditionGMGBase< dim >::simulation_parameters.
|
overridevirtual |
Creates the operator for a given level.
| [in] | level | Identifier 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.
| void MFNavierStokesPreconditionGMG< dim >::initialize | ( | const std::shared_ptr< SimulationControl > & | simulation_control, |
| FlowControl< dim > & | flow_control, | ||
| const VectorType & | present_solution, | ||
| const VectorType & | time_derivative_previous_solutions ) |
Definition at line 2631 of file fluid_dynamics_matrix_free.cc.
References MFNavierStokesPreconditionGMGBase< dim >::dof_handler, fluid_dynamics, Parameters::LinearSolver::gcmg, FlowControl< dim >::get_beta(), MFNavierStokesPreconditionGMGBase< dim >::initialize(), MFNavierStokesPreconditionGMGBase< dim >::ls_mg_operators, Parameters::LinearSolver::lsmg, MFNavierStokesPreconditionGMGBase< dim >::maxlevel, MFNavierStokesPreconditionGMGBase< dim >::mg_matrix, MFNavierStokesPreconditionGMGBase< dim >::mg_operators, MFNavierStokesPreconditionGMGBase< dim >::mg_setup_timer, MFNavierStokesPreconditionGMGBase< dim >::mg_transfer_gc, MFNavierStokesPreconditionGMGBase< dim >::mg_transfer_ls, MFNavierStokesPreconditionGMGBase< dim >::minlevel, MFNavierStokesPreconditionGMGBase< dim >::simulation_parameters, time_stepping_is_bdf(), and time_stepping_is_sdirk().
| 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.
| [in] | temperature_dof_handler | DoF Handler used for the heat transfer. |
| [in] | temperature_present_solution | Present 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.