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.
List of all members
Kratos::RandomInitializeUtility< TDataType > Class Template Reference

Utility to initialize a random vector. More...

#include <random_initializer_utility.h>

Collaboration diagram for Kratos::RandomInitializeUtility< TDataType >:

Public Types

Type Definitions
typedef UblasSpace< TDataType, CompressedMatrix, boost::numeric::ublas::vector< double > > SparseSpaceType
 
typedef UblasSpace< TDataType, Matrix, VectorLocalSpaceType
 
typedef SparseSpaceType::MatrixType SparseMatrixType
 
typedef SparseSpaceType::VectorType VectorType
 
typedef LocalSpaceType::MatrixType DenseMatrixType
 
typedef LocalSpaceType::VectorType DenseVectorType
 
typedef std::size_t SizeType
 

Static Public Member Functions

Operations
static void NormalDestributionRandom (VectorType &R, const TDataType &MeanValue, const TDataType &VarianceValue)
 This method initializes a vector using a normal normal distribution. More...
 
static void RandomInitialize (const SparseMatrixType &K, VectorType &R, const bool Inverse=false)
 This method initializes a vector using a normal distribution. The mean and the variance is taken from the norm of the matrix. More...
 

Detailed Description

template<class TDataType>
class Kratos::RandomInitializeUtility< TDataType >

Utility to initialize a random vector.

Defines several utility functions related with the initialization of random matrixes. The class can be adapted for several types of floating numbers via template

Author
Vicente Mataix Ferrandiz

Member Typedef Documentation

◆ DenseMatrixType

template<class TDataType >
typedef LocalSpaceType::MatrixType Kratos::RandomInitializeUtility< TDataType >::DenseMatrixType

◆ DenseVectorType

template<class TDataType >
typedef LocalSpaceType::VectorType Kratos::RandomInitializeUtility< TDataType >::DenseVectorType

◆ LocalSpaceType

template<class TDataType >
typedef UblasSpace<TDataType, Matrix, Vector> Kratos::RandomInitializeUtility< TDataType >::LocalSpaceType

◆ SizeType

template<class TDataType >
typedef std::size_t Kratos::RandomInitializeUtility< TDataType >::SizeType

◆ SparseMatrixType

template<class TDataType >
typedef SparseSpaceType::MatrixType Kratos::RandomInitializeUtility< TDataType >::SparseMatrixType

◆ SparseSpaceType

template<class TDataType >
typedef UblasSpace<TDataType, CompressedMatrix, boost::numeric::ublas::vector<double> > Kratos::RandomInitializeUtility< TDataType >::SparseSpaceType

◆ VectorType

template<class TDataType >
typedef SparseSpaceType::VectorType Kratos::RandomInitializeUtility< TDataType >::VectorType

Member Function Documentation

◆ NormalDestributionRandom()

template<class TDataType >
static void Kratos::RandomInitializeUtility< TDataType >::NormalDestributionRandom ( VectorType R,
const TDataType &  MeanValue,
const TDataType &  VarianceValue 
)
inlinestatic

This method initializes a vector using a normal normal distribution.

Parameters
RThe vector to fill with random values
MeanValueThe mean value used in the normal distribution
VarianceValueThe variance value used in the normal distribution

◆ RandomInitialize()

template<class TDataType >
static void Kratos::RandomInitializeUtility< TDataType >::RandomInitialize ( const SparseMatrixType K,
VectorType R,
const bool  Inverse = false 
)
inlinestatic

This method initializes a vector using a normal distribution. The mean and the variance is taken from the norm of the matrix.

Parameters
KThe stiffness matrix
RThe vector to initialize
InverseIf consider the inverse pf the matrix norm or not

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