14 #if !defined(KRATOS_PARALLEL_DISTANCE_CALCULATOR_H_INCLUDED )
15 #define KRATOS_PARALLEL_DISTANCE_CALCULATOR_H_INCLUDED
58 template <
unsigned int TDim>
98 const Parameters GetDefaultParameters()
const override;
100 int Check()
override;
102 void Execute()
override;
105 double FindMaximumEdgeSize();
132 std::string
Info()
const override
134 std::stringstream buffer;
135 buffer <<
"ParallelDistanceCalculationProcess" << TDim <<
"D";
142 rOStream <<
"ParallelDistanceCalculationProcess" << TDim <<
"D";
146 void PrintData(std::ostream& rOStream)
const override {};
223 void ResetVariables();
225 void CalculateExactDistancesOnDividedElements();
227 void ExtendDistancesByLayer();
229 void AssignDistanceSign();
235 void AddDistanceToNodes(
238 const double& Volume);
263 template<
unsigned int TDim>
265 std::istream& rIStream,
272 template<
unsigned int TDim>
274 std::ostream& rOStream,
278 rOStream << std::endl;
Geometry base class.
Definition: geometry.h:71
Definition: amatrix_interface.h:41
This class aims to manage different model parts across multi-physics simulations.
Definition: model.h:60
This class aims to manage meshes for multi-physics simulations.
Definition: model_part.h:77
Node NodeType
Definition: model_part.h:117
Short class definition.
Definition: parallel_distance_calculation_process.h:60
double mMaxDistance
Definition: parallel_distance_calculation_process.h:167
unsigned int mMaxLevels
Definition: parallel_distance_calculation_process.h:166
KRATOS_CLASS_POINTER_DEFINITION(ParallelDistanceCalculationProcess)
Pointer definition of ParallelDistanceCalculationProcess.
bool mCalculateExactDistancesToPlane
Definition: parallel_distance_calculation_process.h:168
ParallelDistanceCalculationProcess(ParallelDistanceCalculationProcess< TDim > const &rOther)=delete
Copy constructor.
std::function< double &(NodeType &rNode)> NodeScalarGetFunctionType
Lambda type to retrieve a scalar variable from a node.
Definition: parallel_distance_calculation_process.h:75
const Variable< double > * mpAreaVar
Definition: parallel_distance_calculation_process.h:165
void PrintInfo(std::ostream &rOStream) const override
Print information about this object.
Definition: parallel_distance_calculation_process.h:140
ModelPart & mrModelPart
Definition: parallel_distance_calculation_process.h:163
virtual ~ParallelDistanceCalculationProcess()
Destructor.
Definition: parallel_distance_calculation_process.h:96
const Variable< double > * mpDistanceVar
Definition: parallel_distance_calculation_process.h:164
std::string Info() const override
Turn back information as a string.
Definition: parallel_distance_calculation_process.h:132
NodalDatabase
Nodal databases auxiliary enum.
Definition: parallel_distance_calculation_process.h:66
typename ModelPart::NodeType NodeType
Node type from model part.
Definition: parallel_distance_calculation_process.h:72
void PrintData(std::ostream &rOStream) const override
Print object's data.
Definition: parallel_distance_calculation_process.h:146
This class provides to Kratos a data structure for I/O based on the standard of JSON.
Definition: kratos_parameters.h:59
The base class for all processes in Kratos.
Definition: process.h:49
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432