![]() |
Lethe Open-Source Library version 1.2.0
Developer Guide
|
#include <mesh_controller.h>
Public Member Functions | |
| MeshController (const unsigned int target_number_of_elements) | |
| virtual | ~MeshController ()=default |
| double | calculate_coarsening_factor (unsigned int current_number_of_elements) |
Private Attributes | |
| const unsigned int | target_number_of_elements |
| unsigned int | previous_number_of_elements |
| double | previous_mesh_control_error |
@Class Controller that target a given number of elements in the mesh. This controller is used to define the coarsening factor.
Definition at line 12 of file mesh_controller.h.
|
inline |
Constructor of the controller.
| target_number_of_elements | Number of element the controller tries to obtain. |
Definition at line 19 of file mesh_controller.h.
References previous_mesh_control_error, previous_number_of_elements, and target_number_of_elements.
|
virtualdefault |
| double MeshController::calculate_coarsening_factor | ( | unsigned int | current_number_of_elements | ) |
Returns the coarsening factor.
Definition at line 7 of file mesh_controller.cc.
References previous_mesh_control_error, previous_number_of_elements, and target_number_of_elements.
|
private |
Definition at line 34 of file mesh_controller.h.
|
private |
Definition at line 33 of file mesh_controller.h.
|
private |
Definition at line 32 of file mesh_controller.h.