KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
|
Tool to evaluate the normals on nodes based on the normals of a set of surface conditions. More...
#include <activation_utilities.h>
Public Types | |
Type Definitions | |
typedef ModelPart::NodesContainerType | NodesArrayType |
typedef ModelPart::ConditionsContainerType | ConditionsArrayType |
Public Member Functions | |
Operations | |
void | ActivateElementsAndConditions (ModelPart &rmodel_part, const Variable< double > &rVariable, const double reference_value, bool active_if_lower_than_reference) |
Tool to evaluate the normals on nodes based on the normals of a set of surface conditions.
|
inline |
This function is used to activate and deactivate elements and conditions depending on the value of rVariable we need to distinguish 2 cases: CASE 1 - active_if_lower_than_reference=true here elements and conditions will be active if any of their nodes comply with the condition rVariable<reference_value CASE 2 - active_if_lower_than_reference=false here elements and conditions will be active if any of their nodes comply with the condition rVariable>reference_value
rmodel_part | model_part containing the elements and conditions to be activated/deactivated |
rVariable | nodal variable to be used in the comparison |
reference_value | reference value used in the comparison |
active_if_lower_than_reference | see description above |