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.
Public Types | Public Member Functions | List of all members
Kratos::PreUtilities Class Reference

#include <pre_utilities.h>

Collaboration diagram for Kratos::PreUtilities:

Public Types

typedef ModelPart::ElementsContainerType ElementsArrayType
 
typedef ModelPart::NodesContainerType::ContainerType NodesContainerType
 
typedef GlobalPointersVector< ElementParticleWeakVectorType
 
typedef GlobalPointersVector< Element >::iterator ParticleWeakIteratorType
 

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (PreUtilities)
 
 PreUtilities ()
 Default constructor. More...
 
 PreUtilities (ModelPart &rModelPart)
 
virtual ~PreUtilities ()
 Destructor. More...
 
void SetClusterInformationInProperties (std::string const &name, pybind11::list &list_of_coordinates, pybind11::list &list_of_radii, double size, double volume, pybind11::list &inertias, Properties::Pointer &p_properties)
 
void PrintNumberOfNeighboursHistogram (const ModelPart &rSpheresModelPart, std::string const &filename)
 
void FillAnalyticSubModelPartUtility (ModelPart &rSpheresModelPart, ModelPart &rAnalyticSpheresModelPart)
 
void ResetSkinParticles (ModelPart &r_model_part)
 
void SetSkinParticlesInnerCircularBoundary (ModelPart &r_model_part, const double inner_radius, const double detection_radius)
 
void SetSkinParticlesOuterCircularBoundary (ModelPart &r_model_part, const double outer_radius, const double detection_radius)
 
void SetSkinParticlesOuterSquaredBoundary (ModelPart &r_model_part, const double outer_radius, const array_1d< double, 3 > &center, const double detection_radius)
 
void BreakBondUtility (ModelPart &rSpheresModelPart)
 
void CreateCartesianSpecimenMdpa (std::string filename)
 
void MeasureTopHeight (ModelPart &rModelPart, double &subtotal, double &weight)
 
void MeasureBotHeight (ModelPart &rModelPart, double &subtotal, double &weight)
 
void MarkToEraseParticlesOutsideRadius (ModelPart &r_model_part, const double max_radius, const array_1d< double, 3 > &center, const double tolerance_for_erasing)
 
void MarkToEraseParticlesOutsideRadiusForGettingCylinder (ModelPart &r_model_part, const double max_radius, const array_1d< double, 3 > &center, const double tolerance_for_erasing)
 
void MarkToEraseParticlesOutsideBoundary (ModelPart &r_model_part, const double min_x, const double max_x, const double min_y, const double max_y, const double min_z, const double max_z, const double tolerance_for_erasing)
 
void ApplyConcentricForceOnParticles (ModelPart &r_model_part, const array_1d< double, 3 > &center, const double density_for_artificial_gravity)
 
array_1d< double, 3 > GetInitialCenterOfMass ()
 
virtual std::string Info () const
 Turn back information as a stemplate<class T, std::size_t dim> tring. More...
 
virtual void PrintInfo (std::ostream &rOStream) const
 Print information about this object. More...
 
virtual void PrintData (std::ostream &rOStream) const
 Print object's data. More...
 

Member Typedef Documentation

◆ ElementsArrayType

◆ NodesContainerType

◆ ParticleWeakIteratorType

◆ ParticleWeakVectorType

Constructor & Destructor Documentation

◆ PreUtilities() [1/2]

Kratos::PreUtilities::PreUtilities ( )
inline

Default constructor.

◆ PreUtilities() [2/2]

Kratos::PreUtilities::PreUtilities ( ModelPart rModelPart)
inline

◆ ~PreUtilities()

virtual Kratos::PreUtilities::~PreUtilities ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ ApplyConcentricForceOnParticles()

void Kratos::PreUtilities::ApplyConcentricForceOnParticles ( ModelPart r_model_part,
const array_1d< double, 3 > &  center,
const double  density_for_artificial_gravity 
)
inline

◆ BreakBondUtility()

void Kratos::PreUtilities::BreakBondUtility ( ModelPart rSpheresModelPart)
inline

◆ CreateCartesianSpecimenMdpa()

void Kratos::PreUtilities::CreateCartesianSpecimenMdpa ( std::string  filename)
inline

◆ FillAnalyticSubModelPartUtility()

void Kratos::PreUtilities::FillAnalyticSubModelPartUtility ( ModelPart rSpheresModelPart,
ModelPart rAnalyticSpheresModelPart 
)
inline

◆ GetInitialCenterOfMass()

array_1d<double, 3> Kratos::PreUtilities::GetInitialCenterOfMass ( )
inline

◆ Info()

virtual std::string Kratos::PreUtilities::Info ( ) const
inlinevirtual

Turn back information as a stemplate<class T, std::size_t dim> tring.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::PreUtilities::KRATOS_CLASS_POINTER_DEFINITION ( PreUtilities  )

◆ MarkToEraseParticlesOutsideBoundary()

void Kratos::PreUtilities::MarkToEraseParticlesOutsideBoundary ( ModelPart r_model_part,
const double  min_x,
const double  max_x,
const double  min_y,
const double  max_y,
const double  min_z,
const double  max_z,
const double  tolerance_for_erasing 
)
inline

◆ MarkToEraseParticlesOutsideRadius()

void Kratos::PreUtilities::MarkToEraseParticlesOutsideRadius ( ModelPart r_model_part,
const double  max_radius,
const array_1d< double, 3 > &  center,
const double  tolerance_for_erasing 
)
inline

◆ MarkToEraseParticlesOutsideRadiusForGettingCylinder()

void Kratos::PreUtilities::MarkToEraseParticlesOutsideRadiusForGettingCylinder ( ModelPart r_model_part,
const double  max_radius,
const array_1d< double, 3 > &  center,
const double  tolerance_for_erasing 
)
inline

◆ MeasureBotHeight()

void Kratos::PreUtilities::MeasureBotHeight ( ModelPart rModelPart,
double subtotal,
double weight 
)
inline

◆ MeasureTopHeight()

void Kratos::PreUtilities::MeasureTopHeight ( ModelPart rModelPart,
double subtotal,
double weight 
)
inline

◆ PrintData()

virtual void Kratos::PreUtilities::PrintData ( std::ostream &  rOStream) const
inlinevirtual

Print object's data.

◆ PrintInfo()

virtual void Kratos::PreUtilities::PrintInfo ( std::ostream &  rOStream) const
inlinevirtual

Print information about this object.

◆ PrintNumberOfNeighboursHistogram()

void Kratos::PreUtilities::PrintNumberOfNeighboursHistogram ( const ModelPart rSpheresModelPart,
std::string const &  filename 
)
inline

◆ ResetSkinParticles()

void Kratos::PreUtilities::ResetSkinParticles ( ModelPart r_model_part)
inline

◆ SetClusterInformationInProperties()

void Kratos::PreUtilities::SetClusterInformationInProperties ( std::string const &  name,
pybind11::list &  list_of_coordinates,
pybind11::list &  list_of_radii,
double  size,
double  volume,
pybind11::list &  inertias,
Properties::Pointer &  p_properties 
)
inline

◆ SetSkinParticlesInnerCircularBoundary()

void Kratos::PreUtilities::SetSkinParticlesInnerCircularBoundary ( ModelPart r_model_part,
const double  inner_radius,
const double  detection_radius 
)
inline

◆ SetSkinParticlesOuterCircularBoundary()

void Kratos::PreUtilities::SetSkinParticlesOuterCircularBoundary ( ModelPart r_model_part,
const double  outer_radius,
const double  detection_radius 
)
inline

◆ SetSkinParticlesOuterSquaredBoundary()

void Kratos::PreUtilities::SetSkinParticlesOuterSquaredBoundary ( ModelPart r_model_part,
const double  outer_radius,
const array_1d< double, 3 > &  center,
const double  detection_radius 
)
inline

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