g3d.mesh package

Subpackages

Module contents

g3d/flow/mesh sub library

class g3d.mesh.G2DMesh(*args: Any, **kwargs: Any)[source]

Bases: MeshModule

Attributes:
blocks
return:

coordinates
return:

data
return:

data_file
return:

edges
return:

n_blocks
return:

n_cells
return:

n_nodes
return:

n_smooth
return:

nk3D
return:

nodes
return:

smooth_faces
return:

tag

tag (string) used for identification

tags
return:

Methods

add_BC(bc, **kwargs)

add_Block(ni[, nj, nk])

add_Coord(c)

add_Edge(e)

add_IO(io, **kwargs)

add_Intf(faceA_def, faceB_def, **kwargs)

add_smooth_face(face_def)

add_smooth_face_glue(faceA_def, faceB_def)

add_tag(key, tag)

cell_get_block(kc)

cell_get_ijk(kc)

check_volumes()

circular_edge(c, ni, **kwargs)

copy(e)

copies data from specified entity input: entity example: copy(e)

copy_Face(faceA_def, faceB_def)

copy_X(im_to, l_to, im_from, l_from)

copy_XYZ(im_to, l_to, im_from, l_from)

copy_Y(im_to, l_to, im_from, l_from)

copy_Z(im_to, l_to, im_from, l_from)

export(*args, **kwargs)

exports mesh to file :param args: arguments (BinaryFormat), optional :param kwargs: keyword value pairs, optional valid key values: 'format' binary_format (defaults to BinaryFormat.NATIVE)

export_connections([bcf])

generate_mesh()

get_X(im[, lp])

get_XYZ(im[, lp])

get_Y(im[, lp])

get_Z(im[, lp])

get_extreme_coordinates()

get_x_min_x_max()

get_y_min_y_max()

get_z_min_z_max()

header(*args, **kwargs)

prints a header with specified information input: info optional input: dashes (default='='), scrw (default=80), number of blank lines after dashes n_space (default=1) example: header(info='header info')

hline(*args, **kwargs)

prints horizontal line optional input (kwargs): dashes (default='-'), scrw (default=80) example: hline(dashes='*', scrw=90)

import_mesh(*args, **kwargs)

imports mesh from file :param args: arguments (BinaryFormat, file base name (str)), optional :param kwargs: keyword value pairs, optional valid key values: 'format' binary_format (defaults to BinaryFormat.NATIVE), 'msh_file' -> filename, 'topo_file' -> filename

jobname_append(name)

extends jobname with the specified string input: name example: jobname_append(name)

node_get_block(kp)

node_get_ijk(kp)

populate_face_coordinate_placeholders(im, b)

print()

prints entity data

scale(sf)

set(*args, **kwargs)

sets code parameters according to specifications input: args, kwargs example: set(args, kwargs)

set_X(im, X[, lp])

set_XYZ(im, X, Y, Z[, lp])

set_Y(im, Y[, lp])

set_Z(im, Z[, lp])

set_from_key_value(key, value)

sets code parameters from specified key => value data input: key, value valid keys for G3DCode base class: 'verbose', 'silent/quiet', 'jobname', 'working_directory', 'dimension', 'cuda', 'prof' example: set_from_key_value(key, value)

smooth([N])

allocate_arrays

export_3D_connections

fill

glue_blocks

nullify_boundary_lists

nullify_smooth_faces

plot_edges

plot_edges_XY

plot_edges_XZ

plot_edges_YZ

plot_module_edges

print_coordinates

print_extreme_values

redefine_ghosts

reset_coordinates

reset_edges

class g3d.mesh.G3DMesh(*args: Any, **kwargs: Any)[source]

Bases: MeshModule

Attributes:
blocks
return:

coordinates
return:

data
return:

data_file
return:

edges
return:

n_blocks
return:

n_cells
return:

n_nodes
return:

n_smooth
return:

nk3D
return:

nodes
return:

smooth_faces
return:

tag

tag (string) used for identification

tags
return:

Methods

add_BC(bc, **kwargs)

add_Block(ni[, nj, nk])

add_Coord(c)

add_Edge(e)

add_IO(io, **kwargs)

add_Intf(faceA_def, faceB_def, **kwargs)

add_smooth_face(face_def)

add_smooth_face_glue(faceA_def, faceB_def)

add_tag(key, tag)

cell_get_block(kc)

cell_get_ijk(kc)

check_volumes()

circular_edge(c, ni, **kwargs)

copy(e)

copies data from specified entity input: entity example: copy(e)

copy_Face(faceA_def, faceB_def)

copy_X(im_to, l_to, im_from, l_from)

copy_XYZ(im_to, l_to, im_from, l_from)

copy_Y(im_to, l_to, im_from, l_from)

copy_Z(im_to, l_to, im_from, l_from)

export(*args, **kwargs)

exports mesh to file :param args: arguments (BinaryFormat), optional :param kwargs: keyword value pairs, optional valid key values: 'format' binary_format (defaults to BinaryFormat.NATIVE)

export_connections([bcf])

generate_mesh()

get_X(im[, lp])

get_XYZ(im[, lp])

get_Y(im[, lp])

get_Z(im[, lp])

get_extreme_coordinates()

get_x_min_x_max()

get_y_min_y_max()

get_z_min_z_max()

header(*args, **kwargs)

prints a header with specified information input: info optional input: dashes (default='='), scrw (default=80), number of blank lines after dashes n_space (default=1) example: header(info='header info')

hline(*args, **kwargs)

prints horizontal line optional input (kwargs): dashes (default='-'), scrw (default=80) example: hline(dashes='*', scrw=90)

import_mesh(*args, **kwargs)

imports mesh from file :param args: arguments (BinaryFormat, file base name (str)), optional :param kwargs: keyword value pairs, optional valid key values: 'format' binary_format (defaults to BinaryFormat.NATIVE), 'msh_file' -> filename, 'topo_file' -> filename

jobname_append(name)

extends jobname with the specified string input: name example: jobname_append(name)

node_get_block(kp)

node_get_ijk(kp)

populate_face_coordinate_placeholders(im, b)

print()

prints entity data

scale(sf)

set(*args, **kwargs)

sets code parameters according to specifications input: args, kwargs example: set(args, kwargs)

set_X(im, X[, lp])

set_XYZ(im, X, Y, Z[, lp])

set_Y(im, Y[, lp])

set_Z(im, Z[, lp])

set_from_key_value(key, value)

sets code parameters from specified key => value data input: key, value valid keys for G3DCode base class: 'verbose', 'silent/quiet', 'jobname', 'working_directory', 'dimension', 'cuda', 'prof' example: set_from_key_value(key, value)

smooth([N])

allocate_arrays

export_3D_connections

fill

glue_blocks

nullify_boundary_lists

nullify_smooth_faces

plot_edges

plot_edges_XY

plot_edges_XZ

plot_edges_YZ

plot_module_edges

print_coordinates

print_extreme_values

redefine_ghosts

reset_coordinates

reset_edges