![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <heat_transfer.h>
Public Member Functions | |
| HeatTransfer (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) | |
| void | assemble_matrix_and_rhs () |
| void | assemble_rhs () |
| void | assemble_nitsche_heat_restriction (const bool assemble_matrix) |
| std::vector< OutputStruct< dim, GlobalVectorType > > | gather_output_hook () override |
| double | calculate_delta_T_ref (double minimum_delta_T_ref=1.) |
| 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 |
| void | setup_dofs () override |
| void | set_initial_conditions () override |
| void | update_boundary_conditions () override |
| void | solve_linear_system () override |
| void | setup_ilu () |
| void | setup_amg () |
| const DoFHandler< dim > & | get_dof_handler () override |
| 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 |
| virtual void | modify_solution () |
| 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_rhs () override |
| virtual void | assemble_local_system_matrix (const typename DoFHandler< dim >::active_cell_iterator &cell, HeatTransferScratchData< dim > &scratch_data, StabilizedMethodsCopyData ©_data) |
| virtual void | assemble_local_system_rhs (const typename DoFHandler< dim >::active_cell_iterator &cell, HeatTransferScratchData< 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 | postprocess_temperature_statistics (const bool gather_cls, const Parameters::FluidIndicator monitored_fluid, const std::string &domain_name, const bool time_average) |
| void | write_temperature_statistics (const std::string &domain_name) |
| void | postprocess_algebraic_melt_volume () |
| void | write_algebraic_melt_volume () |
| void | postprocess_geometric_melt_volume_and_surface () |
| void | write_geometric_melt_volume () |
| template<typename VectorType> | |
| void | postprocess_heat_flux_on_bc (const bool gather_cls, const VectorType ¤t_solution_fd) |
| void | postprocess_heat_flux_on_nitsche_ib () |
| template<typename VectorType> | |
| void | postprocess_thermal_energy_in_fluid (const bool gather_cls, const Parameters::FluidIndicator monitored_fluid, const std::string &domain_name, const VectorType ¤t_solution_fd) |
| void | write_heat_flux (const std::string &domain_name) |
| std::pair< double, bool > | set_phase_coefficient (const bool gather_cls, const Parameters::FluidIndicator monitored_fluid, const double phase_value_q) |
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 |
| ConvergenceTable | error_table |
| std::shared_ptr< Mapping< dim > > | temperature_mapping |
| std::shared_ptr< Quadrature< dim > > | cell_quadrature |
| std::shared_ptr< Quadrature< dim - 1 > > | face_quadrature |
| 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 |
| const bool | GGLS = true |
| std::vector< std::shared_ptr< HeatTransferAssemblerBase< dim > > > | assemblers |
| TableHandler | statistics_table |
| TableHandler | heat_flux_table |
| std::vector< std::shared_ptr< ThermalConductivityModel > > | thermal_conductivity_models |
| std::shared_ptr< AverageScalar< dim > > | average_temperature |
| GlobalVectorType | average_temperature_to_output |
| std::vector< HeatFluxPostprocessor< dim > > | heat_flux_postprocessors |
| std::vector< HeatFluxPostprocessor< dim > > | average_heat_flux_postprocessors |
| TableHandler | melt_volume_alge_table |
| TableHandler | melt_volume_geo_table |
| std::vector< TableHandler > | temperature_isocontour_bounding_values_tables |
Additional Inherited Members | |
| Public Attributes inherited from PhysicsSolver< GlobalVectorType > | |
| ConditionalOStream | pcout |
| Parameters::SimulationControl::TimeSteppingMethod | time_stepping_method |
Implementation of heat transfer as an auxiliary physics. The heat equation is weakly coupled to the velocity field. Equation solved: \( \rho C_p \cdot \left( \frac{dT}{dt} + u \cdot \nabla T \right) = k \cdot \nabla^2 T + \tau : \nabla u \).
Definition at line 58 of file heat_transfer.h.
|
inline |
Constructor of the HeatTransfer object.
| multiphysics_interface | Map of the auxiliary physics that will be solved on top of a computational fluid dynamic simulation. |
| p_simulation_parameters | Contain the simulation parameter file information. |
| p_triangulation | Contain the mesh information. In a parallel::DistributedTriangulationBase<dim> not every detail may be known on each processor. The mesh is distributed between the processors. |
| p_simulation_control | Object responsible for the control of steady-state and transient simulations. Contains all the information related to time stepping and the stopping criteria. |
Definition at line 79 of file heat_transfer.h.
References AuxiliaryPhysics< dim, GlobalVectorType >::AuxiliaryPhysics(), average_temperature, cell_quadrature, computing_timer, dof_handler, face_quadrature, fe, heat_transfer, 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, temperature_isocontour_bounding_values_tables, temperature_mapping, thermal_conductivity_models, and triangulation.
|
privatevirtual |
Assemble the local matrix for a given cell.
Use 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 HeatTransferScratchData for more information |
| copy_data | The copy data which is used to store the results of the assembly over a cell |
Definition at line 488 of file heat_transfer.cc.
References assemblers, HeatTransferScratchData< dim >::calculate_physical_properties(), StabilizedMethodsCopyData::cell_is_local, CLS, electromagnetics, evaluation_point, fluid_dynamics, StabilizedMethodsCopyData::local_dof_indices, multiphysics, previous_solutions, HeatTransferScratchData< dim >::reinit(), HeatTransferScratchData< dim >::reinit_cls(), HeatTransferScratchData< dim >::reinit_fluid_dynamics(), HeatTransferScratchData< dim >::reinit_time_harmonic_maxwell(), 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 HeatTransferScratchData for more information |
| copy_data | The copy data which is used to store the results of the assembly over a cell |
Definition at line 685 of file heat_transfer.cc.
References assemblers, HeatTransferScratchData< dim >::calculate_physical_properties(), StabilizedMethodsCopyData::cell_is_local, CLS, electromagnetics, evaluation_point, fluid_dynamics, StabilizedMethodsCopyData::local_dof_indices, multiphysics, previous_solutions, HeatTransferScratchData< dim >::reinit(), HeatTransferScratchData< dim >::reinit_cls(), HeatTransferScratchData< dim >::reinit_fluid_dynamics(), HeatTransferScratchData< dim >::reinit_time_harmonic_maxwell(), HeatTransferScratchData< dim >::reinit_velocity_gradient(), StabilizedMethodsCopyData::reset(), simulation_control, simulation_parameters, and triangulation.
| void HeatTransfer< dim >::assemble_matrix_and_rhs | ( | ) |
Call for the assembly of the matrix and the right-hand side.
Definition at line 32 of file heat_transfer.cc.
References assemble_nitsche_heat_restriction(), assemble_system_matrix(), assemble_system_rhs(), and simulation_parameters.
| void HeatTransfer< dim >::assemble_nitsche_heat_restriction | ( | const bool | assemble_matrix | ) |
Call for the assembly of the matrix and the right-hand side of the Nitsche restriction for the heat transfer equation.
| assemble_matrix | Boolean that is true for matrix assembly, and false for rhs assembly. |
std::pow(h_cell * h_cell, double(dim) / double(dim));
Definition at line 53 of file heat_transfer.cc.
References dof_handler, evaluation_point, fe, multiphysics, simulation_parameters, system_matrix, system_rhs, and zero_constraints.
| void HeatTransfer< dim >::assemble_rhs | ( | ) |
Call for the assembly of the right-hand side.
Definition at line 44 of file heat_transfer.cc.
References assemble_nitsche_heat_restriction(), assemble_system_rhs(), and simulation_parameters.
|
overrideprivatevirtual |
Assemble the matrix associated with the solver.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 430 of file heat_transfer.cc.
References assemble_local_system_matrix(), assemble_nitsche_heat_restriction(), calculate_delta_T_ref(), CLS, computing_timer, copy_local_matrix_to_global_matrix(), dof_handler, electromagnetics, fe, fluid_dynamics, multiphysics, setup_assemblers(), simulation_parameters, and system_matrix.
|
overrideprivatevirtual |
Assemble the rhs associated with the solver.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 627 of file heat_transfer.cc.
References assemble_local_system_rhs(), assemble_nitsche_heat_restriction(), calculate_delta_T_ref(), CLS, computing_timer, copy_local_rhs_to_global_rhs(), dof_handler, electromagnetics, fe, fluid_dynamics, multiphysics, setup_assemblers(), simulation_parameters, and system_rhs.
| double HeatTransfer< dim >::calculate_delta_T_ref | ( | double | minimum_delta_T_ref = 1. | ) |
Calculate delta_T_ref for the DCDD shock capture mechanism. delta_T_ref = T_max - T_min.
| minimum_delta_T_ref | Minimum temperature value acceptable as reference to calculate the DCDD shock capture stabilization term. DCDD shock capture elements are divided by delta_T_ref. Limiting delta_T_ref prevents overestimation of the virtual diffusivity at simulations with low differences between minimum and maximum temperatures. |
Definition at line 945 of file heat_transfer.cc.
References is_steady(), present_solution, previous_solutions, and simulation_parameters.
| double HeatTransfer< dim >::calculate_L2_error | ( | ) |
Calculate the L2 error of the solution.
Definition at line 971 of file heat_transfer.cc.
References cell_quadrature, dof_handler, fe, present_solution, simulation_control, simulation_parameters, temperature_mapping, and triangulation.
|
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 1326 of file heat_transfer.cc.
References compute_kelly(), fe, Parameters::MultipleAdaptationParameters::kelly, and temperature.
| void HeatTransfer< dim >::compute_kelly | ( | dealii::Vector< float > & | estimated_error_per_cell, |
| const ComponentMask & | component_mask ) |
Compute the Kelly error estimator on the temperature 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 temperature variable |
Definition at line 1350 of file heat_transfer.cc.
References dof_handler, face_quadrature, present_solution, and temperature_mapping.
|
privatevirtual |
Copy local cell information to global matrix.
Definition at line 612 of file heat_transfer.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 812 of file heat_transfer.cc.
References StabilizedMethodsCopyData::cell_is_local, StabilizedMethodsCopyData::local_dof_indices, StabilizedMethodsCopyData::local_rhs, system_rhs, and zero_constraints.
|
overridevirtual |
Carry out the operations required to finish a simulation correctly.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1016 of file heat_transfer.cc.
References announce_string(), computing_timer, Parameters::Timer::end, error_table, PhysicsSolver< GlobalVectorType >::pcout, Parameters::quiet, simulation_control, simulation_parameters, Parameters::SimulationControl::steady, and triangulation.
|
overridevirtual |
Gather and return vector of output structs that are particular to some applications.
Reimplemented from AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 826 of file heat_transfer.cc.
References average_heat_flux_postprocessors, average_temperature, average_temperature_to_output, dof_handler, heat_flux_postprocessors, present_solution, simulation_parameters, and thermal_conductivity_models.
|
overridevirtual |
Returns a vector of references to TableHandler objects that needs to be serialized/deserialized for the Heat Transfer solver.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1366 of file heat_transfer.cc.
References error_table, heat_flux_table, melt_volume_alge_table, melt_volume_geo_table, simulation_parameters, statistics_table, temperature, and temperature_isocontour_bounding_values_tables.
|
inlineoverridevirtual |
Getter method to access the private attribute dof_handler for the physic currently solved. NB : dof_handler is now passed to the multiphysics interface at the end of the setup_dofs method.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 349 of file heat_transfer.h.
References dof_handler.
|
inlineoverridevirtual |
Getter method to access the private attribute evaluation_point for the physic currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 361 of file heat_transfer.h.
References evaluation_point.
|
inlineoverridevirtual |
Getter method to access the private attribute local_evaluation_point for the physic currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 374 of file heat_transfer.h.
References local_evaluation_point.
|
inlineoverridevirtual |
Getter method to access the private attribute newton_update for the physic currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 386 of file heat_transfer.h.
References newton_update.
|
inlineoverridevirtual |
Getter method to access the private attribute nonzero_constraints for the physic currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 426 of file heat_transfer.h.
References nonzero_constraints.
|
inlineoverridevirtual |
Getter method to access the private attribute present_solution for the physic currently solved. NB : present_solution is now passed to the multiphysics interface at the end of the setup_dofs method.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 400 of file heat_transfer.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 global volume of the triangulation.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 451 of file heat_transfer.h.
References heat_transfer, simulation_parameters, temperature_mapping, and triangulation.
|
inlineoverridevirtual |
Getter method to access the private attribute system_rhs for the physic currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 412 of file heat_transfer.h.
References system_rhs.
|
inlineoverridevirtual |
Output the L2 and Linfty norms of the correction vector.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 435 of file heat_transfer.h.
References newton_update, and PhysicsSolver< GlobalVectorType >::pcout.
|
overridevirtual |
Output the per iteration wallclock times.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1266 of file heat_transfer.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 1052 of file heat_transfer.cc.
References present_solution, and previous_solutions.
|
overridevirtual |
Interpolate the auxiliary physics variables to the new mesh.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1293 of file heat_transfer.cc.
References average_temperature, locally_owned_dofs, nonzero_constraints, present_solution, previous_solutions, previous_solutions_transfer, simulation_parameters, 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 1063 of file heat_transfer.cc.
References average_temperature, calculate_L2_error(), computing_timer, dof_handler, error_table, Parameters::fluid_0, Parameters::fluid_1, fluid_dynamics, multiphysics, PhysicsSolver< GlobalVectorType >::pcout, postprocess_algebraic_melt_volume(), postprocess_geometric_melt_volume_and_surface(), postprocess_heat_flux_on_bc(), postprocess_heat_flux_on_nitsche_ib(), InterfaceTools::postprocess_isocontour_bounding_values(), postprocess_temperature_statistics(), postprocess_thermal_energy_in_fluid(), present_solution, simulation_control, simulation_parameters, temperature, temperature_mapping, triangulation, Parameters::verbose, write_algebraic_melt_volume(), write_geometric_melt_volume(), write_heat_flux(), InterfaceTools::write_isocontour_bounding_values_tables(), and write_temperature_statistics().
|
private |
Compute the algebraic (phase indicator and liquid fraction weighted) melt volume (3D) or surface (2D) in a domain. The monitored fluid must be selected with Parameters::PostProcessing::monitored_fluid_with_phase_change.
Definition at line 2181 of file heat_transfer.cc.
References calculate_liquid_fraction(), cell_quadrature, CLS, dof_handler, fe, Parameters::fluid_0, Parameters::fluid_1, melt_volume_alge_table, multiphysics, PhysicsSolver< GlobalVectorType >::pcout, present_solution, simulation_control, simulation_parameters, temperature_mapping, triangulation, and Parameters::verbose.
|
private |
Compute the geometric melt volume (3D) or surface (2D) and the contour surface area (3D) or length (2D) in a domain. The melt region is delimited by the Parameters::PostProcessing::melting_temperature isosurface (3D) or isocurve (2D) within the subdomain occupied by the fluid selected with Parameters::PostProcessing::monitored_fluid_with_phase_change.
Definition at line 2356 of file heat_transfer.cc.
References CLS, dof_handler, fe, Parameters::fluid_1, InterfaceTools::integrate_volume_and_surface(), melt_volume_geo_table, multiphysics, PhysicsSolver< GlobalVectorType >::pcout, present_solution, simulation_control, simulation_parameters, and Parameters::verbose.
|
private |
Post-processing. Calculate the heat flux at heat transfer boundary conditions.
| gather_cls | boolean true when CLS=true (multiphase flow), used to gather CLS information |
| current_solution_fd | current solution for the fluid dynamics, parsed by postprocess |
Definition at line 2506 of file heat_transfer.cc.
References calculate_point_property(), CLS, dof_handler, face_quadrature, fluid_dynamics, heat_flux_table, multiphysics, PhysicsSolver< GlobalVectorType >::pcout, present_solution, simulation_control, simulation_parameters, temperature_mapping, thermal_conductivity_models, triangulation, and Parameters::verbose.
|
private |
Post-processing. Calculate the heat flux in the Nitsche immersed boundary.
Definition at line 174 of file heat_transfer.cc.
References dof_handler, fe, heat_flux_table, multiphysics, PhysicsSolver< GlobalVectorType >::pcout, present_solution, simulation_parameters, triangulation, and Parameters::verbose.
|
private |
Post-processing. Calculate temperature statistics on the domain : Max, min, average and standard-deviation.
| gather_cls | Boolean true when CLS=true (multiphase flow), used to gather CLS information. |
| monitored_fluid | Fluid indicator (fluid_0 or fluid_1 or both) corresponding to the phase of interest. |
| domain_name | String indicating the monitored_fluid in the output filename. |
| time_average | Boolean true when calculating the spacial average of the time-averaged temperature solution. |
Definition at line 1954 of file heat_transfer.cc.
References average_temperature, cell_quadrature, CLS, dof_handler, fe, multiphysics, PhysicsSolver< GlobalVectorType >::pcout, present_solution, set_phase_coefficient(), simulation_control, simulation_parameters, statistics_table, temperature_mapping, triangulation, and Parameters::verbose.
|
private |
Post-processing. Calculate the thermal energy \( (\rho \cdot C_p \cdot T) \) in a fluid domain.
| gather_cls | Boolean true when CLS=true (multiphase flow), used to gather CLS information. |
| monitored_fluid | Fluid indicator (fluid_0 or fluid_1 or both) corresponding to the phase of interest. |
| domain_name | String indicating the monitored_fluid in the console output, table and filename. |
| current_solution_fd | Current solution for the fluid dynamics, parsed by postprocess. |
Definition at line 2786 of file heat_transfer.cc.
References calculate_point_property(), cell_quadrature, CLS, dof_handler, fluid_dynamics, heat_flux_table, multiphysics, PhysicsSolver< GlobalVectorType >::pcout, present_solution, set_phase_coefficient(), simulation_parameters, temperature_mapping, triangulation, and Parameters::verbose.
|
overridevirtual |
Prepare the auxiliary physics variables for a mesh refinement/coarsening.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1277 of file heat_transfer.cc.
References average_temperature, present_solution, previous_solutions, previous_solutions_transfer, simulation_parameters, and solution_transfer.
|
overridevirtual |
Allow Heat Transfer to set up solution vector from checkpoint file.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1480 of file heat_transfer.cc.
References average_temperature, deserialize_tables_vector(), dof_handler, gather_tables(), locally_owned_dofs, PhysicsSolver< GlobalVectorType >::pcout, present_solution, previous_solutions, simulation_control, simulation_parameters, solution_transfer, and triangulation.
|
overridevirtual |
Set up the initial conditions associated with the physics. heat_transfer allows a temperature function initial condition over the the domain.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1755 of file heat_transfer.cc.
References dof_handler, newton_update, nonzero_constraints, percolate_time_vectors(), present_solution, simulation_parameters, and temperature_mapping.
|
private |
Set a phase_coefficient that is used in the postprocessing, to account for multiphase flow.
Returns
| gather_cls | boolean true when CLS=true (multiphase flow), used to gather CLS information |
| monitored_fluid | Fluid indicator (fluid_0 or fluid_1 or both) corresponding to the phase of interest. |
| phase_value_q | double corresponding to the phase value at this quadrature point |
Definition at line 3014 of file heat_transfer.cc.
References Parameters::fluid_0, and Parameters::fluid_1.
| void HeatTransfer< dim >::setup_amg | ( | ) |
Set up the AMG preconditioner stored in amg_preconditioner.
Definition at line 1791 of file heat_transfer.cc.
References amg_preconditioner, computing_timer, dof_handler, fe, heat_transfer, simulation_parameters, and system_matrix.
|
privatevirtual |
Set up the vector of assembler functions.
Definition at line 276 of file heat_transfer.cc.
References assemblers, Parameters::none, simulation_control, simulation_parameters, time_stepping_is_bdf(), and time_stepping_is_sdirk().
|
overridevirtual |
Set up the DofHandler and the degrees of freedom associated with the physics.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1551 of file heat_transfer.cc.
References average_temperature, dof_handler, fe, heat_transfer, local_evaluation_point, locally_owned_dofs, locally_relevant_dofs, multiphysics, newton_update, nonzero_constraints, PhysicsSolver< GlobalVectorType >::pcout, BoundaryConditions::periodic, present_solution, previous_solutions, simulation_parameters, system_matrix, system_rhs, BoundaryConditions::temperature, temperature_mapping, triangulation, verify_consistency_of_boundary_conditions(), and zero_constraints.
| void HeatTransfer< dim >::setup_ilu | ( | ) |
Set up the ILU preconditioner stored in ilu_preconditioner.
Definition at line 1768 of file heat_transfer.cc.
References computing_timer, heat_transfer, ilu_preconditioner, simulation_parameters, and system_matrix.
|
overridevirtual |
Call for the solution of the linear system of equation using ILU or GMRES.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 1867 of file heat_transfer.cc.
References Parameters::LinearSolver::amg, amg_preconditioner, computing_timer, get_residual_rescale_metric(), heat_transfer, 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, triangulation, and zero_constraints.
|
overridevirtual |
Update non zero constraints if the boundary is time-dependent.
Reimplemented from AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1695 of file heat_transfer.cc.
References dof_handler, locally_owned_dofs, locally_relevant_dofs, nonzero_constraints, BoundaryConditions::periodic, simulation_control, simulation_parameters, and BoundaryConditions::temperature.
|
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 467 of file heat_transfer.h.
References simulation_parameters, and triangulation.
|
private |
Post-processing. Write the algebraic melt volume to an output file.
Definition at line 2337 of file heat_transfer.cc.
References melt_volume_alge_table, simulation_parameters, and triangulation.
|
overridevirtual |
Prepare Heat Transfer to write checkpoint.
Implements AuxiliaryPhysics< dim, GlobalVectorType >.
Definition at line 1441 of file heat_transfer.cc.
References average_temperature, gather_tables(), present_solution, previous_solutions, serialize_tables_vector(), simulation_parameters, solution_transfer, and triangulation.
|
private |
Write the geometric melt volume to an output file.
Definition at line 2486 of file heat_transfer.cc.
References melt_volume_geo_table, simulation_parameters, and triangulation.
|
private |
Post-processing. Write the heat transfer values to an output file.
| domain_name | string indicating the postprocessed_fluid in the console output, table and filename. |
Definition at line 2996 of file heat_transfer.cc.
References heat_flux_table, simulation_parameters, and triangulation.
|
private |
Post-processing. Write the temperature statistics to an output file.
| domain_name | string indicating the postprocessed_fluid in the console output, table and filename. |
Definition at line 2163 of file heat_transfer.cc.
References simulation_parameters, statistics_table, and triangulation.
|
private |
AMG preconditioner used by the iterative linear solver.
Definition at line 832 of file heat_transfer.h.
|
private |
Assemblers for the matrix and the right hand side (RHS).
Definition at line 869 of file heat_transfer.h.
|
private |
Compute local average heat flux quantities from temperature field and material properties.
Definition at line 914 of file heat_transfer.h.
|
private |
Compute the average temperature in time.
Definition at line 897 of file heat_transfer.h.
|
private |
Locally owned average temperature calculated using the AverageScalar object.
Definition at line 902 of file heat_transfer.h.
|
private |
Approximate an integral by evaluating the integrand at specific points and summing the point values with specific weights.
Definition at line 768 of file heat_transfer.h.
|
private |
Store information related to the computing time such as CPU times or wall time.
Definition at line 717 of file heat_transfer.h.
|
private |
Given a triangulation and a description of a finite element, this class enumerates degrees of freedom on all vertices, edges, faces, and cells of the triangulation.
Definition at line 744 of file heat_transfer.h.
|
private |
Store some convergence data, such as residuals of the cg-method, or some evaluated L2-errors of discrete solutions. Evaluate convergence rates or orders.
Definition at line 755 of file heat_transfer.h.
|
private |
The point at which the evaluation is performed.
Definition at line 792 of file heat_transfer.h.
|
private |
Approximate an integral by evaluating the integrand at specific points and summing the point values with specific weights.
Definition at line 773 of file heat_transfer.h.
|
private |
The base class for finite element.
Definition at line 748 of file heat_transfer.h.
|
private |
Reference for GGLS https://onlinelibrary.wiley.com/doi/abs/10.1002/nme.2324 Warning, this GGLS implementation is valid only for Linear elements Quad elements will be lacking the third derivative of the diffusion operator Whether this affects or not the final result is unclear to me at the moment. Additionnaly, this formulation does not use the gradient of the source term. The same applies, I have no clue if this is detrimental or not to the solution since anyway the GGLS term scales as h^(order+1).
Definition at line 864 of file heat_transfer.h.
|
private |
Compute local heat flux quantities from temperature field and material properties.
Definition at line 908 of file heat_transfer.h.
|
private |
Contain heat flux information used for post-processing:
Definition at line 883 of file heat_transfer.h.
|
private |
ILU preconditioner used by the iterative linear solver.
Definition at line 827 of file heat_transfer.h.
|
private |
The local evaluation point. Ghosts cells are not considered in this evaluation.
Definition at line 797 of file heat_transfer.h.
|
private |
Store a subset of the DoF indices that are stored on a particular processor on a distributed architecture.
Definition at line 782 of file heat_transfer.h.
|
private |
Store a subset of the DoF indices that contains both the locally_owned_dofs and the DoF indices on ghost cells.
Definition at line 787 of file heat_transfer.h.
|
private |
Liquid fraction in the domain.
Definition at line 925 of file heat_transfer.h.
|
private |
Evolution of the melt volume in the simulated domain.
Definition at line 930 of file heat_transfer.h.
|
private |
Definition at line 711 of file heat_transfer.h.
|
private |
The direction \( \delta u^n \) used to perform the newton iteration in \( u^{n+1} = u^n + \alpha ^n \delta u ^n \). Where \( \alpha ^n \) is the size of the step.
Definition at line 803 of file heat_transfer.h.
|
private |
Store the nonzero constraints that arise from several sources such as boundary conditions and hanging nodes in the mesh. See the deal.II documentation on constraints on degrees of freedom for more information.
Definition at line 817 of file heat_transfer.h.
|
private |
A vector containing all the values of the solution.
Definition at line 807 of file heat_transfer.h.
|
private |
Previous solution vector.
Definition at line 838 of file heat_transfer.h.
|
private |
previous_solutions_transfer occupies the same role as solution_transfer but for solutions at previous time steps.
Definition at line 853 of file heat_transfer.h.
|
private |
Responsible for the control of steady-state and transient simulations. Contains all the information related to time stepping and the stopping criteria. See simulation_control abstract class for more information.
Definition at line 738 of file heat_transfer.h.
|
private |
Contain the simulation parameter file information.
Definition at line 722 of file heat_transfer.h.
|
private |
SolutionTransfer<dim, GlobalVectorType>> is used to implement the transfer of a discrete FE function (e.g. a solution vector) from one mesh to another. This Deal.ii class is used for mesh_refinement and simulation restarts.
Definition at line 846 of file heat_transfer.h.
|
private |
Temperature statistics table used for post-processing. It contains the minimum , maximum, average and standard deviation of the temperature.
Definition at line 875 of file heat_transfer.h.
|
private |
The system matrix.
Definition at line 822 of file heat_transfer.h.
|
private |
The right hand side vector.
Definition at line 811 of file heat_transfer.h.
|
private |
Vector of tables containing evolution of temperature isocontour bounding values.
Definition at line 936 of file heat_transfer.h.
|
private |
Transformation which maps point in the reference cell to points in the actual grid cell.
Definition at line 763 of file heat_transfer.h.
|
private |
Abstract class that allows to calculate the thermal conductivity on each quadrature point using the temperature of the fluid.
Definition at line 892 of file heat_transfer.h.
|
private |
Collection of cells that cover the domain on which one wants to solve a partial differential equation.
Definition at line 731 of file heat_transfer.h.
|
private |
Definition at line 818 of file heat_transfer.h.