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.
List of all members
Kratos::ActivationUtilities Class Reference

Tool to evaluate the normals on nodes based on the normals of a set of surface conditions. More...

#include <activation_utilities.h>

Collaboration diagram for Kratos::ActivationUtilities:

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)
 

Detailed Description

Tool to evaluate the normals on nodes based on the normals of a set of surface conditions.

Member Typedef Documentation

◆ ConditionsArrayType

◆ NodesArrayType

Member Function Documentation

◆ ActivateElementsAndConditions()

void Kratos::ActivationUtilities::ActivateElementsAndConditions ( ModelPart rmodel_part,
const Variable< double > &  rVariable,
const double  reference_value,
bool  active_if_lower_than_reference 
)
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

Parameters
rmodel_partmodel_part containing the elements and conditions to be activated/deactivated
rVariablenodal variable to be used in the comparison
reference_valuereference value used in the comparison
active_if_lower_than_referencesee description above

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