![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <cls_pde_based_interface_reinitialization.h>
Private Member Functions | |
| void | write_output_results (const unsigned int step) |
| double | compute_diffusivity (const double min_cell_size) const |
| double | compute_time_step () |
| void | define_zero_constraints () |
| void | define_non_zero_constraints () |
| void | set_initial_conditions () |
| void | assemble_system_matrix () override |
| void | assemble_system_rhs () override |
| void | solve_linear_system () override |
| bool | continue_iterating (const unsigned int step_number) |
| void | check_dependencies_validity () |
Additional Inherited Members | |
| Public Attributes inherited from PhysicsSolver< GlobalVectorType > | |
| ConditionalOStream | pcout |
| Parameters::SimulationControl::TimeSteppingMethod | time_stepping_method |
| Protected Attributes inherited from PhysicsNonlinearSubequationsSolver< dim, GlobalVectorType > | |
| const ConditionalOStream | pcout |
CLS PDE-based reinitialization solver.
| dim | Number of dimensions of the problem. |
Definition at line 35 of file cls_pde_based_interface_reinitialization.h.
|
inline |
Constructor of the CLS PDE-based interface reinitialization.
| [in] | p_simulation_parameters | Simulation parameters. |
| [in] | p_pcout | Parallel cout used to print the information. |
| [in] | p_triangulation | Distributed mesh information. |
| [in] | p_simulation_control | SimulationControl object. |
| [in,out] | p_subequations_interface | Subequations interface object used to get information from other subequations and store information from the current one. |
Definition at line 54 of file cls_pde_based_interface_reinitialization.h.
References cell_quadrature, dof_handler, fe, mapping, PhysicsNonlinearSubequationsSolver< dim, GlobalVectorType >::pcout, PhysicsNonlinearSubequationsSolver< dim, GlobalVectorType >::PhysicsNonlinearSubequationsSolver(), present_solution, simulation_control, simulation_parameters, subequation_id, subequation_verbosity, subequations_interface, and triangulation.
|
default |
Default destructor.
|
overrideprivatevirtual |
Assemble the matrix.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 207 of file cls_pde_based_interface_reinitialization.cc.
References Parameters::SimulationControl::bdf1, calculate_bdf_coefficients(), cell_quadrature, compute_diffusivity(), dof_handler, evaluation_point, fe, identify_minimum_cell_size(), mapping, pde_based_interface_reinitialization, phase_gradient_projection, subequations_interface, system_matrix, time_step_vector, triangulation, and zero_constraints.
|
overrideprivatevirtual |
Assemble the right-hand side (rhs).
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 373 of file cls_pde_based_interface_reinitialization.cc.
References Parameters::SimulationControl::bdf1, calculate_bdf_coefficients(), cell_quadrature, compute_diffusivity(), dof_handler, evaluation_point, fe, identify_minimum_cell_size(), mapping, pde_based_interface_reinitialization, phase_gradient_projection, previous_solution, subequations_interface, system_rhs, time_step_vector, triangulation, and zero_constraints.
|
private |
Check if the phase gradient and curvature L2 projections have been solved.
Definition at line 780 of file cls_pde_based_interface_reinitialization.cc.
References phase_gradient_projection, and subequations_interface.
|
inlineprivate |
Computes mesh-dependant diffusivity coefficient value.
| [in] | min_cell_size | Smallest cell's measure. |
Definition at line 245 of file cls_pde_based_interface_reinitialization.h.
References simulation_parameters.
|
inlineprivate |
Computes PDE-based reinitialization time step value with user-imposed CFL and minimum cell size.
Definition at line 265 of file cls_pde_based_interface_reinitialization.h.
References cell_quadrature, compute_diffusivity(), dof_handler, identify_minimum_cell_size(), mapping, simulation_control, simulation_parameters, and triangulation.
|
inlineprivate |
Indicate if the PDE-based reinitialization should continue by checking if at least one of the two stop criteria (steady-state criterion or maximum number of reinitialization steps) is met.
| [in] | step_number | PDE-based interface reinitialization step number. |
Definition at line 338 of file cls_pde_based_interface_reinitialization.h.
References Parameters::extra_verbose, local_evaluation_point, PhysicsNonlinearSubequationsSolver< dim, GlobalVectorType >::pcout, previous_local_evaluation_point, simulation_parameters, and subequation_verbosity.
|
private |
Define the non zero constraints used to solve the problem.
Definition at line 132 of file cls_pde_based_interface_reinitialization.cc.
References BoundaryConditions::dirichlet, dof_handler, locally_owned_dofs, locally_relevant_dofs, nonzero_constraints, BoundaryConditions::periodic, and simulation_parameters.
|
private |
Define the zero constraints used to solve the problem.
Definition at line 90 of file cls_pde_based_interface_reinitialization.cc.
References BoundaryConditions::dirichlet, dof_handler, locally_owned_dofs, locally_relevant_dofs, BoundaryConditions::periodic, simulation_parameters, and zero_constraints.
|
inlineoverridevirtual |
Getter method to access the private attribute evaluation_point for the subequation currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 126 of file cls_pde_based_interface_reinitialization.h.
References evaluation_point.
|
inlineoverridevirtual |
Getter method to access the private attribute local_evaluation_point for the subequation currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 139 of file cls_pde_based_interface_reinitialization.h.
References local_evaluation_point.
|
inlineoverridevirtual |
Getter method to access the private attribute newton_update for the subequation currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 151 of file cls_pde_based_interface_reinitialization.h.
References newton_update.
|
inlineoverridevirtual |
Getter method to access the private attribute nonzero_constraints for the subequation currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 189 of file cls_pde_based_interface_reinitialization.h.
References nonzero_constraints.
|
inlineoverridevirtual |
Getter method to access the private attribute present_solution for the subequation currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 163 of file cls_pde_based_interface_reinitialization.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 215 of file cls_pde_based_interface_reinitialization.h.
References CLS, mapping, simulation_parameters, and triangulation.
|
inlineoverridevirtual |
Getter method to access the private attribute system_rhs for the subequation currently solved.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 175 of file cls_pde_based_interface_reinitialization.h.
References system_rhs.
|
inlineoverridevirtual |
Output the \(L_2\) and \(L_\infty\) norms of the correction vector.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 199 of file cls_pde_based_interface_reinitialization.h.
References newton_update, and PhysicsNonlinearSubequationsSolver< dim, GlobalVectorType >::pcout.
|
private |
Sets-up the initial conditions associated with the subequation.
Definition at line 175 of file cls_pde_based_interface_reinitialization.cc.
References newton_update, present_solution, previous_local_evaluation_point, previous_solution, pvdhandler, simulation_parameters, subequations_interface, and write_output_results().
|
overridevirtual |
Set up the DofHandler and the degree of freedom associated with the subequation.
Implements PhysicsSubequationsSolverBase.
Definition at line 20 of file cls_pde_based_interface_reinitialization.cc.
References define_non_zero_constraints(), define_zero_constraints(), dof_handler, evaluation_point, fe, local_evaluation_point, locally_owned_dofs, locally_relevant_dofs, newton_update, nonzero_constraints, PhysicsNonlinearSubequationsSolver< dim, GlobalVectorType >::pcout, present_solution, previous_local_evaluation_point, previous_solution, Parameters::quiet, subequation_id, subequation_verbosity, subequations_interface, system_matrix, system_rhs, and triangulation.
|
overridevirtual |
Solve interface PDE-based reinitialization process until one of the stop criteria is met.
Implements PhysicsSubequationsSolverBase.
Definition at line 646 of file cls_pde_based_interface_reinitialization.cc.
References announce_string(), check_dependencies_validity(), compute_time_step(), continue_iterating(), current_time_step, define_non_zero_constraints(), local_evaluation_point, PhysicsNonlinearSubequationsSolver< dim, GlobalVectorType >::pcout, pde_based_interface_reinitialization, present_solution, previous_local_evaluation_point, previous_solution, Parameters::quiet, set_initial_conditions(), simulation_parameters, PhysicsSolver< GlobalVectorType >::solve_governing_system(), subequation_id, subequation_verbosity, subequations_interface, time_step_vector, and write_output_results().
|
overrideprivatevirtual |
Solve the linear system.
Implements PhysicsSolver< GlobalVectorType >.
Definition at line 552 of file cls_pde_based_interface_reinitialization.cc.
References get_residual_rescale_metric(), locally_owned_dofs, newton_update, PhysicsNonlinearSubequationsSolver< dim, GlobalVectorType >::pcout, pde_based_interface_reinitialization, Parameters::quiet, simulation_parameters, system_matrix, system_rhs, triangulation, and zero_constraints.
|
private |
Write parallel VTU files of quantities of interest for the PDE-based interface reinitialization process.
| [in] | step | Integer indicating the reinitialization step number. |
Definition at line 722 of file cls_pde_based_interface_reinitialization.cc.
References dof_handler, mapping, phase_gradient_projection, present_solution, pvdhandler, simulation_control, simulation_parameters, subequations_interface, triangulation, and write_vtu_and_pvd().
|
private |
Definition at line 417 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 407 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 412 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 422 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 413 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 423 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 420 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 421 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 416 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 425 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 430 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 426 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 424 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 427 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 404 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 401 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 398 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 394 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 434 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 395 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 431 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 428 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 408 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 411 of file cls_pde_based_interface_reinitialization.h.
|
private |
Definition at line 429 of file cls_pde_based_interface_reinitialization.h.