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.
Classes | Functions | Variables
cube_mesher Namespace Reference

Classes

class  box_data
 

Functions

def node_x (box, position)
 
def node_y (box, position)
 
def node_z (box, position)
 
def node_z_tanh (box, position, w)
 
def node_y_tanh (box, position, w)
 
def write_header (mdpa)
 
def generate_nodes (mdpa, box, x_scale=node_x, y_scale=node_y, z_scale=node_z)
 
def generate_elements (mdpa, box, elemtype="FractionalStep3D", prop_id=0)
 
def generate_front_faces (mdpa, box, index, condtype="WallCondition3D", prop_id=0)
 
def generate_back_faces (mdpa, box, index, condtype="WallCondition3D", prop_id=0)
 
def generate_right_faces (mdpa, box, index, condtype="WallCondition3D", prop_id=0)
 
def generate_left_faces (mdpa, box, index, condtype="WallCondition3D", prop_id=0)
 
def generate_bottom_faces (mdpa, box, index, condtype="WallCondition3D", prop_id=0)
 
def generate_top_faces (mdpa, box, index, condtype="WallCondition3D", prop_id=0)
 
def generate_x_periodic_faces (mdpa, box, index, condtype="PeriodicCondition", prop_id=0)
 
def generate_y_periodic_faces (mdpa, box, index, condtype="PeriodicCondition", prop_id=0)
 
def generate_z_periodic_faces (mdpa, box, index, condtype="PeriodicCondition", prop_id=0)
 
def generate_xy_periodic_edges (mdpa, box, index, condtype="PeriodicConditionEdge", prop_id=0)
 
def generate_xz_periodic_edges (mdpa, box, index, condtype="PeriodicConditionEdge", prop_id=0)
 
def generate_yz_periodic_edges (mdpa, box, index, condtype="PeriodicConditionEdge", prop_id=0)
 
def generate_periodic_corners (mdpa, box, index, condtype="PeriodiConditionCorner", prop_id=0)
 
def generate_conditions (mdpa, box, condtype="WallCondition3D", periodic_facetype="PeriodicCondition", periodic_edgetype="PeriodicConditionEdge", periodic_cornertype="PeriodicConditionCorner", prop_id=0)
 
def generate_mesh_groups (mdpa, box)
 
def generate_sub_model_parts (mdpa, box)
 
def y_scale_func (box, position)
 
def z_scale_func (box, position)
 

Variables

 nx = int(sys.argv[1])
 
 ny = int(sys.argv[2])
 
 nz = int(sys.argv[3])
 
float xmin = 0.0
 
float xmax = 6.2832
 
float ymin = 0.0
 
float ymax = 2.0944
 
float zmin = 0.0
 
float zmax = 2.0
 
 box = box_data(xmin, ymin, zmin, xmax, ymax, zmax, nx, ny, nz)
 
 x_periodic
 
 elemtype = sys.argv[4]
 
string condtype = "WallCondition3D"
 
string filename = "box_{0}x{1}x{2}.mdpa".format(nx, ny, nz)
 
 mdpa
 
 y_scale
 
 y_scale_func
 
 z_scale
 

Function Documentation

◆ generate_back_faces()

def cube_mesher.generate_back_faces (   mdpa,
  box,
  index,
  condtype = "WallCondition3D",
  prop_id = 0 
)

◆ generate_bottom_faces()

def cube_mesher.generate_bottom_faces (   mdpa,
  box,
  index,
  condtype = "WallCondition3D",
  prop_id = 0 
)

◆ generate_conditions()

def cube_mesher.generate_conditions (   mdpa,
  box,
  condtype = "WallCondition3D",
  periodic_facetype = "PeriodicCondition",
  periodic_edgetype = "PeriodicConditionEdge",
  periodic_cornertype = "PeriodicConditionCorner",
  prop_id = 0 
)

◆ generate_elements()

def cube_mesher.generate_elements (   mdpa,
  box,
  elemtype = "FractionalStep3D",
  prop_id = 0 
)

◆ generate_front_faces()

def cube_mesher.generate_front_faces (   mdpa,
  box,
  index,
  condtype = "WallCondition3D",
  prop_id = 0 
)

◆ generate_left_faces()

def cube_mesher.generate_left_faces (   mdpa,
  box,
  index,
  condtype = "WallCondition3D",
  prop_id = 0 
)

◆ generate_mesh_groups()

def cube_mesher.generate_mesh_groups (   mdpa,
  box 
)

◆ generate_nodes()

def cube_mesher.generate_nodes (   mdpa,
  box,
  x_scale = node_x,
  y_scale = node_y,
  z_scale = node_z 
)

◆ generate_periodic_corners()

def cube_mesher.generate_periodic_corners (   mdpa,
  box,
  index,
  condtype = "PeriodiConditionCorner",
  prop_id = 0 
)

◆ generate_right_faces()

def cube_mesher.generate_right_faces (   mdpa,
  box,
  index,
  condtype = "WallCondition3D",
  prop_id = 0 
)

◆ generate_sub_model_parts()

def cube_mesher.generate_sub_model_parts (   mdpa,
  box 
)

◆ generate_top_faces()

def cube_mesher.generate_top_faces (   mdpa,
  box,
  index,
  condtype = "WallCondition3D",
  prop_id = 0 
)

◆ generate_x_periodic_faces()

def cube_mesher.generate_x_periodic_faces (   mdpa,
  box,
  index,
  condtype = "PeriodicCondition",
  prop_id = 0 
)

◆ generate_xy_periodic_edges()

def cube_mesher.generate_xy_periodic_edges (   mdpa,
  box,
  index,
  condtype = "PeriodicConditionEdge",
  prop_id = 0 
)

◆ generate_xz_periodic_edges()

def cube_mesher.generate_xz_periodic_edges (   mdpa,
  box,
  index,
  condtype = "PeriodicConditionEdge",
  prop_id = 0 
)

◆ generate_y_periodic_faces()

def cube_mesher.generate_y_periodic_faces (   mdpa,
  box,
  index,
  condtype = "PeriodicCondition",
  prop_id = 0 
)

◆ generate_yz_periodic_edges()

def cube_mesher.generate_yz_periodic_edges (   mdpa,
  box,
  index,
  condtype = "PeriodicConditionEdge",
  prop_id = 0 
)

◆ generate_z_periodic_faces()

def cube_mesher.generate_z_periodic_faces (   mdpa,
  box,
  index,
  condtype = "PeriodicCondition",
  prop_id = 0 
)

◆ node_x()

def cube_mesher.node_x (   box,
  position 
)

◆ node_y()

def cube_mesher.node_y (   box,
  position 
)

◆ node_y_tanh()

def cube_mesher.node_y_tanh (   box,
  position,
  w 
)

◆ node_z()

def cube_mesher.node_z (   box,
  position 
)

◆ node_z_tanh()

def cube_mesher.node_z_tanh (   box,
  position,
  w 
)

◆ write_header()

def cube_mesher.write_header (   mdpa)

◆ y_scale_func()

def cube_mesher.y_scale_func (   box,
  position 
)

◆ z_scale_func()

def cube_mesher.z_scale_func (   box,
  position 
)

Variable Documentation

◆ box

cube_mesher.box = box_data(xmin, ymin, zmin, xmax, ymax, zmax, nx, ny, nz)

◆ condtype

string cube_mesher.condtype = "WallCondition3D"

◆ elemtype

string cube_mesher.elemtype = sys.argv[4]

◆ filename

string cube_mesher.filename = "box_{0}x{1}x{2}.mdpa".format(nx, ny, nz)

◆ mdpa

cube_mesher.mdpa

◆ nx

cube_mesher.nx = int(sys.argv[1])

◆ ny

cube_mesher.ny = int(sys.argv[2])

◆ nz

cube_mesher.nz = int(sys.argv[3])

◆ x_periodic

cube_mesher.x_periodic

◆ xmax

float cube_mesher.xmax = 6.2832

◆ xmin

float cube_mesher.xmin = 0.0

◆ y_scale

cube_mesher.y_scale

◆ y_scale_func

cube_mesher.y_scale_func

◆ ymax

float cube_mesher.ymax = 2.0944

◆ ymin

float cube_mesher.ymin = 0.0

◆ z_scale

cube_mesher.z_scale

◆ zmax

float cube_mesher.zmax = 2.0

◆ zmin

float cube_mesher.zmin = 0.0