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

Functions

def PrintSurfaceLevel (time, model_part, surfacelevelfilename)
 setting the domain size for the problem to be solved More...
 

Variables

int domain_size = 2
 
 Qcomp_model_part = ModelPart("pFluidPart");
 
 input_file_name = fluid_ulf_var.problem_name
 
 gid_mode = GiDPostMode.GiD_PostBinary
 
 multifile = MultiFileFlag.MultipleFiles
 
 deformed_mesh_flag = WriteDeformedMeshFlag.WriteDeformed
 
 write_conditions = WriteConditionsFlag.WriteConditions
 
 gid_io = GidIO(input_file_name,gid_mode,multifile,deformed_mesh_flag, write_conditions)
 
 model_part_io_origin = ModelPartIO(input_file_name)
 
 box_corner1 = Vector(3);
 
 box_corner2 = Vector(3);
 
float dynamic_tau = 0.0
 
 fluid_solver = runge_kutta_frac_step_solver.RungeKuttaFracStepSolver(Qcomp_model_part,domain_size, box_corner1, box_corner2)
 
 ReformDofAtEachIteration
 
 pILUPrecond = ILU0Preconditioner()
 
 pressure_linear_solver
 
float mesh_name = 0.0
 
int out = 0
 TIME. More...
 
int time = 0
 
int step = 0
 
float output_step = 0.000001
 
float next_output_time = output_step
 
float final_time = 1.0
 
 ulf_time_step_dec_process = UlfTimeStepDecProcess(Qcomp_model_part);
 
string outstring1 = "sensor_height.txt"
 
 outputfile1 = open(outstring1, 'w')
 
 out_file = outputfile1
 
float Dt = 0.005
 
 res_name3 = str("free_surface_flow")
 

Function Documentation

◆ PrintSurfaceLevel()

def example_script.PrintSurfaceLevel (   time,
  model_part,
  surfacelevelfilename 
)

setting the domain size for the problem to be solved

Variable Documentation

◆ box_corner1

example_script.box_corner1 = Vector(3);

◆ box_corner2

example_script.box_corner2 = Vector(3);

◆ deformed_mesh_flag

example_script.deformed_mesh_flag = WriteDeformedMeshFlag.WriteDeformed

◆ domain_size

int example_script.domain_size = 2

◆ Dt

float example_script.Dt = 0.005

◆ dynamic_tau

float example_script.dynamic_tau = 0.0

◆ final_time

float example_script.final_time = 1.0

◆ fluid_solver

◆ gid_io

◆ gid_mode

example_script.gid_mode = GiDPostMode.GiD_PostBinary

◆ input_file_name

example_script.input_file_name = fluid_ulf_var.problem_name

◆ mesh_name

float example_script.mesh_name = 0.0

◆ model_part_io_origin

example_script.model_part_io_origin = ModelPartIO(input_file_name)

◆ multifile

example_script.multifile = MultiFileFlag.MultipleFiles

◆ next_output_time

float example_script.next_output_time = output_step

◆ out

int example_script.out = 0

TIME.

◆ out_file

example_script.out_file = outputfile1

◆ output_step

float example_script.output_step = 0.000001

◆ outputfile1

example_script.outputfile1 = open(outstring1, 'w')

◆ outstring1

string example_script.outstring1 = "sensor_height.txt"

◆ pILUPrecond

example_script.pILUPrecond = ILU0Preconditioner()

◆ pressure_linear_solver

example_script.pressure_linear_solver

◆ Qcomp_model_part

example_script.Qcomp_model_part = ModelPart("pFluidPart");

◆ ReformDofAtEachIteration

example_script.ReformDofAtEachIteration

◆ res_name3

example_script.res_name3 = str("free_surface_flow")

◆ step

int example_script.step = 0

◆ time

int example_script.time = 0

◆ ulf_time_step_dec_process

example_script.ulf_time_step_dec_process = UlfTimeStepDecProcess(Qcomp_model_part);

◆ write_conditions

example_script.write_conditions = WriteConditionsFlag.WriteConditions