![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <tracer.h>
Public Member Functions | |
| Tracer (MultiphysicsInterface< dim > *multiphysics_interface, const SimulationParameters< dim > &p_simulation_parameters, const std::shared_ptr< parallel::DistributedTriangulationBase< dim > > &p_triangulation, std::shared_ptr< SimulationControl > p_simulation_control) | |
| virtual std::vector< OutputStruct< dim, GlobalVectorType > > | gather_output_hook () override |
| double | calculate_L2_error () |
| void | finish_simulation () override |
| void | percolate_time_vectors () override |
| void | postprocess (bool first_iteration) override |
| void | output_per_iteration_timer () override |
| void | pre_mesh_adaptation () override |
| void | post_mesh_adaptation () override |
| void | compute_error_estimate (const std::pair< const Variable, Parameters::MultipleAdaptationParameters > &ivar, dealii::Vector< float > &estimated_error_per_cell) override |
| void | compute_kelly (dealii::Vector< float > &estimated_error_per_cell, const ComponentMask &component_mask) |
| void | write_checkpoint () override |
| void | read_checkpoint () override |
| std::vector< OutputStructTableHandler > | gather_tables () override |
| const DoFHandler< dim > & | get_dof_handler () override |
| void | setup_dofs () override |
| void | define_zero_constraints () |
| void | define_non_zero_constraints () |
| void | set_initial_conditions () override |
| void | update_boundary_conditions () override |
| void | solve_linear_system () override |
| void | setup_ilu () |
| void | setup_amg () |
| GlobalVectorType & | get_evaluation_point () override |
| GlobalVectorType & | get_local_evaluation_point () override |
| GlobalVectorType & | get_newton_update () override |
| GlobalVectorType & | get_present_solution () override |
| GlobalVectorType & | get_system_rhs () override |
| AffineConstraints< double > & | get_nonzero_constraints () override |
| void | output_newton_update_norms () override |
| double | get_residual_rescale_metric () const override |
| Public Member Functions inherited from AuxiliaryPhysics< dim, GlobalVectorType > | |
| AuxiliaryPhysics (const Parameters::NonLinearSolver non_linear_solver_parameters) | |
| virtual | ~AuxiliaryPhysics ()=default |
| void | setup_preconditioner () override |
| virtual bool | should_solve_auxiliary_physics () |
| Public Member Functions inherited from PhysicsSolver< GlobalVectorType > | |
| 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 | verify_consistency_of_boundary_conditions () |
| void | assemble_system_matrix () override |
| void | assemble_system_matrix_cg () |
| void | assemble_system_matrix_dg () |
| void | assemble_system_rhs () override |
| void | assemble_system_rhs_cg () |
| void | assemble_system_rhs_dg () |
| virtual void | assemble_local_system_matrix (const typename DoFHandler< dim >::active_cell_iterator &cell, TracerScratchData< dim > &scratch_data, StabilizedMethodsCopyData ©_data) |
| virtual void | assemble_local_system_rhs (const typename DoFHandler< dim >::active_cell_iterator &cell, TracerScratchData< dim > &scratch_data, StabilizedMethodsCopyData ©_data) |
| virtual void | setup_assemblers () |
| virtual void | copy_local_matrix_to_global_matrix (const StabilizedMethodsCopyData ©_data) |
| virtual void | copy_local_rhs_to_global_rhs (const StabilizedMethodsCopyData ©_data) |
| void | calculate_tracer_statistics () |
| template<typename GlobalVectorType> | |
| std::map< types::boundary_id, double > | postprocess_tracer_flow_rate (const GlobalVectorType ¤t_solution_fd) |
| void | write_tracer_flow_rates (const std::map< types::boundary_id, double > &tracer_flow_rate_vector) |
| void | write_tracer_statistics () |
| virtual void | modify_solution () override |
| void | reinit_face_velocity_with_adequate_solution (const typename DoFHandler< dim >::active_cell_iterator &velocity_cell, const unsigned int &face_no, TracerScratchData< dim > &scratch_data) |
| std::shared_ptr< Mapping< dim > > | get_mapping () |
| void | reinit_mortar_operators () |
| void | rotate_rotor_mapping () |
| void | update_mortar_configuration () |
Private Attributes | |
| MultiphysicsInterface< dim > * | multiphysics |
| TimerOutput | computing_timer |
| const SimulationParameters< dim > & | simulation_parameters |
| std::shared_ptr< parallel::DistributedTriangulationBase< dim > > | triangulation |
| std::shared_ptr< SimulationControl > | simulation_control |
| std::shared_ptr< DoFHandler< dim > > | dof_handler |
| std::shared_ptr< FiniteElement< dim > > | fe |
| 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< ScalarCouplingEvaluationSIPG< dim, 1, double > > | mortar_coupling_evaluator |
| std::shared_ptr< MappingQCache< dim > > | mapping_cache |
| ConvergenceTable | error_table |
| IndexSet | locally_owned_dofs |
| IndexSet | locally_relevant_dofs |
| GlobalVectorType | evaluation_point |
| GlobalVectorType | local_evaluation_point |
| GlobalVectorType | newton_update |
| std::shared_ptr< GlobalVectorType > | present_solution |
| GlobalVectorType | system_rhs |
| AffineConstraints< double > | nonzero_constraints |
| AffineConstraints< double > | zero_constraints |
| TrilinosWrappers::SparseMatrix | system_matrix |
| std::shared_ptr< TrilinosWrappers::PreconditionILU > | ilu_preconditioner |
| std::shared_ptr< TrilinosWrappers::PreconditionAMG > | amg_preconditioner |
| std::shared_ptr< std::vector< GlobalVectorType > > | previous_solutions |
| std::shared_ptr< SolutionTransfer< dim, GlobalVectorType > > | solution_transfer |
| std::vector< SolutionTransfer< dim, GlobalVectorType > > | previous_solutions_transfer |
| std::vector< std::shared_ptr< TracerAssemblerBase< dim > > > | assemblers |
| std::shared_ptr< TracerAssemblerSIPG< dim > > | inner_face_assembler |
| std::shared_ptr< TracerAssemblerBoundaryNitsche< dim > > | boundary_face_assembler |
| TableHandler | statistics_table |
| TableHandler | tracer_flow_rate_table |
Additional Inherited Members | |
| Public Attributes inherited from PhysicsSolver< GlobalVectorType > | |
| ConditionalOStream | pcout |
| Parameters::SimulationControl::TimeSteppingMethod | time_stepping_method |
|
inline |
Definition at line 57 of file tracer.h.
References AuxiliaryPhysics< dim, GlobalVectorType >::AuxiliaryPhysics(), cell_quadrature, computing_timer, dof_handler, face_quadrature, fe, mapping, mapping_cache, maximum_number_of_previous_solutions(), multiphysics, PhysicsSolver< GlobalVectorType >::pcout, PhysicsSolver< GlobalVectorType >::physics_solving_strategy, present_solution, previous_solutions, previous_solutions_transfer, simulation_control, simulation_parameters, solution_transfer, tracer, and triangulation.
|
privatevirtual |
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 TracerScratchData for more information |
| copy_data | The copy data which is used to store the results of the assembly over a cell |
Definition at line 278 of file tracer.cc.
References assemblers, TracerScratchData< dim >::calculate_physical_properties(), StabilizedMethodsCopyData::cell_is_local, evaluation_point, fluid_dynamics, StabilizedMethodsCopyData::local_dof_indices, multiphysics, previous_solutions, TracerScratchData< dim >::reinit(), TracerScratchData< dim >::reinit_mortar(), TracerScratchData< dim >::reinit_signed_distance(), TracerScratchData< dim >::reinit_velocity(), StabilizedMethodsCopyData::reset(), simulation_control, simulation_parameters, and triangulation.
|
privatevirtual |
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 TracerScratchData for more information |
| copy_data | The copy data which is used to store the results of the assembly over a cell |
Definition at line 586 of file tracer.cc.
References assemblers, TracerScratchData< dim >::calculate_physical_properties(), StabilizedMethodsCopyData::cell_is_local, evaluation_point, fluid_dynamics, StabilizedMethodsCopyData::local_dof_indices, multiphysics, previous_solutions, TracerScratchData< dim >::reinit(), TracerScratchData< dim >::reinit_mortar(), TracerScratchData< dim >::reinit_signed_distance(), TracerScratchData< dim >::reinit_velocity(), StabilizedMethodsCopyData::reset(), simulation_control, simulation_parameters, and triangulation.
|
overrideprivatevirtual |
Assembles the matrix associated with the solver.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 85 of file tracer.cc.
References assemble_system_matrix_cg(), assemble_system_matrix_dg(), computing_timer, setup_assemblers(), simulation_control, simulation_parameters, and system_matrix.
|
private |
Assembles the matrix associated with the solver when CG elements are used. This uses the WorkStream paradigm.
Definition at line 104 of file tracer.cc.
References assemble_local_system_matrix(), computing_timer, copy_local_matrix_to_global_matrix(), dof_handler, fe, fluid_dynamics, mortar_coupling_operator, multiphysics, simulation_parameters, and system_matrix.
|
private |
Assembles the matrix associated with the solver when DG elements are used. This uses the MeshWorker paradigm instead of the WorkStream paradigm. This is because the DG system matrix is assembled in a different way and requires face and boundary integrals.
Definition at line 142 of file tracer.cc.
References assemble_local_system_matrix(), boundary_face_assembler, copy_local_matrix_to_global_matrix(), dof_handler, evaluation_point, StabilizedDGMethodsCopyData::face_data, fe, fluid_dynamics, inner_face_assembler, multiphysics, reinit_face_velocity_with_adequate_solution(), simulation_parameters, system_matrix, triangulation, and zero_constraints.
|
overrideprivatevirtual |
Assemble the rhs associated with the solver.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 390 of file tracer.cc.
References assemble_system_rhs_cg(), assemble_system_rhs_dg(), computing_timer, setup_assemblers(), simulation_control, simulation_parameters, and system_rhs.
|
private |
Assembles the matrix associated with the solver when CG elements are used. This uses the WorkStream paradigm.
Definition at line 413 of file tracer.cc.
References assemble_local_system_rhs(), computing_timer, copy_local_rhs_to_global_rhs(), dof_handler, evaluation_point, fe, fluid_dynamics, mortar_coupling_operator, multiphysics, simulation_parameters, and system_rhs.
|
private |
Assembles the rhs associated with the solver when DG elements are used. This uses the MeshWorker paradigm instead of the WorkStream paradigm This is because the DG system matrix is assembled in a different way and requires face and boundary integrals.
Definition at line 456 of file tracer.cc.
References assemble_local_system_rhs(), boundary_face_assembler, copy_local_rhs_to_global_rhs(), dof_handler, evaluation_point, StabilizedDGMethodsCopyData::face_data, fe, fluid_dynamics, inner_face_assembler, multiphysics, reinit_face_velocity_with_adequate_solution(), simulation_parameters, system_rhs, triangulation, and zero_constraints.
| double Tracer< dim >::calculate_L2_error | ( | ) |
Calculates the L2 error of the solution.
Definition at line 716 of file tracer.cc.
References cell_quadrature, dof_handler, fe, get_mapping(), present_solution, simulation_control, simulation_parameters, and triangulation.
|
private |
Calculate tracer statistics : Max, min, average and standard-deviation.
Definition at line 885 of file tracer.cc.
References cell_quadrature, dof_handler, fe, get_mapping(), PhysicsSolver< GlobalVectorType >::pcout, present_solution, simulation_control, simulation_parameters, statistics_table, triangulation, and Parameters::verbose.
|
overridevirtual |
Compute the error estimator for mesh refinement.
| [in] | ivar | The current element of the map simulation_parameters.mesh_adaptation.variables |
| [in,out] | estimated_error_per_cell | The deal.II vector of estimated_error_per_cell |
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1528 of file tracer.cc.
References compute_kelly(), fe, Parameters::MultipleAdaptationParameters::kelly, and tracer.
| void Tracer< dim >::compute_kelly | ( | dealii::Vector< float > & | estimated_error_per_cell, |
| const ComponentMask & | component_mask ) |
Compute the Kelly error estimator on the tracer variable for mesh refinement. See : https://www.dealii.org/current/doxygen/deal.II/classKellyErrorEstimator.html for more information on the Kelly error estimator.
| [in,out] | estimated_error_per_cell | The deal.II vector of estimated_error_per_cell |
| [in] | component_mask | The component mask corresponding to the tracer variable |
Definition at line 1551 of file tracer.cc.
References dof_handler, face_quadrature, get_mapping(), and present_solution.
|
privatevirtual |
Copy local cell information to global matrix.
Definition at line 376 of file tracer.cc.
References StabilizedMethodsCopyData::cell_is_local, StabilizedMethodsCopyData::local_dof_indices, StabilizedMethodsCopyData::local_matrix, system_matrix, and zero_constraints.
|
privatevirtual |
Copy local cell rhs information to global rhs.
Definition at line 684 of file tracer.cc.
References StabilizedMethodsCopyData::cell_is_local, StabilizedMethodsCopyData::local_dof_indices, StabilizedMethodsCopyData::local_rhs, system_rhs, and zero_constraints.
| void Tracer< dim >::define_non_zero_constraints | ( | ) |
Define the non-zero constraints used to solve the problem.
Definition at line 1474 of file tracer.cc.
References BoundaryConditions::dirichlet, dof_handler, locally_owned_dofs, locally_relevant_dofs, BoundaryConditions::none, nonzero_constraints, BoundaryConditions::periodic, and simulation_parameters.
| void Tracer< dim >::define_zero_constraints | ( | ) |
Define the zero constraints used to solve the problem.
Definition at line 1435 of file tracer.cc.
References BoundaryConditions::dirichlet, dof_handler, locally_owned_dofs, locally_relevant_dofs, BoundaryConditions::none, BoundaryConditions::periodic, simulation_parameters, and zero_constraints.
|
overridevirtual |
Carry out the operations required to finish a simulation correctly.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 761 of file tracer.cc.
References announce_string(), computing_timer, Parameters::Timer::end, error_table, PhysicsSolver< GlobalVectorType >::pcout, simulation_control, simulation_parameters, Parameters::SimulationControl::steady, triangulation, and Parameters::verbose.
|
overridevirtual |
Gather and return vector of output structs that are particular to some applications.
Reimplemented from AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 698 of file tracer.cc.
References dof_handler, and present_solution.
|
overridevirtual |
Returns a vector of references to TableHandler objects that needs to be serialized/deserialized for the Tracer solver.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1200 of file tracer.cc.
References error_table, simulation_parameters, statistics_table, and tracer_flow_rate_table.
|
inlineoverridevirtual |
Returns the dof_handler of the tracer physics.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 247 of file tracer.h.
References dof_handler.
|
inlineoverridevirtual |
Getter methods to get the private attributes for the physic currently solved NB : dof_handler and present_solution are passed to the multiphysics interface at the end of the setup_dofs method.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 309 of file tracer.h.
References evaluation_point.
|
inlineoverridevirtual |
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 314 of file tracer.h.
References local_evaluation_point.
|
inlineprivate |
Returns the mapping shared pointer. A MappingQCache is necessary for prescribed rotation in rotor-stator configurations.
Definition at line 643 of file tracer.h.
References mapping, mapping_cache, and simulation_parameters.
|
inlineoverridevirtual |
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 319 of file tracer.h.
References newton_update.
|
inlineoverridevirtual |
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 334 of file tracer.h.
References nonzero_constraints.
|
inlineoverridevirtual |
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 324 of file tracer.h.
References present_solution.
|
inlineoverridevirtual |
Return the metric for residual rescaling. By default, should return 1. If the rescale_residual_by_volume is set to true, the method returns the square root of the global volume of the triangulation.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 360 of file tracer.h.
References mapping, simulation_parameters, tracer, and triangulation.
|
inlineoverridevirtual |
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 329 of file tracer.h.
References system_rhs.
|
inlineoverrideprivatevirtual |
Modify the tracer solution by applying a limiter;.
Reimplemented from AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 537 of file tracer.h.
References dof_handler, evaluation_point, local_evaluation_point, Parameters::Stabilization::moe, moe_scalar_limiter(), present_solution, and simulation_parameters.
|
inlineoverridevirtual |
Output the L2 and Linfty norms of the correction vector.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 344 of file tracer.h.
References newton_update, and PhysicsSolver< GlobalVectorType >::pcout.
|
overridevirtual |
Output the per iteration wallclock times.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 874 of file tracer.cc.
References announce_string(), computing_timer, and PhysicsSolver< GlobalVectorType >::pcout.
|
overridevirtual |
Rearrange vector solution correctly for transient simulations.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 796 of file tracer.cc.
References present_solution, and previous_solutions.
|
overridevirtual |
post_mesh_adaption Interpolates the auxiliary physics variables to the new mesh
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1171 of file tracer.cc.
References locally_owned_dofs, nonzero_constraints, present_solution, previous_solutions, previous_solutions_transfer, solution_transfer, and triangulation.
|
overridevirtual |
Postprocess the auxiliary physics results. Post-processing this case implies the calculation of all derived quantities using the solution vector of the physics. It does not concern the output of the solution using the DataOutObject, which is accomplished through the attach_solution_to_output function.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 807 of file tracer.cc.
References announce_string(), calculate_L2_error(), calculate_tracer_statistics(), computing_timer, error_table, fluid_dynamics, multiphysics, PhysicsSolver< GlobalVectorType >::pcout, postprocess_tracer_flow_rate(), simulation_control, simulation_parameters, triangulation, Parameters::verbose, write_tracer_flow_rates(), and write_tracer_statistics().
|
private |
Post-processing. Calculate the tracer flow rate at every boundary.
| current_solution_fd | current solution for the fluid dynamics, parsed by postprocess |
| GlobalVectorType | The type of the global vector used for the tracer physic |
Definition at line 980 of file tracer.cc.
References dof_handler, face_quadrature, fluid_dynamics, get_mapping(), levelset, multiphysics, present_solution, set_field_vector(), simulation_parameters, and triangulation.
|
overridevirtual |
pre_mesh_adaption Prepares the auxiliary physics variables for a mesh refinement/coarsening
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1158 of file tracer.cc.
References present_solution, previous_solutions, previous_solutions_transfer, and solution_transfer.
|
overridevirtual |
Allows tracer physics to set up solution vector from checkpoint file;.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1257 of file tracer.cc.
References deserialize_tables_vector(), gather_tables(), locally_owned_dofs, PhysicsSolver< GlobalVectorType >::pcout, present_solution, previous_solutions, solution_transfer, and triangulation.
|
inlineprivate |
Helper function to reinit the face velocity with the adequate solution. This prevents code duplication throughout the tracer. The function looks at the multiphysics interface to decide if the velocity is a block velocity or a regular velocity. Furthermore, it also checks if a time-averaged solution is required. Otherwise the code here would be copied four times.
| [in] | velocity_cell | the iterator to the cell where the velocity is to be reinitialized. |
| [in] | face_no | the number of the face where the velocity is to be reinitialized. |
| [in,out] | scratch_data | the scratch data to be used for the reinitialization. |
Definition at line 571 of file tracer.h.
References fluid_dynamics, multiphysics, TracerScratchData< dim >::reinit_face_velocity(), simulation_control, and simulation_parameters.
|
private |
Initialize mortar coupling manager, operator, and evaluator.
Definition at line 1743 of file tracer.cc.
References cell_quadrature, Parameters::Mortar< dim >::circular, computing_timer, dof_handler, get_mapping(), Parameters::Mortar< dim >::linear, mortar_coupling_evaluator, mortar_coupling_operator, mortar_manager, simulation_parameters, and zero_constraints.
|
private |
Rotate rotor mapping in mortar method.
Definition at line 1788 of file tracer.cc.
References Parameters::Mortar< dim >::circular, computing_timer, dof_handler, Parameters::Mortar< dim >::linear, mapping, mapping_cache, LetheGridTools::rotate_mapping(), simulation_control, and simulation_parameters.
|
overridevirtual |
Sets-up the initial conditions associated with the physics. Generally, physics only support imposing nodal values, but some physics additionnaly support the use of L2 projection or steady-state solutions.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1515 of file tracer.cc.
References dof_handler, get_mapping(), newton_update, nonzero_constraints, percolate_time_vectors(), present_solution, and simulation_parameters.
| void Tracer< dim >::setup_amg | ( | ) |
Set up the AMG preconditioner stored in amg_preconditioner.
Definition at line 1586 of file tracer.cc.
References amg_preconditioner, computing_timer, dof_handler, fe, simulation_parameters, system_matrix, and tracer.
|
privatevirtual |
sets up the vector of assembler functions
Definition at line 36 of file tracer.cc.
References assemblers, boundary_face_assembler, inner_face_assembler, simulation_control, simulation_parameters, time_stepping_is_bdf(), and time_stepping_is_sdirk().
|
overridevirtual |
Sets-up the DofHandler and the degree of freedom associated with the physics.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1294 of file tracer.cc.
References define_non_zero_constraints(), define_zero_constraints(), dof_handler, fe, local_evaluation_point, locally_owned_dofs, locally_relevant_dofs, mapping, mortar_coupling_operator, multiphysics, newton_update, nonzero_constraints, PhysicsSolver< GlobalVectorType >::pcout, present_solution, previous_solutions, reinit_mortar_operators(), rotate_rotor_mapping(), simulation_parameters, system_matrix, system_rhs, tracer, triangulation, and verify_consistency_of_boundary_conditions().
| void Tracer< dim >::setup_ilu | ( | ) |
Set up the ILU preconditioner stored in ilu_preconditioner.
Definition at line 1566 of file tracer.cc.
References computing_timer, ilu_preconditioner, simulation_parameters, system_matrix, and tracer.
|
overridevirtual |
Call for the solution of the linear system of equation using a strategy appropriate to the auxiliary physics.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 1660 of file tracer.cc.
References Parameters::LinearSolver::amg, amg_preconditioner, computing_timer, get_residual_rescale_metric(), Parameters::LinearSolver::ilu, ilu_preconditioner, locally_owned_dofs, newton_update, PhysicsSolver< GlobalVectorType >::pcout, Parameters::quiet, setup_amg(), setup_ilu(), simulation_parameters, system_matrix, system_rhs, tracer, triangulation, and zero_constraints.
|
overridevirtual |
Update non zero constraints if the boundary is time-dependent.
Reimplemented from AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1383 of file tracer.cc.
References BoundaryConditions::dirichlet, dof_handler, local_evaluation_point, locally_owned_dofs, locally_relevant_dofs, BoundaryConditions::none, nonzero_constraints, BoundaryConditions::periodic, present_solution, simulation_control, simulation_parameters, and update_mortar_configuration().
|
private |
Update mortar configuration.
When the rotor domain is rotated, the mortar cells need to be reinitialized according to the new rotor-stator interface configuration.
Definition at line 1822 of file tracer.cc.
References computing_timer, define_non_zero_constraints(), define_zero_constraints(), dof_handler, locally_owned_dofs, locally_relevant_dofs, mortar_coupling_operator, Parameters::MeshAdaptation::none, nonzero_constraints, reinit_mortar_operators(), rotate_rotor_mapping(), simulation_control, simulation_parameters, system_matrix, and triangulation.
|
inlineprivate |
Verify consistency of the input parameters for boundary conditions to ensure that for every boundary condition within the triangulation, a boundary condition has been specified in the input file.
Definition at line 376 of file tracer.h.
References simulation_parameters, and triangulation.
|
overridevirtual |
Prepares Tracer physics to write checkpoint.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1233 of file tracer.cc.
References gather_tables(), present_solution, previous_solutions, serialize_tables_vector(), solution_transfer, and triangulation.
|
private |
Writes the tracer flow rates to an output file.
Definition at line 1098 of file tracer.cc.
References PhysicsSolver< GlobalVectorType >::pcout, simulation_control, simulation_parameters, tracer_flow_rate_table, triangulation, and Parameters::verbose.
|
private |
Writes the tracer statistics to an output file.
Definition at line 1140 of file tracer.cc.
References simulation_parameters, statistics_table, and triangulation.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |