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 Member Functions | Public Attributes | List of all members
from_json_check_result_process.FromJsonCheckResultProcess Class Reference

This class is used in order to check results using a json file containing the solution a given model part with a certain frequency. More...

Inheritance diagram for from_json_check_result_process.FromJsonCheckResultProcess:
Collaboration diagram for from_json_check_result_process.FromJsonCheckResultProcess:

Public Member Functions

def __init__ (self, model, params)
 The default constructor of the class. More...
 
def ExecuteInitialize (self)
 This method is executed at the beginning to initialize the process. More...
 
def ExecuteFinalizeSolutionStep (self)
 This method is executed in order to finalize the current step. More...
 
- Public Member Functions inherited from KratosUnittest.TestCase
def run (self, result=None)
 
def skipTestIfApplicationsNotAvailable (self, *application_names)
 Skips the test if required applications are not available. More...
 
def assertEqualTolerance (self, first, second, tolerance, msg=None)
 Fails if first and second have a difference greater than tolerance. More...
 
def assertIsClose (self, first, second, rel_tol=None, abs_tol=None, msg=None)
 Fails if the two objects are unequal as determined by their absolute and relative difference. More...
 
def assertVectorAlmostEqual (self, vector1, vector2, places=7, msg=None, delta=None)
 
def assertMatrixAlmostEqual (self, matrix1, matrix2, places=7, msg=None, delta=None)
 

Public Attributes

 process
 
- Public Attributes inherited from KratosUnittest.TestCase
 mismatch_idx
 
 aux_message
 
 idx_1
 
 idx_2
 

Detailed Description

This class is used in order to check results using a json file containing the solution a given model part with a certain frequency.

Only the member variables listed below should be accessed directly.

Public member variables: model – the model containing the model_parts settings – Kratos parameters containing solver settings.

Constructor & Destructor Documentation

◆ __init__()

def from_json_check_result_process.FromJsonCheckResultProcess.__init__ (   self,
  model,
  params 
)

The default constructor of the class.

   Keyword arguments:
   self -- It signifies an instance of a class.
   model -- the model containing the model_parts
   settings -- Kratos parameters containing solver settings.

Member Function Documentation

◆ ExecuteFinalizeSolutionStep()

def from_json_check_result_process.FromJsonCheckResultProcess.ExecuteFinalizeSolutionStep (   self)

This method is executed in order to finalize the current step.

   Here the dictionary containing the solution is filled

   Keyword arguments:
   self -- It signifies an instance of a class.

◆ ExecuteInitialize()

def from_json_check_result_process.FromJsonCheckResultProcess.ExecuteInitialize (   self)

This method is executed at the beginning to initialize the process.

   Keyword arguments:
   self -- It signifies an instance of a class.

Member Data Documentation

◆ process

from_json_check_result_process.FromJsonCheckResultProcess.process

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