![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <fluid_dynamics_block.h>
Public Member Functions | |
| FluidDynamicsBlock (SimulationParameters< dim > &nsparam) | |
| ~FluidDynamicsBlock () | |
| void | solve () |
| Public Member Functions inherited from PhysicsSolver< GlobalBlockVectorType > | |
| PhysicsSolver (const Parameters::NonLinearSolver non_linear_solver_parameters) | |
| virtual | ~PhysicsSolver () |
| void | solve_governing_system () |
| virtual void | apply_constraints () |
| virtual double | get_current_residual () |
| virtual bool | allow_skip_linear_solve_when_residual_is_below_tolerance () const |
| unsigned int | get_current_newton_iteration () const |
Private Member Functions | |
| void | assemble_system_matrix () override |
| void | assemble_system_rhs () override |
| void | setup_preconditioner () override |
| virtual void | update_multiphysics_time_average_solution () override |
| void | assemble_local_system_matrix (const typename DoFHandler< dim >::active_cell_iterator &cell, NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > ©_data) |
| void | assemble_local_system_rhs (const typename DoFHandler< dim >::active_cell_iterator &cell, NavierStokesScratchData< dim > &scratch_data, StabilizedMethodsTensorCopyData< dim > ©_data) |
| void | setup_assemblers () |
| void | copy_local_matrix_to_global_matrix (const StabilizedMethodsTensorCopyData< dim > ©_data) |
| void | copy_local_rhs_to_global_rhs (const StabilizedMethodsTensorCopyData< dim > ©_data) |
| void | assemble_L2_projection () |
| virtual void | setup_dofs_fd () override |
| void | multi_stage_preresolution (unsigned int stage, Parameters::SimulationControl::TimeSteppingMethod method) override |
| virtual void | multi_stage_postresolution (unsigned int stage, Parameters::SimulationControl::TimeSteppingMethod method, double time_step) override |
| virtual void | update_multi_stage_solution (double time_step) override |
| virtual void | set_initial_condition_fd (Parameters::FluidDynamicsInitialConditionType initial_condition_type, bool restart=false) override |
| void | set_solution_vector (double value) |
| void | solve_L2_system (double relative_residual, double minimum_residual) |
| void | solve_linear_system () override |
| void | solve_system_GMRES (const double relative_residual, const double minimum_residual) |
| void | setup_AMG () |
| void | setup_ILU () |
Private Attributes | |
| TrilinosWrappers::BlockSparsityPattern | sparsity_pattern |
| TrilinosWrappers::BlockSparseMatrix | system_matrix |
| TrilinosWrappers::SparseMatrix | pressure_mass_matrix |
| std::vector< types::global_dof_index > | dofs_per_block |
| std::shared_ptr< TrilinosWrappers::PreconditionILU > | velocity_ilu_preconditioner |
| std::shared_ptr< TrilinosWrappers::PreconditionAMG > | velocity_amg_preconditioner |
| std::shared_ptr< TrilinosWrappers::PreconditionILU > | pressure_ilu_preconditioner |
| std::shared_ptr< TrilinosWrappers::PreconditionAMG > | pressure_amg_preconditioner |
| std::shared_ptr< BlockSchurPreconditioner< TrilinosWrappers::PreconditionILU > > | system_ilu_preconditioner |
| std::shared_ptr< BlockSchurPreconditioner< TrilinosWrappers::PreconditionAMG > > | system_amg_preconditioner |
| const double | gamma = 1 |
Additional Inherited Members | |
| Public Attributes inherited from PhysicsSolver< GlobalBlockVectorType > | |
| ConditionalOStream | pcout |
| Parameters::SimulationControl::TimeSteppingMethod | time_stepping_method |
| Protected Member Functions inherited from NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > > | |
| NavierStokesBase (SimulationParameters< dim > &nsparam, const FluidDynamicsFormulation fluid_dynamics_formulation=FluidDynamicsFormulation::standard) | |
| virtual | ~NavierStokesBase ()=default |
| virtual GlobalBlockVectorType & | get_evaluation_point () override |
| virtual GlobalBlockVectorType & | get_local_evaluation_point () override |
| virtual GlobalBlockVectorType & | get_newton_update () override |
| virtual GlobalBlockVectorType & | get_present_solution () override |
| virtual GlobalBlockVectorType & | get_system_rhs () override |
| virtual AffineConstraints< double > & | get_nonzero_constraints () override |
| virtual void | output_newton_update_norms () override |
| double | get_residual_rescale_metric () const override |
| void | finish_simulation () |
| virtual void | postprocess (bool first_iteration) |
| virtual void | setup_dofs () |
| virtual void | set_initial_condition (const Parameters::FluidDynamicsInitialConditionType initial_condition_type, const bool restart=false) |
| virtual void | finish_time_step () |
| virtual void | percolate_time_vectors_fd () |
| void | finish_simulation_fd () |
| virtual void | postprocess_fd (bool first_iteration) |
| virtual void | update_mortar_configuration () |
| virtual void | update_solutions_for_multiphysics () |
| virtual void | update_solutions_for_fluid_dynamics () |
| void | postprocessing_forces (const GlobalBlockVectorType &evaluation_point) |
| void | postprocessing_torques (const GlobalBlockVectorType &evaluation_point) |
| virtual void | dynamic_flow_control () |
| virtual void | set_specified_fluid_dynamics_solution () |
| virtual void | iterate () |
| virtual void | enable_dynamic_zero_constraints_fd () |
| void | box_refine_mesh (const bool restart) |
| virtual void | refine_mesh () |
| void | refine_mesh_adaptive () |
| void | refine_mesh_uniform () |
| void | transfer_solution (SolutionTransfer< dim, GlobalBlockVectorType > &solution_transfer, std::vector< SolutionTransfer< dim, GlobalBlockVectorType > > &previous_solutions_transfer) |
| virtual void | read_checkpoint () |
| bool | average_velocities_are_enabled () const |
| void | restore_average_velocities_after_checkpoint () |
| virtual void | set_solution_from_checkpoint (const std::string &checkpoint_file_prefix) |
| void | set_nodal_values () |
| void | define_non_zero_constraints () |
| void | define_zero_constraints () |
| void | reinit_mortar_operators () |
| std::shared_ptr< Mapping< dim > > | get_mapping () |
| void | rotate_rotor_mapping (const bool is_first) |
| void | connect_mortar_weight_signals () |
| void | update_boundary_conditions () |
| virtual void | update_forcing_and_boundary_conditions () |
| bool | check_existance_of_bc (BoundaryConditions::FluidDynamicsBoundaryType bc) |
| void | make_solid_domain (const DoFHandler< dim > &dof_handler, const bool non_zero_constraints, AffineConstraints< double > &constraints) |
| bool | cell_in_constraining_domain (const typename DoFHandler< dim >::active_cell_iterator &cell, const Point< dim > &plane_point, const Tensor< 1, dim > &plane_normal_vector) |
| void | get_cell_temperature_values (const typename DoFHandler< dim >::active_cell_iterator &cell, const DoFHandler< dim > *dof_handler_ht, const GlobalVectorType &temperature_solution, std::vector< double > &local_temperature_values) |
| void | get_cell_filtered_phase_indicator_values (const typename DoFHandler< dim >::active_cell_iterator &cell, const DoFHandler< dim > *dof_handler_cls, const GlobalVectorType &filtered_phase_indicator_solution, std::vector< double > &local_filtered_phase_indicator_values) |
| void | identify_cell_and_constrain_velocity (const std::vector< types::global_dof_index > &local_dof_indices, const std::vector< double > &local_temperature_values, StasisConstraintWithTemperature &stasis_constraint_struct) |
| void | constrain_stasis_with_temperature (const DoFHandler< dim > *dof_handler_ht) |
| void | constrain_stasis_with_temperature_cls (const DoFHandler< dim > *dof_handler_cls, const DoFHandler< dim > *dof_handler_ht) |
| virtual std::vector< OutputStructTableHandler > | gather_tables () |
| virtual void | write_checkpoint () |
| virtual std::vector< OutputStruct< dim, GlobalBlockVectorType > > | gather_output_hook () |
| void | gather_output_results (const GlobalBlockVectorType &solution, std::vector< OutputStruct< dim, GlobalBlockVectorType > > &solution_output_structs) |
| void | write_output_results (const GlobalBlockVectorType &solution) |
| void | write_output_forces () |
| void | write_output_torques () |
| void | rescale_pressure_dofs_in_newton_update () |
| GlobalBlockVectorType | init_temporary_vector () |
| void | verify_consistency_of_boundary_conditions () |
| Protected Attributes inherited from NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > > | |
| std::vector< IndexSet > | locally_owned_dofs |
| std::vector< IndexSet > | locally_relevant_dofs |
| MPI_Comm | mpi_communicator |
| const unsigned int | n_mpi_processes |
| const unsigned int | this_mpi_process |
| std::shared_ptr< parallel::DistributedTriangulationBase< dim > > | triangulation |
| std::shared_ptr< DoFHandler< dim > > | dof_handler |
| std::shared_ptr< FESystem< dim > > | fe |
| TimerOutput | computing_timer |
| SimulationParameters< dim > | simulation_parameters |
| PVDHandler | pvdhandler |
| PVDHandler | pvdhandler_boundary |
| Function< dim > * | exact_solution |
| std::shared_ptr< Function< dim > > | forcing_function |
| FlowControl< dim > | flow_control |
| AffineConstraints< double > | zero_constraints |
| AffineConstraints< double > | nonzero_constraints |
| bool | use_manifold_for_normal |
| GlobalBlockVectorType | evaluation_point |
| GlobalBlockVectorType | local_evaluation_point |
| GlobalBlockVectorType | newton_update |
| std::shared_ptr< GlobalBlockVectorType > | present_solution |
| GlobalBlockVectorType | system_rhs |
| std::shared_ptr< std::vector< GlobalBlockVectorType > > | previous_solutions |
| SDIRKVectors | sdirk_vectors |
| const unsigned int | velocity_fem_degree |
| const unsigned int | pressure_fem_degree |
| unsigned int | number_quadrature_points |
| std::shared_ptr< Mapping< dim > > | mapping |
| std::shared_ptr< Quadrature< dim > > | cell_quadrature |
| std::shared_ptr< Quadrature< dim - 1 > > | face_quadrature |
| std::shared_ptr< MortarManagerBase< dim > > | mortar_manager |
| std::shared_ptr< CouplingOperator< dim, double > > | mortar_coupling_operator |
| std::shared_ptr< NavierStokesCouplingEvaluationSIPG< dim, double > > | mortar_coupling_evaluator |
| std::shared_ptr< MappingQCache< dim > > | mapping_cache |
| std::vector< std::shared_ptr< NavierStokesAssemblerBase< dim > > > | assemblers |
| std::shared_ptr< MultiphysicsInterface< dim > > | multiphysics |
| std::shared_ptr< SimulationControl > | simulation_control |
| TableHandler | enstrophy_table |
| TableHandler | pressure_power_table |
| TableHandler | viscous_dissipation_table |
| TableHandler | kinetic_energy_table |
| TableHandler | apparent_viscosity_table |
| TableHandler | pressure_drop_table |
| TableHandler | flow_rate_table |
| std::shared_ptr< AverageVelocities< dim, GlobalBlockVectorType, std::vector< IndexSet > > > | average_velocities |
| GlobalBlockVectorType | average_solution |
| MeshController | mesh_controller |
| ConvergenceTable | error_table |
| std::vector< std::map< types::boundary_id, Tensor< 1, dim > > > | forces_on_boundaries |
| std::map< types::boundary_id, TableHandler > | forces_tables |
| std::map< types::boundary_id, TableHandler > | torques_tables |
| std::shared_ptr< FEValues< dim > > | fe_values_temperature |
| std::shared_ptr< FEValues< dim > > | fe_values_cls |
| std::vector< StasisConstraintWithTemperature > | stasis_constraint_structs |
| AffineConstraints< double > | dynamic_zero_constraints |
A solver class for the Navier-Stokes equation using Grad-Div stabilization
| dim | An integer that denotes the dimension of the space in which the flow is solved |
Definition at line 60 of file fluid_dynamics_block.h.
| FluidDynamicsBlock< dim >::FluidDynamicsBlock | ( | SimulationParameters< dim > & | nsparam | ) |
Definition at line 30 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::NavierStokesBase().
| FluidDynamicsBlock< dim >::~FluidDynamicsBlock | ( | ) |
Definition at line 37 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::dof_handler.
|
private |
Definition at line 537 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::cell_quadrature, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::dof_handler, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::fe, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::mapping, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::nonzero_constraints, pressure, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, system_matrix, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::system_rhs.
|
private |
Assemble the local matrix for a given cell.
This function is used by the WorkStream class to assemble the system matrix. It is a thread safe function.
| cell | The cell for which the local matrix is assembled. |
| scratch_data | The scratch data which is used to store the calculated finite element information at the gauss point. See the documentation for NavierStokesScratchData for more information |
| copy_data | The copy data which is used to store the results of the assembly over a cell |
Definition at line 303 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::assemblers, NavierStokesScratchData< dim >::calculate_physical_properties(), StabilizedMethodsTensorCopyData< dim >::cell_is_local, CLS, NavierStokesScratchData< dim >::enable_heat_transfer(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::evaluation_point, heat_transfer, StabilizedMethodsTensorCopyData< dim >::local_dof_indices, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::multiphysics, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::previous_solutions, NavierStokesScratchData< dim >::reinit(), NavierStokesScratchData< dim >::reinit_cls(), StabilizedMethodsTensorCopyData< dim >::reset(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::sdirk_vectors, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::triangulation.
|
private |
Assemble the local rhs for a given cell.
| cell | The cell for which the local matrix is assembled. |
| scratch_data | The scratch data which is used to store the calculated finite element information at the gauss point. See the documentation for NavierStokesScratchData for more information |
| copy_data | The copy data which is used to store the results of the assembly over a cell |
Definition at line 454 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::assemblers, NavierStokesScratchData< dim >::calculate_physical_properties(), StabilizedMethodsTensorCopyData< dim >::cell_is_local, CLS, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::evaluation_point, heat_transfer, StabilizedMethodsTensorCopyData< dim >::local_dof_indices, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::multiphysics, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::previous_solutions, NavierStokesScratchData< dim >::reinit(), NavierStokesScratchData< dim >::reinit_cls(), NavierStokesScratchData< dim >::reinit_heat_transfer(), StabilizedMethodsTensorCopyData< dim >::reset(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::sdirk_vectors, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::triangulation.
|
overrideprivatevirtual |
Assembles the matrix associated with the solver.
Implements PhysicsSolver< GlobalBlockVectorType >.
Definition at line 245 of file fluid_dynamics_block.cc.
References assemble_local_system_matrix(), CLS, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::computing_timer, copy_local_matrix_to_global_matrix(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::dof_handler, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::multiphysics, pressure_mass_matrix, setup_assemblers(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_control, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, sparsity_pattern, and system_matrix.
|
overrideprivatevirtual |
Assemble the rhs associated with the solver.
Implements PhysicsSolver< GlobalBlockVectorType >.
Definition at line 376 of file fluid_dynamics_block.cc.
References assemble_local_system_rhs(), CLS, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::computing_timer, copy_local_rhs_to_global_rhs(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::dof_handler, heat_transfer, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::multiphysics, setup_assemblers(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_control, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::system_rhs.
|
private |
Copy local cell information to global matrix.
Definition at line 361 of file fluid_dynamics_block.cc.
References StabilizedMethodsTensorCopyData< dim >::cell_is_local, StabilizedMethodsTensorCopyData< dim >::local_dof_indices, StabilizedMethodsTensorCopyData< dim >::local_matrix, system_matrix, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::zero_constraints.
|
private |
Copy local cell rhs information to global rhs.
Definition at line 521 of file fluid_dynamics_block.cc.
References StabilizedMethodsTensorCopyData< dim >::cell_is_local, StabilizedMethodsTensorCopyData< dim >::local_dof_indices, StabilizedMethodsTensorCopyData< dim >::local_rhs, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::zero_constraints.
|
overrideprivatevirtual |
Calculate \( k_i \) from \( u*_i : k_i = \frac{u*_i - u_n}{time_step*a_ii} - \sum{j=1}^{i-1} a_ij * k_j \) Update \( \sum_{i=1}^{N_{stages}} b_i * k_i \).
| stage | An unsigned integer which gives the index of the current stage |
| method | SDIRK methods for now (BDF methods are single stage) |
Reimplemented from NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >.
Definition at line 1253 of file fluid_dynamics_block.cc.
References SDIRKStageData::a_ij, SDIRKStageData::b_i, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::local_evaluation_point, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::present_solution, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::previous_solutions, sdirk_table(), and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::sdirk_vectors.
|
overrideprivatevirtual |
Update the sum_over_previous_stages variable to use it in the solver.
| stage | An unsigned integer which gives the index of the current stage |
| method | SDIRK method for now (BDF methods are single stage) |
Reimplemented from NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >.
Definition at line 1209 of file fluid_dynamics_block.cc.
References SDIRKStageData::a_ij, sdirk_table(), and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::sdirk_vectors.
|
overrideprivatevirtual |
Sets the initial condition for the solver.
If the simulation is restarted from a checkpoint, the initial solution setting is bypassed and the checkpoint is instead read.
| initial_condition_type | The type of initial condition to be set |
| restart | A boolean that indicates if the simulation is being restarted. if set to true, the initial conditions are never set, but are instead overridden by the read_checkpoint functionality. |
Set the initial condition using a L2 or a viscous solver
Implements NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >.
Definition at line 809 of file fluid_dynamics_block.cc.
References assemble_L2_projection(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::finish_time_step(), Parameters::L2projection, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::newton_update, Parameters::nodal, PhysicsSolver< GlobalBlockVectorType >::pcout, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::present_solution, read_checkpoint(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::set_nodal_values(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_control, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, PhysicsSolver< VectorType >::solve_governing_system(), solve_L2_system(), Parameters::SimulationControl::steady, and Parameters::viscous.
|
private |
Definition at line 798 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::present_solution.
|
private |
Set-up AMG preconditioner
Definition at line 941 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::computing_timer, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::dof_handler, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::fe, fluid_dynamics, gamma, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::locally_owned_dofs, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::mpi_communicator, pressure, pressure_amg_preconditioner, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::pressure_fem_degree, pressure_mass_matrix, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, system_amg_preconditioner, system_matrix, and velocity_amg_preconditioner.
|
private |
sets up the vector of assembler functions
Definition at line 44 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::assemblers, Parameters::VelocitySource::darcy_phase_change, gamma, Parameters::Stabilization::grad_div, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_control, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, Parameters::VelocitySource::srf, time_stepping_is_bdf(), and time_stepping_is_sdirk().
|
overrideprivatevirtual |
Initialize the dofs for fluid dynamics.
Implements NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >.
Definition at line 622 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::average_velocities, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::computing_timer, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::define_non_zero_constraints(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::define_zero_constraints(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::dof_handler, dofs_per_block, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::evaluation_point, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::fe, fluid_dynamics, BoundaryConditions::function_weak, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::local_evaluation_point, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::locally_owned_dofs, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::locally_relevant_dofs, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::mapping, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::mpi_communicator, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::multiphysics, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::newton_update, Parameters::MeshAdaptation::none, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::nonzero_constraints, BoundaryConditions::partial_slip, PhysicsSolver< GlobalBlockVectorType >::pcout, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::present_solution, BoundaryConditions::pressure, pressure_mass_matrix, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::previous_solutions, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::sdirk_vectors, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_control, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, sparsity_pattern, system_matrix, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::system_rhs, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::triangulation.
|
private |
Set-up ILU preconditioner
Definition at line 898 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::computing_timer, fluid_dynamics, gamma, pressure_ilu_preconditioner, pressure_mass_matrix, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, system_ilu_preconditioner, system_matrix, and velocity_ilu_preconditioner.
|
overrideprivatevirtual |
Set up preconditioner. Not used for this solver but needed for other physics solvers.
Implements PhysicsSolver< GlobalBlockVectorType >.
Definition at line 431 of file fluid_dynamics_block.cc.
References Parameters::LinearSolver::amg, fluid_dynamics, Parameters::LinearSolver::ilu, setup_AMG(), setup_ILU(), and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters.
| void FluidDynamicsBlock< dim >::solve | ( | ) |
Definition at line 1318 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::box_refine_mesh(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::dynamic_flow_control(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::finish_simulation(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::finish_time_step(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::forcing_function, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::iterate(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::NavierStokesBase(), PhysicsSolver< GlobalBlockVectorType >::pcout, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::postprocess(), read_mesh_and_manifolds(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::refine_mesh(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::set_initial_condition(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::setup_dofs(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_control, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::triangulation, and update_multiphysics_time_average_solution().
|
private |
Solver for the L2 Projection linear system
Definition at line 1139 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::computing_timer, fluid_dynamics, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::get_residual_rescale_metric(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::locally_owned_dofs, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::mpi_communicator, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::newton_update, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::nonzero_constraints, PhysicsSolver< GlobalBlockVectorType >::pcout, pressure_mass_matrix, Parameters::quiet, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, system_matrix, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::system_rhs.
|
overrideprivatevirtual |
Solver for the NS linear system of equations
Implements PhysicsSolver< GlobalBlockVectorType >.
Definition at line 875 of file fluid_dynamics_block.cc.
References fluid_dynamics, Parameters::LinearSolver::gmres, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::rescale_pressure_dofs_in_newton_update(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, and solve_system_GMRES().
|
private |
GMRES solver with ILU preconditioning or AMG preconditioning
Definition at line 1064 of file fluid_dynamics_block.cc.
References Parameters::LinearSolver::amg, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::computing_timer, fluid_dynamics, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::get_residual_rescale_metric(), Parameters::LinearSolver::ilu, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::locally_owned_dofs, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::mpi_communicator, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::newton_update, PhysicsSolver< GlobalBlockVectorType >::pcout, Parameters::quiet, setup_preconditioner(), NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters, system_amg_preconditioner, system_ilu_preconditioner, system_matrix, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::system_rhs, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::zero_constraints.
|
overrideprivatevirtual |
\( u_{n+1} = u_n + time_step * \sum_{i=1}^{N_{stages}} b_i * k_i \)
| time_step | The current time step to build the solution at the next time step |
Reimplemented from NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >.
Definition at line 1296 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::local_evaluation_point, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::present_solution, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::previous_solutions, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::sdirk_vectors.
|
overrideprivatevirtual |
Update the average velocity field solution in the multiphysics interface.
Implements NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >.
Definition at line 233 of file fluid_dynamics_block.cc.
References NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::average_velocities, fluid_dynamics, NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::multiphysics, and NavierStokesBase< dim, GlobalBlockVectorType, std::vector< IndexSet > >::simulation_parameters.
|
private |
Definition at line 262 of file fluid_dynamics_block.h.
|
private |
Definition at line 279 of file fluid_dynamics_block.h.
|
private |
Definition at line 271 of file fluid_dynamics_block.h.
|
private |
Definition at line 269 of file fluid_dynamics_block.h.
|
private |
Definition at line 260 of file fluid_dynamics_block.h.
|
private |
Members
Definition at line 258 of file fluid_dynamics_block.h.
|
private |
Definition at line 277 of file fluid_dynamics_block.h.
|
private |
Definition at line 274 of file fluid_dynamics_block.h.
|
private |
Definition at line 259 of file fluid_dynamics_block.h.
|
private |
Definition at line 267 of file fluid_dynamics_block.h.
|
private |
Definition at line 265 of file fluid_dynamics_block.h.