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

#include <tracer.h>

Inheritance diagram for Tracer< dim >:
[legend]

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 &copy_data)
virtual void assemble_local_system_rhs (const typename DoFHandler< dim >::active_cell_iterator &cell, TracerScratchData< dim > &scratch_data, StabilizedMethodsCopyData &copy_data)
virtual void setup_assemblers ()
virtual void copy_local_matrix_to_global_matrix (const StabilizedMethodsCopyData &copy_data)
virtual void copy_local_rhs_to_global_rhs (const StabilizedMethodsCopyData &copy_data)
void calculate_tracer_statistics ()
template<typename GlobalVectorType>
std::map< types::boundary_id, double > postprocess_tracer_flow_rate (const GlobalVectorType &current_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

Detailed Description

template<int dim>
class Tracer< dim >

Definition at line 54 of file tracer.h.

Constructor & Destructor Documentation

◆ Tracer()

template<int dim>
Tracer< dim >::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 )
inline

Member Function Documentation

◆ assemble_local_system_matrix()

template<int dim>
void Tracer< dim >::assemble_local_system_matrix ( const typename DoFHandler< dim >::active_cell_iterator & cell,
TracerScratchData< dim > & scratch_data,
StabilizedMethodsCopyData & copy_data )
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.

Parameters
cellThe cell for which the local matrix is assembled.
scratch_dataThe 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_dataThe 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.

◆ assemble_local_system_rhs()

template<int dim>
void Tracer< dim >::assemble_local_system_rhs ( const typename DoFHandler< dim >::active_cell_iterator & cell,
TracerScratchData< dim > & scratch_data,
StabilizedMethodsCopyData & copy_data )
privatevirtual

Assemble the local rhs for a given cell.

Parameters
cellThe cell for which the local matrix is assembled.
scratch_dataThe 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_dataThe 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.

◆ assemble_system_matrix()

template<int dim>
void Tracer< dim >::assemble_system_matrix ( )
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.

◆ assemble_system_matrix_cg()

template<int dim>
void Tracer< dim >::assemble_system_matrix_cg ( )
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.

◆ assemble_system_matrix_dg()

template<int dim>
void Tracer< dim >::assemble_system_matrix_dg ( )
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.

◆ assemble_system_rhs()

template<int dim>
void Tracer< dim >::assemble_system_rhs ( )
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.

◆ assemble_system_rhs_cg()

template<int dim>
void Tracer< dim >::assemble_system_rhs_cg ( )
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.

◆ assemble_system_rhs_dg()

template<int dim>
void Tracer< dim >::assemble_system_rhs_dg ( )
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.

◆ calculate_L2_error()

template<int dim>
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.

◆ calculate_tracer_statistics()

template<int dim>
void Tracer< dim >::calculate_tracer_statistics ( )
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.

◆ compute_error_estimate()

template<int dim>
void Tracer< dim >::compute_error_estimate ( const std::pair< const Variable, Parameters::MultipleAdaptationParameters > & ivar,
dealii::Vector< float > & estimated_error_per_cell )
overridevirtual

Compute the error estimator for mesh refinement.

Parameters
[in]ivarThe current element of the map simulation_parameters.mesh_adaptation.variables
[in,out]estimated_error_per_cellThe 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.

◆ compute_kelly()

template<int dim>
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.

Parameters
[in,out]estimated_error_per_cellThe deal.II vector of estimated_error_per_cell
[in]component_maskThe 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.

◆ copy_local_matrix_to_global_matrix()

template<int dim>
void Tracer< dim >::copy_local_matrix_to_global_matrix ( const StabilizedMethodsCopyData & copy_data)
privatevirtual

◆ copy_local_rhs_to_global_rhs()

template<int dim>
void Tracer< dim >::copy_local_rhs_to_global_rhs ( const StabilizedMethodsCopyData & copy_data)
privatevirtual

◆ define_non_zero_constraints()

template<int dim>
void Tracer< dim >::define_non_zero_constraints ( )

◆ define_zero_constraints()

template<int dim>
void Tracer< dim >::define_zero_constraints ( )

◆ finish_simulation()

template<int dim>
void Tracer< dim >::finish_simulation ( )
overridevirtual

◆ gather_output_hook()

template<int dim>
std::vector< OutputStruct< dim, GlobalVectorType > > Tracer< dim >::gather_output_hook ( )
overridevirtual

Gather and return vector of output structs that are particular to some applications.

Returns
Vector of OutputStructs that will be used to write the output results as VTU files.

Reimplemented from AuxiliaryPhysics< dim, GlobalVectorType >.

Definition at line 698 of file tracer.cc.

References dof_handler, and present_solution.

◆ gather_tables()

template<int dim>
std::vector< OutputStructTableHandler > Tracer< dim >::gather_tables ( )
overridevirtual

Returns a vector of references to TableHandler objects that needs to be serialized/deserialized for the Tracer solver.

Returns
Structure containing a vector of references to TableHandler objects that needs to be serialized/deserialized for the Tracer solver, and their corresponding file names.

Implements AuxiliaryPhysics< dim, GlobalVectorType >.

Definition at line 1200 of file tracer.cc.

References error_table, simulation_parameters, statistics_table, and tracer_flow_rate_table.

◆ get_dof_handler()

template<int dim>
const DoFHandler< dim > & Tracer< dim >::get_dof_handler ( )
inlineoverridevirtual

Returns the dof_handler of the tracer physics.

Implements AuxiliaryPhysics< dim, GlobalVectorType >.

Definition at line 247 of file tracer.h.

References dof_handler.

◆ get_evaluation_point()

template<int dim>
GlobalVectorType & Tracer< dim >::get_evaluation_point ( )
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.

◆ get_local_evaluation_point()

template<int dim>
GlobalVectorType & Tracer< dim >::get_local_evaluation_point ( )
inlineoverridevirtual

Implements PhysicsSolver< GlobalVectorType >.

Definition at line 314 of file tracer.h.

References local_evaluation_point.

◆ get_mapping()

template<int dim>
std::shared_ptr< Mapping< dim > > Tracer< dim >::get_mapping ( )
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.

◆ get_newton_update()

template<int dim>
GlobalVectorType & Tracer< dim >::get_newton_update ( )
inlineoverridevirtual

Implements PhysicsSolver< GlobalVectorType >.

Definition at line 319 of file tracer.h.

References newton_update.

◆ get_nonzero_constraints()

template<int dim>
AffineConstraints< double > & Tracer< dim >::get_nonzero_constraints ( )
inlineoverridevirtual

Implements PhysicsSolver< GlobalVectorType >.

Definition at line 334 of file tracer.h.

References nonzero_constraints.

◆ get_present_solution()

template<int dim>
GlobalVectorType & Tracer< dim >::get_present_solution ( )
inlineoverridevirtual

Implements PhysicsSolver< GlobalVectorType >.

Definition at line 324 of file tracer.h.

References present_solution.

◆ get_residual_rescale_metric()

template<int dim>
double Tracer< dim >::get_residual_rescale_metric ( ) const
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.

Returns
Rescale metric.

Implements PhysicsSolver< GlobalVectorType >.

Definition at line 360 of file tracer.h.

References mapping, simulation_parameters, tracer, and triangulation.

◆ get_system_rhs()

template<int dim>
GlobalVectorType & Tracer< dim >::get_system_rhs ( )
inlineoverridevirtual

Implements PhysicsSolver< GlobalVectorType >.

Definition at line 329 of file tracer.h.

References system_rhs.

◆ modify_solution()

template<int dim>
virtual void Tracer< dim >::modify_solution ( )
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.

◆ output_newton_update_norms()

template<int dim>
void Tracer< dim >::output_newton_update_norms ( )
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.

◆ output_per_iteration_timer()

template<int dim>
void Tracer< dim >::output_per_iteration_timer ( )
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.

◆ percolate_time_vectors()

template<int dim>
void Tracer< dim >::percolate_time_vectors ( )
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.

◆ post_mesh_adaptation()

template<int dim>
void Tracer< dim >::post_mesh_adaptation ( )
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.

◆ postprocess()

template<int dim>
void Tracer< dim >::postprocess ( bool first_iteration)
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().

◆ postprocess_tracer_flow_rate()

template<int dim>
template<typename VectorType>
std::map< types::boundary_id, double > Tracer< dim >::postprocess_tracer_flow_rate ( const GlobalVectorType & current_solution_fd)
private

Post-processing. Calculate the tracer flow rate at every boundary.

Parameters
current_solution_fdcurrent solution for the fluid dynamics, parsed by postprocess
Returns
values of the tracer flow rate at each boundary
Template Parameters
GlobalVectorTypeThe 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.

◆ pre_mesh_adaptation()

template<int dim>
void Tracer< dim >::pre_mesh_adaptation ( )
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.

◆ read_checkpoint()

template<int dim>
void Tracer< dim >::read_checkpoint ( )
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.

◆ reinit_face_velocity_with_adequate_solution()

template<int dim>
void Tracer< dim >::reinit_face_velocity_with_adequate_solution ( const typename DoFHandler< dim >::active_cell_iterator & velocity_cell,
const unsigned int & face_no,
TracerScratchData< dim > & scratch_data )
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.

Parameters
[in]velocity_cellthe iterator to the cell where the velocity is to be reinitialized.
[in]face_nothe number of the face where the velocity is to be reinitialized.
[in,out]scratch_datathe 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.

◆ reinit_mortar_operators()

template<int dim>
void Tracer< dim >::reinit_mortar_operators ( )
private

◆ rotate_rotor_mapping()

template<int dim>
void Tracer< dim >::rotate_rotor_mapping ( )
private

◆ set_initial_conditions()

template<int dim>
void Tracer< dim >::set_initial_conditions ( )
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.

◆ setup_amg()

template<int dim>
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.

◆ setup_assemblers()

template<int dim>
void Tracer< dim >::setup_assemblers ( )
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().

◆ setup_dofs()

◆ setup_ilu()

template<int dim>
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.

◆ solve_linear_system()

template<int dim>
void Tracer< dim >::solve_linear_system ( )
overridevirtual

◆ update_boundary_conditions()

template<int dim>
void Tracer< dim >::update_boundary_conditions ( )
overridevirtual

◆ update_mortar_configuration()

template<int dim>
void Tracer< dim >::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.

◆ verify_consistency_of_boundary_conditions()

template<int dim>
void Tracer< dim >::verify_consistency_of_boundary_conditions ( )
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.

◆ write_checkpoint()

template<int dim>
void Tracer< dim >::write_checkpoint ( )
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.

◆ write_tracer_flow_rates()

template<int dim>
void Tracer< dim >::write_tracer_flow_rates ( const std::map< types::boundary_id, double > & tracer_flow_rate_vector)
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.

◆ write_tracer_statistics()

template<int dim>
void Tracer< dim >::write_tracer_statistics ( )
private

Writes the tracer statistics to an output file.

Definition at line 1140 of file tracer.cc.

References simulation_parameters, statistics_table, and triangulation.

Member Data Documentation

◆ amg_preconditioner

template<int dim>
std::shared_ptr<TrilinosWrappers::PreconditionAMG> Tracer< dim >::amg_preconditioner
private

AMG preconditioner used by the iterative linear solver.

Definition at line 723 of file tracer.h.

◆ assemblers

template<int dim>
std::vector<std::shared_ptr<TracerAssemblerBase<dim> > > Tracer< dim >::assemblers
private

Definition at line 734 of file tracer.h.

◆ boundary_face_assembler

template<int dim>
std::shared_ptr<TracerAssemblerBoundaryNitsche<dim> > Tracer< dim >::boundary_face_assembler
private

Definition at line 737 of file tracer.h.

◆ cell_quadrature

template<int dim>
std::shared_ptr<Quadrature<dim> > Tracer< dim >::cell_quadrature
private

Definition at line 689 of file tracer.h.

◆ computing_timer

template<int dim>
TimerOutput Tracer< dim >::computing_timer
private

Definition at line 674 of file tracer.h.

◆ dof_handler

template<int dim>
std::shared_ptr<DoFHandler<dim> > Tracer< dim >::dof_handler
private

Definition at line 682 of file tracer.h.

◆ error_table

template<int dim>
ConvergenceTable Tracer< dim >::error_table
private

Definition at line 700 of file tracer.h.

◆ evaluation_point

template<int dim>
GlobalVectorType Tracer< dim >::evaluation_point
private

Definition at line 706 of file tracer.h.

◆ face_quadrature

template<int dim>
std::shared_ptr<Quadrature<dim - 1> > Tracer< dim >::face_quadrature
private

Definition at line 690 of file tracer.h.

◆ fe

template<int dim>
std::shared_ptr<FiniteElement<dim> > Tracer< dim >::fe
private

Definition at line 685 of file tracer.h.

◆ ilu_preconditioner

template<int dim>
std::shared_ptr<TrilinosWrappers::PreconditionILU> Tracer< dim >::ilu_preconditioner
private

ILU preconditioner used by the iterative linear solver.

Definition at line 718 of file tracer.h.

◆ inner_face_assembler

template<int dim>
std::shared_ptr<TracerAssemblerSIPG<dim> > Tracer< dim >::inner_face_assembler
private

Definition at line 736 of file tracer.h.

◆ local_evaluation_point

template<int dim>
GlobalVectorType Tracer< dim >::local_evaluation_point
private

Definition at line 707 of file tracer.h.

◆ locally_owned_dofs

template<int dim>
IndexSet Tracer< dim >::locally_owned_dofs
private

Definition at line 703 of file tracer.h.

◆ locally_relevant_dofs

template<int dim>
IndexSet Tracer< dim >::locally_relevant_dofs
private

Definition at line 704 of file tracer.h.

◆ mapping

template<int dim>
std::shared_ptr<Mapping<dim> > Tracer< dim >::mapping
private

Definition at line 688 of file tracer.h.

◆ mapping_cache

template<int dim>
std::shared_ptr<MappingQCache<dim> > Tracer< dim >::mapping_cache
private

Definition at line 698 of file tracer.h.

◆ mortar_coupling_evaluator

template<int dim>
std::shared_ptr<ScalarCouplingEvaluationSIPG<dim, 1, double> > Tracer< dim >::mortar_coupling_evaluator
private

Definition at line 696 of file tracer.h.

◆ mortar_coupling_operator

template<int dim>
std::shared_ptr<CouplingOperator<dim, double> > Tracer< dim >::mortar_coupling_operator
private

Definition at line 694 of file tracer.h.

◆ mortar_manager

template<int dim>
std::shared_ptr<MortarManagerBase<dim> > Tracer< dim >::mortar_manager
private

Definition at line 693 of file tracer.h.

◆ multiphysics

template<int dim>
MultiphysicsInterface<dim>* Tracer< dim >::multiphysics
private

Definition at line 672 of file tracer.h.

◆ newton_update

template<int dim>
GlobalVectorType Tracer< dim >::newton_update
private

Definition at line 708 of file tracer.h.

◆ nonzero_constraints

template<int dim>
AffineConstraints<double> Tracer< dim >::nonzero_constraints
private

Definition at line 711 of file tracer.h.

◆ present_solution

template<int dim>
std::shared_ptr<GlobalVectorType> Tracer< dim >::present_solution
private

Definition at line 709 of file tracer.h.

◆ previous_solutions

template<int dim>
std::shared_ptr<std::vector<GlobalVectorType> > Tracer< dim >::previous_solutions
private

Definition at line 726 of file tracer.h.

◆ previous_solutions_transfer

template<int dim>
std::vector<SolutionTransfer<dim, GlobalVectorType> > Tracer< dim >::previous_solutions_transfer
private

Definition at line 731 of file tracer.h.

◆ simulation_control

template<int dim>
std::shared_ptr<SimulationControl> Tracer< dim >::simulation_control
private

Definition at line 681 of file tracer.h.

◆ simulation_parameters

template<int dim>
const SimulationParameters<dim>& Tracer< dim >::simulation_parameters
private

Definition at line 676 of file tracer.h.

◆ solution_transfer

template<int dim>
std::shared_ptr<SolutionTransfer<dim, GlobalVectorType> > Tracer< dim >::solution_transfer
private

Definition at line 729 of file tracer.h.

◆ statistics_table

template<int dim>
TableHandler Tracer< dim >::statistics_table
private

Definition at line 740 of file tracer.h.

◆ system_matrix

template<int dim>
TrilinosWrappers::SparseMatrix Tracer< dim >::system_matrix
private

Definition at line 713 of file tracer.h.

◆ system_rhs

template<int dim>
GlobalVectorType Tracer< dim >::system_rhs
private

Definition at line 710 of file tracer.h.

◆ tracer_flow_rate_table

template<int dim>
TableHandler Tracer< dim >::tracer_flow_rate_table
private

Definition at line 741 of file tracer.h.

◆ triangulation

template<int dim>
std::shared_ptr<parallel::DistributedTriangulationBase<dim> > Tracer< dim >::triangulation
private

Definition at line 680 of file tracer.h.

◆ zero_constraints

template<int dim>
AffineConstraints<double> Tracer< dim >::zero_constraints
private

Definition at line 712 of file tracer.h.


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