![]() |
|
#include <error_estimator.h>
Public Member Functions | |
DummyErrorEstimator (Mesh *mesh_pt, const Vector< unsigned > &elements_to_refine, const unsigned ¢ral_node_number, const bool &use_lagrangian_coordinates=false) | |
DummyErrorEstimator (Mesh *mesh_pt, const Vector< double > &lower_left, const Vector< double > &upper_right, const unsigned ¢ral_node_number, const bool &use_lagrangian_coordinates=false) | |
DummyErrorEstimator (const DummyErrorEstimator &)=delete | |
Broken copy constructor. More... | |
void | operator= (const DummyErrorEstimator &)=delete |
Broken assignment operator. More... | |
virtual | ~DummyErrorEstimator () |
Empty virtual destructor. More... | |
virtual void | get_element_errors (Mesh *&mesh_pt, Vector< double > &elemental_error, DocInfo &doc_info) |
![]() | |
ErrorEstimator () | |
Default empty constructor. More... | |
ErrorEstimator (const ErrorEstimator &)=delete | |
Broken copy constructor. More... | |
void | operator= (const ErrorEstimator &)=delete |
Broken assignment operator. More... | |
virtual | ~ErrorEstimator () |
Empty virtual destructor. More... | |
void | get_element_errors (Mesh *&mesh_pt, Vector< double > &elemental_error) |
Private Attributes | |
bool | Use_lagrangian_coordinates |
unsigned | Central_node_number |
Vector< Vector< double > > | Region_upp_bound |
Upper bounds for the coordinates of the refinement regions. More... | |
Vector< Vector< double > > | Region_low_bound |
Lower bounds for the coordinates of the refinement regions. More... | |
///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// ///////////////////////////////////////////////////////////////////// Dummy error estimator, allows manual specification of refinement pattern by forcing refinement in regions defined by elements in a reference mesh.
|
inline |
Constructor. Provide mesh and number of the elements that define the regions within which elements are to be refined subsequently. Also specify the node number of a central node within elements – it's used to determine if an element is in the region where refinement is supposed to take place. Optional boolean flag (defaulting to false) indicates that refinement decision is based on Lagrangian coordinates – only applicable to solid meshes.
References e(), oomph::Mesh::finite_element_pt(), i, oomph::Mesh::is_mesh_distributed(), j, oomph::Node::ndim(), oomph::Mesh::nelement(), oomph::SolidNode::nlagrangian(), oomph::FiniteElement::nnode(), oomph::FiniteElement::node_pt(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, Region_low_bound, Region_upp_bound, plotDoE::x, oomph::Node::x(), and oomph::SolidNode::xi().
|
inline |
Constructor. Provide vectors to "lower left" and "upper right" vertices of refinement region Also specify the node number of a central node within elements – it's used to determine if an element is in the region where refinement is supposed to take place. Optional boolean flag (defaulting to false) indicates that refinement decision is based on Lagrangian coordinates – only applicable to solid meshes.
References oomph::Mesh::nelement(), OOMPH_CURRENT_FUNCTION, OOMPH_EXCEPTION_LOCATION, Region_low_bound, and Region_upp_bound.
|
delete |
Broken copy constructor.
|
inlinevirtual |
|
inlinevirtual |
Compute the elemental error measures for a given mesh and store them in a vector. Doc errors etc.
Implements oomph::ErrorEstimator.
References Central_node_number, e(), oomph::Mesh::finite_element_pt(), i, oomph::DocInfo::is_doc_enabled(), oomph::Mesh::nelement(), oomph::FiniteElement::node_pt(), OOMPH_EXCEPTION_LOCATION, UniformPSDSelfTest::r, Region_low_bound, Region_upp_bound, Use_lagrangian_coordinates, plotDoE::x, oomph::Node::x(), and oomph::SolidNode::xi().
|
delete |
Broken assignment operator.
|
private |
Number of local node that is used to identify if an element is located in the refinement region
Referenced by get_element_errors().
Lower bounds for the coordinates of the refinement regions.
Referenced by DummyErrorEstimator(), and get_element_errors().
Upper bounds for the coordinates of the refinement regions.
Referenced by DummyErrorEstimator(), and get_element_errors().
|
private |
Use Lagrangian coordinates to decide which element is to be refined
Referenced by get_element_errors().