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

Functions

def BenchmarkCheck (time, model_part)
 

Variables

int domain_size = 2
 
string kratos_libs_path = '../../../../libs'
 
string kratos_applications_path = '../../../../applications/'
 
string kratos_benchmarking_path = '../../../../benchmarking'
 
 model_part = ModelPart("FluidPart")
 
 thermal_settings = ConvectionDiffusionSettings()
 
string input_file_name = "square"
 
 gid_mode = GiDPostMode.GiD_PostBinary
 
 multifile = MultiFileFlag.MultipleFiles
 
 deformed_mesh_flag = WriteDeformedMeshFlag.WriteUndeformed
 
 write_conditions = WriteConditionsFlag.WriteElementsOnly
 
 gid_io = GidIO(input_file_name, gid_mode, multifile, deformed_mesh_flag, write_conditions)
 
 model_part_io_fluid = ModelPartIO(input_file_name)
 
float mesh_name = 0.0
 
 vel = Vector(3);
 
float xc = 1.00 / 6.00
 
float yc = 1.00 / 6.00
 
float sigma = 0.2
 
tuple X1 = (node.X - xc) / sigma
 
tuple X2 = (node.Y - yc) / sigma
 
float temp = 0.25 * (1.00 + math.cos(math.pi * X1)) * (1.00+math.cos(math.pi*X2))
 
int output_step = 20
 
float delta_t = 2.00 * math.pi / 200.0;
 
int out = 0
 
int time_old_print = 0
 
float time = 0.0
 
float max_time = 7.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);
 
 scalar_var_convected
 
float time_to_print = time - time_old_print
 

Function Documentation

◆ BenchmarkCheck()

def rotatingcone_PureConvectionBenchmarking.BenchmarkCheck (   time,
  model_part 
)

Variable Documentation

◆ convection_linear_solver

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

◆ convection_order

int rotatingcone_PureConvectionBenchmarking.convection_order = 2

◆ convection_solver

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

◆ deformed_mesh_flag

rotatingcone_PureConvectionBenchmarking.deformed_mesh_flag = WriteDeformedMeshFlag.WriteUndeformed

◆ delta_t

float rotatingcone_PureConvectionBenchmarking.delta_t = 2.00 * math.pi / 200.0;

◆ domain_size

int rotatingcone_PureConvectionBenchmarking.domain_size = 2

◆ gid_io

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

◆ gid_mode

rotatingcone_PureConvectionBenchmarking.gid_mode = GiDPostMode.GiD_PostBinary

◆ input_file_name

string rotatingcone_PureConvectionBenchmarking.input_file_name = "square"

◆ kratos_applications_path

string rotatingcone_PureConvectionBenchmarking.kratos_applications_path = '../../../../applications/'

◆ kratos_benchmarking_path

string rotatingcone_PureConvectionBenchmarking.kratos_benchmarking_path = '../../../../benchmarking'

◆ kratos_libs_path

string rotatingcone_PureConvectionBenchmarking.kratos_libs_path = '../../../../libs'

◆ max_time

float rotatingcone_PureConvectionBenchmarking.max_time = 7.0

◆ mesh_name

float rotatingcone_PureConvectionBenchmarking.mesh_name = 0.0

◆ model_part

rotatingcone_PureConvectionBenchmarking.model_part = ModelPart("FluidPart")

◆ model_part_io_fluid

rotatingcone_PureConvectionBenchmarking.model_part_io_fluid = ModelPartIO(input_file_name)

◆ multifile

rotatingcone_PureConvectionBenchmarking.multifile = MultiFileFlag.MultipleFiles

◆ neighbour_finder

rotatingcone_PureConvectionBenchmarking.neighbour_finder = FindNodalNeighboursProcess(model_part);

◆ out

int rotatingcone_PureConvectionBenchmarking.out = 0

◆ output_step

int rotatingcone_PureConvectionBenchmarking.output_step = 20

◆ pConvPrecond

rotatingcone_PureConvectionBenchmarking.pConvPrecond = DiagonalPreconditioner()

◆ scalar_var_convected

rotatingcone_PureConvectionBenchmarking.scalar_var_convected

◆ sigma

float rotatingcone_PureConvectionBenchmarking.sigma = 0.2

◆ step

int rotatingcone_PureConvectionBenchmarking.step = 0

◆ temp

float rotatingcone_PureConvectionBenchmarking.temp = 0.25 * (1.00 + math.cos(math.pi * X1)) * (1.00+math.cos(math.pi*X2))

◆ thermal_settings

rotatingcone_PureConvectionBenchmarking.thermal_settings = ConvectionDiffusionSettings()

◆ time

int rotatingcone_PureConvectionBenchmarking.time = 0.0

◆ time_old_print

float rotatingcone_PureConvectionBenchmarking.time_old_print = 0

◆ time_to_print

float rotatingcone_PureConvectionBenchmarking.time_to_print = time - time_old_print

◆ vel

rotatingcone_PureConvectionBenchmarking.vel = Vector(3);

◆ write_conditions

rotatingcone_PureConvectionBenchmarking.write_conditions = WriteConditionsFlag.WriteElementsOnly

◆ X1

tuple rotatingcone_PureConvectionBenchmarking.X1 = (node.X - xc) / sigma

◆ X2

tuple rotatingcone_PureConvectionBenchmarking.X2 = (node.Y - yc) / sigma

◆ xc

float rotatingcone_PureConvectionBenchmarking.xc = 1.00 / 6.00

◆ yc

float rotatingcone_PureConvectionBenchmarking.yc = 1.00 / 6.00