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 | Variables
test_pureconvectionsolver_benchmarking Namespace Reference

Functions

def BenchmarkCheck (time, model_part)
 

Variables

int domain_size = 2
 
string kratos_path = '../../../../'
 
string kratos_benchmarking_path = '../../../../benchmarking'
 
 model_part = ModelPart("FluidPart")
 
 thermal_settings = ConvectionDiffusionSettings()
 
 input_file_name = fluid_only_var.problem_name
 
 gid_mode = GiDPostMode.GiD_PostBinary
 
 multifile = MultiFileFlag.SingleFile
 
 deformed_mesh_flag = WriteDeformedMeshFlag.WriteUndeformed
 
 write_conditions = WriteConditionsFlag.WriteConditions
 
 gid_io = GidIO(input_file_name, gid_mode, multifile, deformed_mesh_flag, write_conditions)
 
 model_part_io_fluid = ModelPartIO(input_file_name)
 
 zero = Vector(3)
 
float ext_press = 0.0
 
 velocity = zero[0]
 
float pressure = ext_press
 
float delta_t = 0.002
 
int time_old_print = 0
 
float time = 0.0
 
float max_time = 5.0
 
int step = 0
 
int convection_order = 2
 
 pConvPrecond = DiagonalPreconditioner()
 
 convection_linear_solver = BICGSTABSolver(1e-9, 5000, pConvPrecond)
 
 convection_solver = pure_convection_solver.PureConvectionSolver(model_part, domain_size, thermal_settings)
 
 neighbour_finder = FindNodalNeighboursProcess(model_part)
 
 number_of_extrapolation_layers
 
 ReformDofAtEachIteration
 
 scalar_var_convected
 
float mesh_name = time
 
float time_to_print = time - time_old_print
 

Function Documentation

◆ BenchmarkCheck()

def test_pureconvectionsolver_benchmarking.BenchmarkCheck (   time,
  model_part 
)

Variable Documentation

◆ convection_linear_solver

test_pureconvectionsolver_benchmarking.convection_linear_solver = BICGSTABSolver(1e-9, 5000, pConvPrecond)

◆ convection_order

int test_pureconvectionsolver_benchmarking.convection_order = 2

◆ convection_solver

test_pureconvectionsolver_benchmarking.convection_solver = pure_convection_solver.PureConvectionSolver(model_part, domain_size, thermal_settings)

◆ deformed_mesh_flag

test_pureconvectionsolver_benchmarking.deformed_mesh_flag = WriteDeformedMeshFlag.WriteUndeformed

◆ delta_t

float test_pureconvectionsolver_benchmarking.delta_t = 0.002

◆ domain_size

int test_pureconvectionsolver_benchmarking.domain_size = 2

◆ ext_press

float test_pureconvectionsolver_benchmarking.ext_press = 0.0

◆ gid_io

test_pureconvectionsolver_benchmarking.gid_io = GidIO(input_file_name, gid_mode, multifile, deformed_mesh_flag, write_conditions)

◆ gid_mode

test_pureconvectionsolver_benchmarking.gid_mode = GiDPostMode.GiD_PostBinary

◆ input_file_name

test_pureconvectionsolver_benchmarking.input_file_name = fluid_only_var.problem_name

◆ kratos_benchmarking_path

string test_pureconvectionsolver_benchmarking.kratos_benchmarking_path = '../../../../benchmarking'

◆ kratos_path

string test_pureconvectionsolver_benchmarking.kratos_path = '../../../../'

◆ max_time

float test_pureconvectionsolver_benchmarking.max_time = 5.0

◆ mesh_name

float test_pureconvectionsolver_benchmarking.mesh_name = time

◆ model_part

test_pureconvectionsolver_benchmarking.model_part = ModelPart("FluidPart")

◆ model_part_io_fluid

test_pureconvectionsolver_benchmarking.model_part_io_fluid = ModelPartIO(input_file_name)

◆ multifile

test_pureconvectionsolver_benchmarking.multifile = MultiFileFlag.SingleFile

◆ neighbour_finder

test_pureconvectionsolver_benchmarking.neighbour_finder = FindNodalNeighboursProcess(model_part)

◆ number_of_extrapolation_layers

test_pureconvectionsolver_benchmarking.number_of_extrapolation_layers

◆ pConvPrecond

test_pureconvectionsolver_benchmarking.pConvPrecond = DiagonalPreconditioner()

◆ pressure

float test_pureconvectionsolver_benchmarking.pressure = ext_press

◆ ReformDofAtEachIteration

test_pureconvectionsolver_benchmarking.ReformDofAtEachIteration

◆ scalar_var_convected

test_pureconvectionsolver_benchmarking.scalar_var_convected

◆ step

int test_pureconvectionsolver_benchmarking.step = 0

◆ thermal_settings

test_pureconvectionsolver_benchmarking.thermal_settings = ConvectionDiffusionSettings()

◆ time

int test_pureconvectionsolver_benchmarking.time = 0.0

◆ time_old_print

float test_pureconvectionsolver_benchmarking.time_old_print = 0

◆ time_to_print

float test_pureconvectionsolver_benchmarking.time_to_print = time - time_old_print

◆ velocity

test_pureconvectionsolver_benchmarking.velocity = zero[0]

◆ write_conditions

test_pureconvectionsolver_benchmarking.write_conditions = WriteConditionsFlag.WriteConditions

◆ zero

test_pureconvectionsolver_benchmarking.zero = Vector(3)