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
test_utilities Namespace Reference

Functions

def GetRandomValue (min_value=-10.0, max_value=10.0)
 
def GetRandomVector (vector_size=3, min_value=-10.0, max_value=10.0)
 
def GetRandomMatrix (size_1=5, size_2=5, min_value=-10.0, max_value=10.0)
 
def HistoricalRetrievalMethod (item, variable)
 
def NonHistoricalRetrievalMethod (item, variable)
 
def InitializeContainerArrays (container)
 
def CheckValues (test_unit, value_a, value_b, tolerance)
 
def CreateModelPart (model_part)
 
def InitializeModelPartVariables (model_part, is_random=True)
 
def GetInitialVariableValue (variable, norm_type, value=0.0)
 
def InitializeProcesses (test)
 
def ExecuteProcessFinalizeSolutionStep (test)
 

Function Documentation

◆ CheckValues()

def test_utilities.CheckValues (   test_unit,
  value_a,
  value_b,
  tolerance 
)

◆ CreateModelPart()

def test_utilities.CreateModelPart (   model_part)

◆ ExecuteProcessFinalizeSolutionStep()

def test_utilities.ExecuteProcessFinalizeSolutionStep (   test)

◆ GetInitialVariableValue()

def test_utilities.GetInitialVariableValue (   variable,
  norm_type,
  value = 0.0 
)

◆ GetRandomMatrix()

def test_utilities.GetRandomMatrix (   size_1 = 5,
  size_2 = 5,
  min_value = -10.0,
  max_value = 10.0 
)

◆ GetRandomValue()

def test_utilities.GetRandomValue (   min_value = -10.0,
  max_value = 10.0 
)

◆ GetRandomVector()

def test_utilities.GetRandomVector (   vector_size = 3,
  min_value = -10.0,
  max_value = 10.0 
)

◆ HistoricalRetrievalMethod()

def test_utilities.HistoricalRetrievalMethod (   item,
  variable 
)

◆ InitializeContainerArrays()

def test_utilities.InitializeContainerArrays (   container)

◆ InitializeModelPartVariables()

def test_utilities.InitializeModelPartVariables (   model_part,
  is_random = True 
)

◆ InitializeProcesses()

def test_utilities.InitializeProcesses (   test)

◆ NonHistoricalRetrievalMethod()

def test_utilities.NonHistoricalRetrievalMethod (   item,
  variable 
)