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::AnalyticModelPartFiller Class Reference

#include <analytic_model_part_filler.h>

Collaboration diagram for Kratos::AnalyticModelPartFiller:

Public Types

typedef ModelPart::ElementsContainerType ElementsArrayType
 
typedef ModelPart::ElementsContainerType::iterator ElementsIteratorType
 

Public Member Functions

 KRATOS_CLASS_POINTER_DEFINITION (AnalyticModelPartFiller)
 
 AnalyticModelPartFiller ()
 Default constructor. More...
 
virtual ~AnalyticModelPartFiller ()
 Destructor. More...
 
template<class bidiiter >
bidiiter random_unique (bidiiter begin, bidiiter end, size_t num_random)
 
void GetRandomSample (std::vector< int > &random_positions_vector_to_fill, const int n_positions, const int n_random_positions)
 
void FillAnalyticModelPartGivenFractionOfParticlesToTransform (const double fraction_of_particles_to_convert, ModelPart &spheres_model_part, ParticleCreatorDestructor particle_creator_destructor, std::string analytic_sub_model_part_name="")
 
virtual std::string Info () const
 Turn back information as a string. 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

◆ ElementsIteratorType

Constructor & Destructor Documentation

◆ AnalyticModelPartFiller()

Kratos::AnalyticModelPartFiller::AnalyticModelPartFiller ( )
inline

Default constructor.

◆ ~AnalyticModelPartFiller()

virtual Kratos::AnalyticModelPartFiller::~AnalyticModelPartFiller ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ FillAnalyticModelPartGivenFractionOfParticlesToTransform()

void Kratos::AnalyticModelPartFiller::FillAnalyticModelPartGivenFractionOfParticlesToTransform ( const double  fraction_of_particles_to_convert,
ModelPart spheres_model_part,
ParticleCreatorDestructor  particle_creator_destructor,
std::string  analytic_sub_model_part_name = "" 
)

◆ GetRandomSample()

void Kratos::AnalyticModelPartFiller::GetRandomSample ( std::vector< int > &  random_positions_vector_to_fill,
const int  n_positions,
const int  n_random_positions 
)

◆ Info()

std::string Kratos::AnalyticModelPartFiller::Info ( ) const
virtual

Turn back information as a string.

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::AnalyticModelPartFiller::KRATOS_CLASS_POINTER_DEFINITION ( AnalyticModelPartFiller  )

◆ PrintData()

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

Print object's data.

◆ PrintInfo()

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

Print information about this object.

◆ random_unique()

template<class bidiiter >
bidiiter Kratos::AnalyticModelPartFiller::random_unique ( bidiiter  begin,
bidiiter  end,
size_t  num_random 
)
inline

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