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 | |
def | BenchmarkCheck (time, model_part) |
Variables | |
domain_size = edgebased_var.domain_size | |
string | kratos_benchmarking_path = '../../../../benchmarking' |
fluid_model_part = ModelPart("FluidPart") | |
input_file_name = edgebased_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) | |
int | number_of_avg_elems = 10 |
int | number_of_avg_nodes = 10 |
neighbour_search = FindNodalNeighboursProcess(fluid_model_part) | |
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 | dist = 0.25 * (1.00 + math.cos(math.pi * X1)) * (1.00+math.cos(math.pi*X2)) |
matrix_container = MatrixContainer2D() | |
convection_solver = PureConvectionEdgeBased2D(matrix_container, fluid_model_part) | |
max_Dt = edgebased_var.max_time_step | |
float | initial_Dt = 0.001 * max_Dt |
final_time = edgebased_var.max_time | |
output_dt = edgebased_var.output_dt | |
safety_factor = edgebased_var.safety_factor | |
number_of_inital_steps = edgebased_var.number_of_inital_steps | |
initial_time_step = edgebased_var.initial_time_step | |
int | out = 0 |
ProcessInfo = fluid_model_part.ProcessInfo | |
float | mesh_name = 0.0 |
max_safety_factor = safety_factor | |
float | time = 0.0 |
int | step = 0 |
next_output_time = output_dt | |
Dt = ProcessInfo[DELTA_TIME] | |
def edgebased_PureConvection.BenchmarkCheck | ( | time, | |
model_part | |||
) |
edgebased_PureConvection.convection_solver = PureConvectionEdgeBased2D(matrix_container, fluid_model_part) |
edgebased_PureConvection.deformed_mesh_flag = WriteDeformedMeshFlag.WriteUndeformed |
float edgebased_PureConvection.dist = 0.25 * (1.00 + math.cos(math.pi * X1)) * (1.00+math.cos(math.pi*X2)) |
edgebased_PureConvection.domain_size = edgebased_var.domain_size |
edgebased_PureConvection.Dt = ProcessInfo[DELTA_TIME] |
edgebased_PureConvection.final_time = edgebased_var.max_time |
edgebased_PureConvection.fluid_model_part = ModelPart("FluidPart") |
edgebased_PureConvection.gid_io = GidIO(input_file_name, gid_mode, multifile, deformed_mesh_flag, write_conditions) |
edgebased_PureConvection.gid_mode = GiDPostMode.GiD_PostBinary |
float edgebased_PureConvection.initial_Dt = 0.001 * max_Dt |
edgebased_PureConvection.initial_time_step = edgebased_var.initial_time_step |
edgebased_PureConvection.input_file_name = edgebased_var.problem_name |
string edgebased_PureConvection.kratos_benchmarking_path = '../../../../benchmarking' |
edgebased_PureConvection.matrix_container = MatrixContainer2D() |
edgebased_PureConvection.max_Dt = edgebased_var.max_time_step |
edgebased_PureConvection.max_safety_factor = safety_factor |
float edgebased_PureConvection.mesh_name = 0.0 |
edgebased_PureConvection.model_part_io_fluid = ModelPartIO(input_file_name) |
edgebased_PureConvection.multifile = MultiFileFlag.SingleFile |
edgebased_PureConvection.neighbour_search = FindNodalNeighboursProcess(fluid_model_part) |
float edgebased_PureConvection.next_output_time = output_dt |
int edgebased_PureConvection.number_of_avg_elems = 10 |
int edgebased_PureConvection.number_of_avg_nodes = 10 |
edgebased_PureConvection.number_of_inital_steps = edgebased_var.number_of_inital_steps |
int edgebased_PureConvection.out = 0 |
edgebased_PureConvection.output_dt = edgebased_var.output_dt |
edgebased_PureConvection.ProcessInfo = fluid_model_part.ProcessInfo |
edgebased_PureConvection.safety_factor = edgebased_var.safety_factor |
float edgebased_PureConvection.sigma = 0.2 |
int edgebased_PureConvection.step = 0 |
float edgebased_PureConvection.time = 0.0 |
edgebased_PureConvection.vel = Vector(3); |
edgebased_PureConvection.write_conditions = WriteConditionsFlag.WriteConditions |
float edgebased_PureConvection.xc = 1.00 / 6.00 |
float edgebased_PureConvection.yc = 1.00 / 6.00 |