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.
Variables
read_stl Namespace Reference

Variables

string input_name = "Engine.stl"
 
 mesh = mesh.Mesh.from_multi_file(input_name)
 
 my_mp = KratosMultiphysics.ModelPart("skin")
 
 prop = my_mp.Properties[0]
 
int node_id = 1
 
int elem_id = 1
 
 n1 = my_mp.CreateNewNode(node_id, float(vertex[0]), float(vertex[1]), float(vertex[2]))
 
 n2 = my_mp.CreateNewNode(node_id, float(vertex[3]), float(vertex[4]), float(vertex[5]))
 
 n3 = my_mp.CreateNewNode(node_id, float(vertex[6]), float(vertex[7]), float(vertex[8]))
 
 el = my_mp.CreateNewElement("Element3D3N",elem_id, [n1.Id, n2.Id, n3.Id], prop)
 
 gid_output
 

Variable Documentation

◆ el

read_stl.el = my_mp.CreateNewElement("Element3D3N",elem_id, [n1.Id, n2.Id, n3.Id], prop)

◆ elem_id

int read_stl.elem_id = 1

◆ gid_output

read_stl.gid_output
Initial value:
1 = GiDOutputProcess(my_mp,
2  input_name,
3  KratosMultiphysics.Parameters()
4  )

◆ input_name

string read_stl.input_name = "Engine.stl"

◆ mesh

read_stl.mesh = mesh.Mesh.from_multi_file(input_name)

◆ my_mp

read_stl.my_mp = KratosMultiphysics.ModelPart("skin")

◆ n1

read_stl.n1 = my_mp.CreateNewNode(node_id, float(vertex[0]), float(vertex[1]), float(vertex[2]))

◆ n2

read_stl.n2 = my_mp.CreateNewNode(node_id, float(vertex[3]), float(vertex[4]), float(vertex[5]))

◆ n3

read_stl.n3 = my_mp.CreateNewNode(node_id, float(vertex[6]), float(vertex[7]), float(vertex[8]))

◆ node_id

int read_stl.node_id = 1

◆ prop

read_stl.prop = my_mp.Properties[0]