Lethe Open-Source Library version 1.2.0
Developer Guide
Loading...
Searching...
No Matches
MeshController Class Reference

#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

Detailed Description

@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.

Constructor & Destructor Documentation

◆ MeshController()

MeshController::MeshController ( const unsigned int target_number_of_elements)
inline

Constructor of the controller.

Parameters
target_number_of_elementsNumber 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.

◆ ~MeshController()

virtual MeshController::~MeshController ( )
virtualdefault

Member Function Documentation

◆ calculate_coarsening_factor()

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.

Member Data Documentation

◆ previous_mesh_control_error

double MeshController::previous_mesh_control_error
private

Definition at line 34 of file mesh_controller.h.

◆ previous_number_of_elements

unsigned int MeshController::previous_number_of_elements
private

Definition at line 33 of file mesh_controller.h.

◆ target_number_of_elements

const unsigned int MeshController::target_number_of_elements
private

Definition at line 32 of file mesh_controller.h.


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