g3d.mesh package
Subpackages
- g3d.mesh.geo package
- Subpackages
- g3d.mesh.geo.region package
- Submodules
- g3d.mesh.geo.region.block_region module
- g3d.mesh.geo.region.box_region module
- g3d.mesh.geo.region.cylinder_region module
- g3d.mesh.geo.region.ijk_region module
- g3d.mesh.geo.region.prism_region module
- g3d.mesh.geo.region.region module
- g3d.mesh.geo.region.sphere_region module
- g3d.mesh.geo.region.xyz_region module
- Module contents
- g3d.mesh.geo.region package
- Submodules
- g3d.mesh.geo.block module
BlockBlock.add_Coord()Block.add_Edge()Block.allocate()Block.allocate_XYZ()Block.allocate_smooth_delta()Block.apply_face_coordinates()Block.cell_get_ijk()Block.check_face_block_bounds()Block.check_volumes()Block.chighBlock.clowBlock.coordinatesBlock.copy()Block.copy_rotate_Edge()Block.copy_rotate_Face()Block.edgesBlock.export_XY()Block.export_XYZ()Block.extrude_Face()Block.face_offset()Block.filenameBlock.fill()Block.fill_2D()Block.fill_Face()Block.get_Coord()Block.get_Coord_by_tag()Block.get_Coord_from_IJK()Block.get_Edge()Block.get_Edge_by_tag()Block.get_Face()Block.get_XYZ_from_IJK()Block.get_X_from_IJK()Block.get_Y_from_IJK()Block.get_Z_from_IJK()Block.get_block_sizes()Block.get_cell()Block.get_cell_pointers()Block.get_def()Block.get_delta_arrays()Block.get_face_pointers()Block.get_glue_pointers()Block.get_index()Block.get_node()Block.get_node_pointers()Block.imBlock.import_XY()Block.import_XYZ()Block.init_Face_list()Block.n_cellsBlock.n_nodesBlock.nhighBlock.niBlock.njBlock.nkBlock.nlowBlock.nmcBlock.nmpBlock.node_get_ijk()Block.populate_face_coordinate_placeholders()Block.posBlock.print()Block.print_XYZ()Block.remove_Coord_by_tag()Block.remove_Edge_by_tag()Block.reset_smooth_delta()Block.rotate()Block.scale()Block.scatter_face_XYZ()Block.set_from_key_value()Block.shift()Block.shift_Face()Block.smooth_Face()Block.smooth_apply()Block.update_counts()
- g3d.mesh.geo.coord module
CoordCoord.add()Coord.alphaCoord.angle_dimCoord.betaCoord.copy()Coord.copy_coordinates()Coord.copy_settings()Coord.divide()Coord.get_angle()Coord.get_array()Coord.get_delta()Coord.get_dist()Coord.get_xyz()Coord.ialtCoord.length()Coord.multiply()Coord.print()Coord.rotate()Coord.scale()Coord.scatter_XY()Coord.scatter_XZ()Coord.scatter_YZ()Coord.set_coordinates()Coord.set_from_key_value()Coord.shape_factorCoord.shift()Coord.spacingCoord.subtract()Coord.xCoord.yCoord.z
- g3d.mesh.geo.coordinates module
CoordinatesCoordinates.XCoordinates.YCoordinates.ZCoordinates.allocate_XYZ()Coordinates.backup()Coordinates.backup_is_allocated()Coordinates.copy()Coordinates.copy_X()Coordinates.copy_XYZ()Coordinates.copy_Y()Coordinates.copy_Z()Coordinates.get_X()Coordinates.get_XYZ()Coordinates.get_Y()Coordinates.get_Z()Coordinates.get_extreme_values()Coordinates.get_from_backup()Coordinates.get_x_min_x_max()Coordinates.get_y_min_y_max()Coordinates.get_z_min_z_max()Coordinates.nullify()Coordinates.print_extreme_values()Coordinates.read_from_file()Coordinates.reset_XYZ()Coordinates.scale()Coordinates.scatter_XY()Coordinates.scatter_XZ()Coordinates.scatter_YZ()Coordinates.set_X()Coordinates.set_XYZ()Coordinates.set_Y()Coordinates.set_Z()Coordinates.set_from_key_value()Coordinates.sizeCoordinates.write_to_file()Coordinates.x_maxCoordinates.x_minCoordinates.y_maxCoordinates.y_minCoordinates.z_maxCoordinates.z_min
- g3d.mesh.geo.edge module
EdgeEdge.allocate_XYZ()Edge.alphaEdge.angle_dimEdge.append()Edge.appliedEdge.axisEdge.betaEdge.copy()Edge.copy_def()Edge.copy_settings()Edge.dataEdge.define_Edge()Edge.directionEdge.distributeEdge.distribute_nodes()Edge.endEdge.find_index()Edge.generate_offset_Edge()Edge.get_Coord()Edge.get_angle()Edge.get_def()Edge.get_spacing()Edge.get_sub()Edge.get_tangent()Edge.h0Edge.h1Edge.i0Edge.ialtEdge.idirEdge.j0Edge.k0Edge.npiEdge.prepend()Edge.print()Edge.re_distribute_nodes()Edge.rotate()Edge.set_coordinates()Edge.set_end_Coord()Edge.set_from_key_value()Edge.set_start_Coord()Edge.set_start_end_Coord()Edge.shift()Edge.startEdge.stretch_rateEdge.toleranceEdge.update_end_Coord()Edge.update_start_Coord()
- g3d.mesh.geo.face module
FaceFace.FMPFace.FMP_sizeFace.allocate_FMP()Face.allocate_XYZ()Face.alphaFace.checkFace.check_FMP_cell_metrics()Face.copy()Face.copy_def()Face.deallocate_FMP()Face.deltaFace.face_typeFace.generate_offset_Face()Face.get_cell_count()Face.get_def()Face.get_delta()Face.get_face_count()Face.get_index()Face.get_node()Face.get_node_count()Face.i0Face.idirFace.imFace.itFace.j0Face.jdirFace.k0Face.npiFace.npjFace.print()Face.read_def_from_file()Face.rotate()Face.set_def()Face.set_from_key_value()Face.shift()Face.swap_normal()
Glue
- g3d.mesh.geo.grid module
GridGrid.add_BC()Grid.add_Block()Grid.add_IO()Grid.add_Intf()Grid.add_smooth_face()Grid.add_smooth_face_glue()Grid.allocate_arrays()Grid.blocksGrid.cell_get_block()Grid.cell_get_ijk()Grid.check_volumes()Grid.copy_Face()Grid.copy_X()Grid.copy_XYZ()Grid.copy_Y()Grid.copy_Z()Grid.export()Grid.export_connections()Grid.fill()Grid.get_X()Grid.get_XYZ()Grid.get_Y()Grid.get_Z()Grid.get_extreme_coordinates()Grid.get_x_min_x_max()Grid.get_y_min_y_max()Grid.get_z_min_z_max()Grid.glue_blocks()Grid.import_mesh()Grid.n_blocksGrid.n_cellsGrid.n_nodesGrid.node_get_block()Grid.node_get_ijk()Grid.nodesGrid.nullify_boundary_lists()Grid.nullify_smooth_faces()Grid.plot_edges_XY()Grid.plot_edges_XZ()Grid.plot_edges_YZ()Grid.populate_face_coordinate_placeholders()Grid.print()Grid.print_extreme_values()Grid.redefine_ghosts()Grid.scale()Grid.set_X()Grid.set_XYZ()Grid.set_Y()Grid.set_Z()Grid.set_from_key_value()Grid.smooth()
- g3d.mesh.geo.interp module
- Module contents
BlockBlock.add_Coord()Block.add_Edge()Block.allocate()Block.allocate_XYZ()Block.allocate_smooth_delta()Block.apply_face_coordinates()Block.cell_get_ijk()Block.check_face_block_bounds()Block.check_volumes()Block.chighBlock.clowBlock.coordinatesBlock.copy()Block.copy_rotate_Edge()Block.copy_rotate_Face()Block.edgesBlock.export_XY()Block.export_XYZ()Block.extrude_Face()Block.face_offset()Block.filenameBlock.fill()Block.fill_2D()Block.fill_Face()Block.get_Coord()Block.get_Coord_by_tag()Block.get_Coord_from_IJK()Block.get_Edge()Block.get_Edge_by_tag()Block.get_Face()Block.get_XYZ_from_IJK()Block.get_X_from_IJK()Block.get_Y_from_IJK()Block.get_Z_from_IJK()Block.get_block_sizes()Block.get_cell()Block.get_cell_pointers()Block.get_def()Block.get_delta_arrays()Block.get_face_pointers()Block.get_glue_pointers()Block.get_index()Block.get_node()Block.get_node_pointers()Block.imBlock.import_XY()Block.import_XYZ()Block.init_Face_list()Block.n_cellsBlock.n_nodesBlock.nhighBlock.niBlock.njBlock.nkBlock.nlowBlock.nmcBlock.nmpBlock.node_get_ijk()Block.populate_face_coordinate_placeholders()Block.posBlock.print()Block.print_XYZ()Block.remove_Coord_by_tag()Block.remove_Edge_by_tag()Block.reset_smooth_delta()Block.rotate()Block.scale()Block.scatter_face_XYZ()Block.set_from_key_value()Block.shift()Block.shift_Face()Block.smooth_Face()Block.smooth_apply()Block.update_counts()
BlockRegionBoxRegionCoordCoord.add()Coord.alphaCoord.angle_dimCoord.betaCoord.copy()Coord.copy_coordinates()Coord.copy_settings()Coord.divide()Coord.get_angle()Coord.get_array()Coord.get_delta()Coord.get_dist()Coord.get_xyz()Coord.ialtCoord.length()Coord.multiply()Coord.print()Coord.rotate()Coord.scale()Coord.scatter_XY()Coord.scatter_XZ()Coord.scatter_YZ()Coord.set_coordinates()Coord.set_from_key_value()Coord.shape_factorCoord.shift()Coord.spacingCoord.subtract()Coord.xCoord.yCoord.z
CoordinatesCoordinates.XCoordinates.YCoordinates.ZCoordinates.allocate_XYZ()Coordinates.backup()Coordinates.backup_is_allocated()Coordinates.copy()Coordinates.copy_X()Coordinates.copy_XYZ()Coordinates.copy_Y()Coordinates.copy_Z()Coordinates.get_X()Coordinates.get_XYZ()Coordinates.get_Y()Coordinates.get_Z()Coordinates.get_extreme_values()Coordinates.get_from_backup()Coordinates.get_x_min_x_max()Coordinates.get_y_min_y_max()Coordinates.get_z_min_z_max()Coordinates.nullify()Coordinates.print_extreme_values()Coordinates.read_from_file()Coordinates.reset_XYZ()Coordinates.scale()Coordinates.scatter_XY()Coordinates.scatter_XZ()Coordinates.scatter_YZ()Coordinates.set_X()Coordinates.set_XYZ()Coordinates.set_Y()Coordinates.set_Z()Coordinates.set_from_key_value()Coordinates.sizeCoordinates.write_to_file()Coordinates.x_maxCoordinates.x_minCoordinates.y_maxCoordinates.y_minCoordinates.z_maxCoordinates.z_min
CylinderRegionEdgeEdge.allocate_XYZ()Edge.alphaEdge.angle_dimEdge.append()Edge.appliedEdge.axisEdge.betaEdge.copy()Edge.copy_def()Edge.copy_settings()Edge.dataEdge.define_Edge()Edge.directionEdge.distributeEdge.distribute_nodes()Edge.endEdge.find_index()Edge.generate_offset_Edge()Edge.get_Coord()Edge.get_angle()Edge.get_def()Edge.get_spacing()Edge.get_sub()Edge.get_tangent()Edge.h0Edge.h1Edge.i0Edge.ialtEdge.idirEdge.j0Edge.k0Edge.npiEdge.prepend()Edge.print()Edge.re_distribute_nodes()Edge.rotate()Edge.set_coordinates()Edge.set_end_Coord()Edge.set_from_key_value()Edge.set_start_Coord()Edge.set_start_end_Coord()Edge.shift()Edge.startEdge.stretch_rateEdge.toleranceEdge.update_end_Coord()Edge.update_start_Coord()
FaceFace.FMPFace.FMP_sizeFace.allocate_FMP()Face.allocate_XYZ()Face.alphaFace.checkFace.check_FMP_cell_metrics()Face.copy()Face.copy_def()Face.deallocate_FMP()Face.deltaFace.face_typeFace.generate_offset_Face()Face.get_cell_count()Face.get_def()Face.get_delta()Face.get_face_count()Face.get_index()Face.get_node()Face.get_node_count()Face.i0Face.idirFace.imFace.itFace.j0Face.jdirFace.k0Face.npiFace.npjFace.print()Face.read_def_from_file()Face.rotate()Face.set_def()Face.set_from_key_value()Face.shift()Face.swap_normal()
GlueGridGrid.add_BC()Grid.add_Block()Grid.add_IO()Grid.add_Intf()Grid.add_smooth_face()Grid.add_smooth_face_glue()Grid.allocate_arrays()Grid.blocksGrid.cell_get_block()Grid.cell_get_ijk()Grid.check_volumes()Grid.copy_Face()Grid.copy_X()Grid.copy_XYZ()Grid.copy_Y()Grid.copy_Z()Grid.export()Grid.export_connections()Grid.fill()Grid.get_X()Grid.get_XYZ()Grid.get_Y()Grid.get_Z()Grid.get_extreme_coordinates()Grid.get_x_min_x_max()Grid.get_y_min_y_max()Grid.get_z_min_z_max()Grid.glue_blocks()Grid.import_mesh()Grid.n_blocksGrid.n_cellsGrid.n_nodesGrid.node_get_block()Grid.node_get_ijk()Grid.nodesGrid.nullify_boundary_lists()Grid.nullify_smooth_faces()Grid.plot_edges_XY()Grid.plot_edges_XZ()Grid.plot_edges_YZ()Grid.populate_face_coordinate_placeholders()Grid.print()Grid.print_extreme_values()Grid.redefine_ghosts()Grid.scale()Grid.set_X()Grid.set_XYZ()Grid.set_Y()Grid.set_Z()Grid.set_from_key_value()Grid.smooth()
IJKRegionPrismRegionRegionSphereRegionXYZRegion
- Subpackages
- g3d.mesh.modules package
- Submodules
- g3d.mesh.modules.block module
- g3d.mesh.modules.channel module
ChannelModuleChannelModule.HChannelModule.LChannelModule.MChannelModule.ReChannelModule.Re_tauChannelModule.WChannelModule.de_plusify()ChannelModule.deltaChannelModule.dxChannelModule.dx_pChannelModule.dy_pChannelModule.dzChannelModule.dz_pChannelModule.flow_dataChannelModule.plusify()ChannelModule.print()ChannelModule.rhoChannelModule.tau_wChannelModule.u_tau
- g3d.mesh.modules.g3dmesh module
- g3d.mesh.modules.generic module
MeshModuleMeshModule.add_Coord()MeshModule.add_Edge()MeshModule.add_tag()MeshModule.circular_edge()MeshModule.coordinatesMeshModule.dataMeshModule.data_fileMeshModule.edgesMeshModule.export_3D_connections()MeshModule.generate_mesh()MeshModule.n_smoothMeshModule.nk3DMeshModule.plot_edges()MeshModule.plot_module_edges()MeshModule.print_coordinates()MeshModule.reset_coordinates()MeshModule.reset_edges()MeshModule.set_from_key_value()MeshModule.smooth_facesMeshModule.tags
- g3d.mesh.modules.hump module
DomainTypeHumpModuleHumpModule.dxf_controlHumpModule.dy_wallHumpModule.n_control_linesHumpModule.niHumpModule.njHumpModule.nj_wall_offsetHumpModule.nkHumpModule.set_from_key_value()HumpModule.shape_controlHumpModule.stretch_rate_xHumpModule.stretch_rate_yHumpModule.top_spacing_factorHumpModule.x1HumpModule.x2HumpModule.x_controlHumpModule.y1HumpModule.y2HumpModule.z1HumpModule.z2
- g3d.mesh.modules.ogv module
OGVModuleOGVModule.chordOGVModule.export_3D_connections()OGVModule.idx_leOGVModule.idx_ps_leOGVModule.idx_ps_teOGVModule.idx_ss_leOGVModule.idx_ss_teOGVModule.idx_teOGVModule.idx_x_maxOGVModule.idx_x_minOGVModule.idx_y_maxOGVModule.idx_y_minOGVModule.leOGVModule.leading_edgeOGVModule.lengthOGVModule.ni_chordOGVModule.ni_inlet_blockOGVModule.ni_leOGVModule.ni_outlet_blockOGVModule.ni_psOGVModule.ni_ssOGVModule.ni_teOGVModule.nj_o_gridOGVModule.nj_pitchOGVModule.o_grid_offsetOGVModule.ogv_edgeOGVModule.ogv_edge_offsetOGVModule.pitchOGVModule.pressure_side_edgeOGVModule.ps_leOGVModule.ps_teOGVModule.set_from_key_value()OGVModule.spanOGVModule.ss_leOGVModule.ss_teOGVModule.stretch_rate_xOGVModule.suction_side_edgeOGVModule.teOGVModule.trailing_edgeOGVModule.wall_resolutionOGVModule.x_inOGVModule.x_maxOGVModule.x_minOGVModule.x_outOGVModule.y_maxOGVModule.y_min
- g3d.mesh.modules.single_block_cylinder module
SingleBlockCylinderModuleSingleBlockCylinderModule.cylinder_lengthSingleBlockCylinderModule.cylinder_radiusSingleBlockCylinderModule.do_not_smooth_o_gridSingleBlockCylinderModule.inner_wake_cell_sizeSingleBlockCylinderModule.n_cells_externalSingleBlockCylinderModule.n_cells_half_freestreamSingleBlockCylinderModule.n_cells_half_inletSingleBlockCylinderModule.n_cells_half_outletSingleBlockCylinderModule.n_cells_o_gridSingleBlockCylinderModule.n_data_pointsSingleBlockCylinderModule.o_grid_radiusSingleBlockCylinderModule.o_grid_scale_factorSingleBlockCylinderModule.o_grid_shape_factorSingleBlockCylinderModule.o_grid_stretch_rateSingleBlockCylinderModule.outer_box_sizeSingleBlockCylinderModule.outer_wake_cell_sizeSingleBlockCylinderModule.set_from_key_value()SingleBlockCylinderModule.wall_cell_height
- Module contents
BlockModuleChannelModuleChannelModule.HChannelModule.LChannelModule.MChannelModule.ReChannelModule.Re_tauChannelModule.WChannelModule.de_plusify()ChannelModule.deltaChannelModule.dxChannelModule.dx_pChannelModule.dy_pChannelModule.dzChannelModule.dz_pChannelModule.flow_dataChannelModule.plusify()ChannelModule.print()ChannelModule.rhoChannelModule.tau_wChannelModule.u_tau
G2DMeshG3DMeshHumpModuleHumpModule.dxf_controlHumpModule.dy_wallHumpModule.n_control_linesHumpModule.niHumpModule.njHumpModule.nj_wall_offsetHumpModule.nkHumpModule.set_from_key_value()HumpModule.shape_controlHumpModule.stretch_rate_xHumpModule.stretch_rate_yHumpModule.top_spacing_factorHumpModule.x1HumpModule.x2HumpModule.x_controlHumpModule.y1HumpModule.y2HumpModule.z1HumpModule.z2
MeshModuleMeshModule.add_Coord()MeshModule.add_Edge()MeshModule.add_tag()MeshModule.circular_edge()MeshModule.coordinatesMeshModule.dataMeshModule.data_fileMeshModule.edgesMeshModule.export_3D_connections()MeshModule.generate_mesh()MeshModule.n_smoothMeshModule.nk3DMeshModule.plot_edges()MeshModule.plot_module_edges()MeshModule.print_coordinates()MeshModule.reset_coordinates()MeshModule.reset_edges()MeshModule.set_from_key_value()MeshModule.smooth_facesMeshModule.tags
OGVModuleOGVModule.chordOGVModule.export_3D_connections()OGVModule.idx_leOGVModule.idx_ps_leOGVModule.idx_ps_teOGVModule.idx_ss_leOGVModule.idx_ss_teOGVModule.idx_teOGVModule.idx_x_maxOGVModule.idx_x_minOGVModule.idx_y_maxOGVModule.idx_y_minOGVModule.leOGVModule.leading_edgeOGVModule.lengthOGVModule.ni_chordOGVModule.ni_inlet_blockOGVModule.ni_leOGVModule.ni_outlet_blockOGVModule.ni_psOGVModule.ni_ssOGVModule.ni_teOGVModule.nj_o_gridOGVModule.nj_pitchOGVModule.o_grid_offsetOGVModule.ogv_edgeOGVModule.ogv_edge_offsetOGVModule.pitchOGVModule.pressure_side_edgeOGVModule.ps_leOGVModule.ps_teOGVModule.set_from_key_value()OGVModule.spanOGVModule.ss_leOGVModule.ss_teOGVModule.stretch_rate_xOGVModule.suction_side_edgeOGVModule.teOGVModule.trailing_edgeOGVModule.wall_resolutionOGVModule.x_inOGVModule.x_maxOGVModule.x_minOGVModule.x_outOGVModule.y_maxOGVModule.y_min
SingleBlockCylinderModuleSingleBlockCylinderModule.cylinder_lengthSingleBlockCylinderModule.cylinder_radiusSingleBlockCylinderModule.do_not_smooth_o_gridSingleBlockCylinderModule.inner_wake_cell_sizeSingleBlockCylinderModule.n_cells_externalSingleBlockCylinderModule.n_cells_half_freestreamSingleBlockCylinderModule.n_cells_half_inletSingleBlockCylinderModule.n_cells_half_outletSingleBlockCylinderModule.n_cells_o_gridSingleBlockCylinderModule.n_data_pointsSingleBlockCylinderModule.o_grid_radiusSingleBlockCylinderModule.o_grid_scale_factorSingleBlockCylinderModule.o_grid_shape_factorSingleBlockCylinderModule.o_grid_stretch_rateSingleBlockCylinderModule.outer_box_sizeSingleBlockCylinderModule.outer_wake_cell_sizeSingleBlockCylinderModule.set_from_key_value()SingleBlockCylinderModule.wall_cell_height
- g3d.mesh.tests package
- g3d.mesh.tools package
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:
tagtag (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:
tagtag (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