12 #if !defined(CHIMERA_DISTANCE_CALCULATION_UTILITY )
13 #define CHIMERA_DISTANCE_CALCULATION_UTILITY
77 #pragma omp parallel for
78 for (
int i_node = 0; i_node <
nnodes; ++i_node)
80 auto it_node = rBackgroundModelPart.
NodesBegin() + i_node;
81 it_node->FastGetSolutionStepValue(DISTANCE, 0) = 0.0;
82 it_node->FastGetSolutionStepValue(DISTANCE, 1) = 0.0;
83 it_node->SetValue(DISTANCE, 0.0);
86 CalculateDistanceToSkinProcessType(rBackgroundModelPart, rSkinModelPart).Execute();
90 "max_distance" : 200.0
92 auto p_distance_smoother = Kratos::make_shared<ParallelDistanceCalculationProcess<TDim>>(
94 parallel_redistance_settings
96 p_distance_smoother->Execute();
Calculates the nodal distances using elemental discontinuous distances.
Definition: calculate_distance_to_skin_process.h:40
Utility for calculating the Distance on a given modelpart.
Definition: distance_calcuation_utility.h:38
ChimeraDistanceCalculationUtility(const ChimeraDistanceCalculationUtility &rOther)=delete
ChimeraDistanceCalculationUtility()=delete
Default constructor.
KRATOS_CLASS_POINTER_DEFINITION(ChimeraDistanceCalculationUtility)
Pointer definition of ChimeraDistanceCalculationUtility.
static void CalculateDistance(ModelPart &rBackgroundModelPart, ModelPart &rSkinModelPart)
Calculates distance on the whole of rBackgroundModelPart from rSkinModelPart.
Definition: distance_calcuation_utility.h:72
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
NodeIterator NodesBegin(IndexType ThisIndex=0)
Definition: model_part.h:487
SizeType NumberOfNodes(IndexType ThisIndex=0) const
Definition: model_part.h:341
NodesContainerType & Nodes(IndexType ThisIndex=0)
Definition: model_part.h:507
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
This class implements a set of auxiliar, already parallelized, methods to perform some common tasks r...
Definition: variable_utils.h:63
void CopyVariable(const TVariableType &rOriginVariable, const TVariableType &rDestinationVariable, NodesContainerType &rNodesContainer)
Takes the value of an historical variable and sets it in another variable This function takes the val...
Definition: variable_utils.h:1017
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
int nnodes
Definition: sensitivityMatrix.py:24