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.
Functions
Kratos::WallDistanceCalculationUtilities Namespace Reference

Functions

void CalculateAndUpdateNodalMinimumWallDistance (ModelPart::NodeType &rNode, const array_1d< double, 3 > &rWallLocation, const array_1d< double, 3 > &rUnitNormal, const Variable< double > &rDistanceVariable)
 Calculates wall distance and updates nodal value. More...
 

Function Documentation

◆ CalculateAndUpdateNodalMinimumWallDistance()

void Kratos::WallDistanceCalculationUtilities::CalculateAndUpdateNodalMinimumWallDistance ( ModelPart::NodeType rNode,
const array_1d< double, 3 > &  rWallLocation,
const array_1d< double, 3 > &  rUnitNormal,
const Variable< double > &  rDistanceVariable 
)

Calculates wall distance and updates nodal value.

This method calculates wall distance. Wall distance is the projection of distance vector from node to wall point in the direction of normal

Parameters
rNodeNode, where wall distance is required
rWallLocationNearest wall location
rUnitNormalWall normal (this should be always outward pointing normal)
rDistanceVariableDistance variable to store nodal distance