Functions reference

Object class

This is a basic class for all geometrical objects. It also provides methods for setting boundary features and getting object structure information.

class Hybmesh.Object(sid, worker)
dims()

Returns integer array representing number of primitives in the object.

Returns:list of int
  • for Contour2D: [n_vertices, n_edges];
  • for Grid2D: [n_vertices, n_edges, n_cells];
  • for Surface3D: [n_vertices, n_edges, n_faces];
  • for Grid3D: [n_vertices, n_edges, n_faces, n_cells];
free()

Removes object from hybmesh context.

See details in hybmeshpack.hmscript.remove_geom().

raw_tab(what)

Returs plain 1D integer array representing a connectivity table.

Parameters:what – string
Returns:list of int

Certain connectivity table is defined in ‘what’ string. For acceptable table names see:

raw_vertices()

Returns plain 1D array of vertices coordinates.

Returns:list of double
  • for 2D object: [x0, y0, x1, y1, ...]
  • for 3D object: [x0, y0, z0, x1, y0, z1, ...]
set_btypes(btype, edges)

Sets boundary feature for a given list of boundary primitives indicies.

Parameters:
  • btype – int
  • edges – list of int

Global indexation of edges including non-boundary ones is used.

set_btypes_all(btype)

Sets constant boundary feature to all boundary primitives.

Parameters:btype – int

Object2D class

Basic class for 2D objects provides primitive geometric transformation routines.

class Hybmesh.Object2D(sid, worker)
move(dx, dy)

Moves object.

Parameters:
  • dx – double
  • dy – double

See details in hybmeshpack.hmscript.move_geom().

reflect(pnt1, pnt2)

Reflects object.

Parameters:
  • pnt1 – 2d point as [x, y]
  • pnt2 – 2d point as [x, y]

See details in hybmeshpack.hmscript.reflect_geom().

rotate(angle, center)

Rotates object.

Parameters:
  • angle – double
  • center – 2d point as [x, y]

See details in hybmeshpack.hmscript.rotate_geom().

scale(xpc, ypc, refp)

Scales object.

Parameters:
  • xpc – double
  • ypc – double
  • refp – 2d point as [x, y]

See details in hybmeshpack.hmscript.scale_geom().

Contour2D class

2D contour identifier. See also Hybmesh.Hybmesh.Object2D(), Hybmesh.Hybmesh.Object() for parent class members.

class Hybmesh.Contour2D(sid, worker)
deepcopy()

Creates deep copies of geometry objects.

Returns:CONTOUR2D

See details in hybmeshpack.hmscript.copy_geom().

domain_area()

Calculates area of the domain bounded by the contour.

Returns:double

See details in hybmeshpack.hmscript.domain_area().

get_point(vclosest=None, eclosest=None, cclosest=None)

Returns contour point closest to given one.

Parameters:
  • vclosest – 2d point as [x, y]
  • eclosest – 2d point as [x, y]
  • cclosest – 2d point as [x, y]
Returns:

2d point as [x, y]

See details in hybmeshpack.hmscript.get_point().

Grid2D class

2D grid identifier. See also Hybmesh.Hybmesh.Object2D(), Hybmesh.Hybmesh.Object() for parent class members.

class Hybmesh.Grid2D(sid, worker)
deepcopy()

Creates deep copies of geometry objects.

Returns:GRID2D

See details in hybmeshpack.hmscript.copy_geom().

skewness(threshold=0.7)

Returns {cell index: skewness value} pairs for each grid cell which skewness is greater than ‘threshold’.

Parameters:threshold – double
Returns:list of int, double pairs

Object3D class

Basic class for 3D objects

class Hybmesh.Object3D(sid, worker)
move(dx, dy, dz)

Moves object.

Parameters:
  • dx – double
  • dy – double
  • dz – double

See details in hybmeshpack.hmscript.move_geom().

scale(xpc, ypc, zpc, refp)

Scales object.

Parameters:
  • xpc – double
  • ypc – double
  • zpc – double
  • refp – 3d point as [x, y, z]

See details in hybmeshpack.hmscript.scale_geom().

Surface3D class

3D surface identifier. See also Hybmesh.Hybmesh.Object3D(), Hybmesh.Hybmesh.Object() for parent class members.

class Hybmesh.Surface3D(sid, worker)
deepcopy()

Creates deep copies of geometry objects.

Returns:SURFACE3D

See details in hybmeshpack.hmscript.copy_geom().

domain_volume()

Calculates area of closed domain bounded by the given surface.

Returns:double

See details in hybmeshpack.hmscript.domain_volume().

Grid3D class

3D surface identifier. See also Hybmesh.Hybmesh.Object3D(), Hybmesh.Hybmesh.Object() for parent class members.

class Hybmesh.Grid3D(sid, worker)
deepcopy()

Creates deep copies of geometry objects.

Returns:GRID3D

See details in hybmeshpack.hmscript.copy_geom().

Hybmesh superclass

General operations

class Hybmesh.Hybmesh
add_boundary_type(index, name)

Register boundary type name.

Parameters:
  • index – int
  • name – string
Returns:

int

See details in hybmeshpack.hmscript.add_boundary_type().

partition_segment(xstart, xend, hstart, hend, hinternal=[])

Makes a partition of numeric segment by given recommended step sizes at different locations.

Parameters:
  • xstart – double
  • xend – double
  • hstart – double
  • hend – double
  • hinternal – list of double
Returns:

list of double

See details in hybmeshpack.hmscript.partition_segment().

pick_contour(point, contset=[])

Returns contour closest to given point.

Parameters:
  • point – 2d point as [x, y]
  • contset – list of CONTOUR2D
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.pick_contour().

remove_all()

Completely removes all geometry objects and boundary types.

See details in hybmeshpack.hmscript.remove_all().

Callback manipulations

class Hybmesh.Hybmesh
assign_callback(cb)

Sets callback function.

Parameters:cb – function of (str, str, float, float)->int

cb returns 1 for cancel request and 0 otherwise

reset_callback()

Resets default silent callback

stdout_verbosity(verbosity)

Sets the console output verbosity level.

Parameters:verbosity – int

0 - silent [default], 1 - error reports, 2 - procedure start/end reports, 3 - progress bars.

Contour operations

class Hybmesh.Hybmesh
add_circ_contour(center, radius, n_arc, bnd=0)

Adds circle contour from given center and radius.

Parameters:
  • center – 2d point as [x, y]
  • radius – double
  • n_arc – int
  • bnd – int
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.add_circ_contour().

add_rect_contour(p0, p1, bnds=[0, 0, 0, 0])

Adds four point closed rectangular contour.

Parameters:
  • p0 – 2d point as [x, y]
  • p1 – 2d point as [x, y]
  • bnds – list of int
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.add_rect_contour().

clip_domain(dom1, dom2, operation, simplify=True)

Executes domain clipping procedure.

Parameters:
  • dom1 – OBJECT2D
  • dom2 – OBJECT2D
  • operation – string
  • simplify – boolean
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.clip_domain().

connect_subcontours(sources, fix, close='no', shiftnext=True)

Connects sequence of open contours into a single contour even if neighboring contours have no equal end points.

Parameters:
  • sources – list of CONTOUR2D
  • fix – list of int
  • close – string
  • shiftnext – boolean
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.connect_subcontours().

create_contour(points, bnds=[0])

Create singly connected contour from sequence of points.

Parameters:
  • points – list of 2d point as [x, y]
  • bnds – list of int
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.create_contour().

create_spline_contour(points, bnds=[0], nedges=100)

Creates singly connected contour as a parametric cubic spline.

Parameters:
  • points – list of 2d point as [x, y]
  • bnds – list of int
  • nedges – int
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.create_spline_contour().

decompose_contour(cont)

Returns set of simple singly connected contours built from input contour.

Parameters:cont – OBJECT2D
Returns:list of CONTOUR2D

See details in hybmeshpack.hmscript.decompose_contour().

extract_subcontours(source, points)

Extracts singly connected subcontours from given contour.

Parameters:
  • source – OBJECT2D
  • points – list of 2d point as [x, y]
Returns:

list of CONTOUR2D

See details in hybmeshpack.hmscript.extract_subcontours().

grid_bnd_to_contour(grid, simplify=True)

Extracts grid boundary to user contour.

Parameters:
  • grid – GRID2D
  • simplify – boolean
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.grid_bnd_to_contour().

matched_partition(cont, step, influence, ref_conts=[], ref_pts_sz=[], ref_pts=[], zero_angle=30.0, power=3.0)

Makes a contour partition with respect to other contours partitions and given reference points.

Parameters:
  • cont – OBJECT2D
  • step – double
  • influence – double
  • ref_conts – list of OBJECT2D
  • ref_pts_sz – list of double
  • ref_pts – list of 2d point as [x, y]
  • zero_angle – double
  • power – double
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.matched_partition().

partition_contour_const(cont, step=1.0, zero_angle=30.0, keep_bnd=False, nedges=-1, crosses=[], keep_pts=[], pstart=None, pend=None)

Makes connected contour partition.

Parameters:
  • cont – OBJECT2D
  • step – double
  • zero_angle – double
  • keep_bnd – boolean
  • nedges – int
  • crosses – list of OBJECT2D
  • keep_pts – list of 2d point as [x, y]
  • pstart – 2d point as [x, y]
  • pend – 2d point as [x, y]
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.partition_contour().

partition_contour_ref_lengths(cont, steps, ref_lengths, zero_angle=30.0, keep_bnd=False, nedges=-1, crosses=[], keep_pts=[], pstart=None, pend=None)

Makes connected contour partition.

Parameters:
  • cont – OBJECT2D
  • steps – list of double
  • ref_lengths – list of double
  • zero_angle – double
  • keep_bnd – boolean
  • nedges – int
  • crosses – list of OBJECT2D
  • keep_pts – list of 2d point as [x, y]
  • pstart – 2d point as [x, y]
  • pend – 2d point as [x, y]
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.partition_contour().

partition_contour_ref_points(cont, steps, ref_points, zero_angle=30.0, keep_bnd=False, nedges=-1, crosses=[], keep_pts=[], pstart=None, pend=None)

Makes connected contour partition.

Parameters:
  • cont – OBJECT2D
  • steps – list of double
  • ref_points – list of 2d point as [x, y]
  • zero_angle – double
  • keep_bnd – boolean
  • nedges – int
  • crosses – list of OBJECT2D
  • keep_pts – list of 2d point as [x, y]
  • pstart – 2d point as [x, y]
  • pend – 2d point as [x, y]
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.partition_contour().

simplify_contour(cont, zero_angle=0.0)

Separates and simplify user contour.

Parameters:
  • cont – OBJECT2D
  • zero_angle – double
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.simplify_contour().

unite_contours(contours)

Unites contours to single multiply connected contour.

Parameters:contours – list of OBJECT2D
Returns:CONTOUR2D

See details in hybmeshpack.hmscript.unite_contours().

2D grid operations

class Hybmesh.Hybmesh
add_circ_rect_grid(center, rad, step, sqrside=1.0, rcoef=1.0, algo='linear')

Creates quadrangular cell grid in a circular area.

Parameters:
  • center – 2d point as [x, y]
  • rad – double
  • step – double
  • sqrside – double
  • rcoef – double
  • algo – string
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_circ_rect_grid().

add_custom_rect_grid(algo, left, bottom, right=None, top=None, return_invalid=False)

Creates rectangular grid on the basis of four curvilinear contours using contour vertices for partition.

Parameters:
  • algo – string
  • left – CONTOUR2D
  • bottom – CONTOUR2D
  • right – CONTOUR2D
  • top – CONTOUR2D
  • return_invalid – boolean
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_custom_rect_grid().

add_custom_rect_grid_htfi(left, bottom, right=None, top=None, hermite_tfi_w=[1.0, 1.0, 1.0, 1.0], return_invalid=False)

Creates rectangular grid on the basis of four curvilinear contours using contour vertices for partition.

Parameters:
  • left – CONTOUR2D
  • bottom – CONTOUR2D
  • right – CONTOUR2D
  • top – CONTOUR2D
  • hermite_tfi_w – list of double
  • return_invalid – boolean
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_custom_rect_grid().

add_triangle_grid(p0, p1, p2, nedge, bnd=[0, 0, 0])

Creates structured grid in triangle area.

Parameters:
  • p0 – 2d point as [x, y]
  • p1 – 2d point as [x, y]
  • p2 – 2d point as [x, y]
  • nedge – int
  • bnd – list of int
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_triangle_grid().

add_unf_circ_grid(center, rad, na, nr, coef=1.0, is_trian=True, bnd=0)

Builds circular grid.

Parameters:
  • center – 2d point as [x, y]
  • rad – double
  • na – int
  • nr – int
  • coef – double
  • is_trian – boolean
  • bnd – int
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_unf_circ_grid().

add_unf_hex_grid_in_hex(center, hex_radius, cell_radius, strict=False)

Builds grid with regular hexagonal cells.

Parameters:
  • center – 2d point as [x, y]
  • hex_radius – double
  • cell_radius – double
  • strict – boolean
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_unf_hex_grid().

add_unf_hex_grid_in_rect(leftbot, righttop, cell_radius, strict=False)

Builds grid with regular hexagonal cells.

Parameters:
  • leftbot – 2d point as [x, y]
  • righttop – 2d point as [x, y]
  • cell_radius – double
  • strict – boolean
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_unf_hex_grid().

add_unf_rect_grid(p0, p1, nx, ny, bnd=[0, 0, 0, 0])

Builds rectangular grid.

Parameters:
  • p0 – 2d point as [x, y]
  • p1 – 2d point as [x, y]
  • nx – int
  • ny – int
  • bnd – list of int
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_unf_rect_grid().

add_unf_rect_grid1(custom_x, custom_y, bnd=[0, 0, 0, 0])

Builds rectangular grid.

Parameters:
  • custom_x – list of double
  • custom_y – list of double
  • bnd – list of int
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_unf_rect_grid().

add_unf_ring_grid(center, radinner, radouter, na, nr, coef=1.0, bnd=[0, 0])

Builds ring grid.

Parameters:
  • center – 2d point as [x, y]
  • radinner – double
  • radouter – double
  • na – int
  • nr – int
  • coef – double
  • bnd – list of int
Returns:

GRID2D

See details in hybmeshpack.hmscript.add_unf_ring_grid().

build_boundary_grid1(source, partition, direction='left', pstart=None, pend=None, range_angles=[40, 125, 235, 275])

Builds a singly-connected boundary grid near given contour.

Parameters:
  • source – OBJECT2D
  • partition – list of double
  • direction – string
  • pstart – 2d point as [x, y]
  • pend – 2d point as [x, y]
  • range_angles – list of double
Returns:

GRID2D

See details in hybmeshpack.hmscript.build_boundary_grid1().

exclude_contours(grid, conts, what='inner')

Builds a grid by excluding contour area from existing grid.

Parameters:
  • grid – GRID2D
  • conts – list of OBJECT2D
  • what – string
Returns:

GRID2D

See details in hybmeshpack.hmscript.exclude_contours().

heal_grid(grid, simplify_boundary, convex_cells)

Set of procedures for simplification of grid geometry.

Parameters:
  • grid – GRID2D
  • simplify_boundary – double
  • convex_cells – double

See details in hybmeshpack.hmscript.heal_grid().

map_grid(base_grid, target_contour, base_points, target_points, snap='no', btypes='from_grid', algo='inverse_laplace', is_reversed=False, return_invalid=False)

Performs mapping of base grid on another contour.

Parameters:
  • base_grid – GRID2D
  • target_contour – OBJECT2D
  • base_points – list of 2d point as [x, y]
  • target_points – list of 2d point as [x, y]
  • snap – string
  • btypes – string
  • algo – string
  • is_reversed – boolean
  • return_invalid – boolean
Returns:

GRID2D

See details in hybmeshpack.hmscript.map_grid().

pebi_fill(domain, constr=[], pts_size=[], pts=[])

Builds perpendicular bisector cells in given domain.

Parameters:
  • domain – OBJECT2D
  • constr – list of OBJECT2D
  • pts_size – list of double
  • pts – list of 2d point as [x, y]
Returns:

GRID2D

See details in hybmeshpack.hmscript.pebi_fill().

snap_grid_to_contour(gid, cid, gstart, gend, cstart, cend, algo='add')

Snaps grid boundary subsection to contour subsection.

Parameters:
  • gid – GRID2D
  • cid – OBJECT2D
  • gstart – 2d point as [x, y]
  • gend – 2d point as [x, y]
  • cstart – 2d point as [x, y]
  • cend – 2d point as [x, y]
  • algo – string
Returns:

GRID2D

See details in hybmeshpack.hmscript.snap_grid_to_contour().

stripe(cont, partition, tip='no', bnd=[0, 0, 0, 0])

Build a structured grid to the both sides of contour line.

Parameters:
  • cont – OBJECT2D
  • partition – list of double
  • tip – string
  • bnd – list of int
Returns:

GRID2D

See details in hybmeshpack.hmscript.stripe().

triangulate_domain(domain, constr=[], pts_size=[], pts=[], fill='3')

Builds constrained triangulation within given domain.

Parameters:
  • domain – OBJECT2D
  • constr – list of OBJECT2D
  • pts_size – list of double
  • pts – list of 2d point as [x, y]
  • fill – string
Returns:

GRID2D

See details in hybmeshpack.hmscript.triangulate_domain().

unite_grids1(basic, secondary, buffer, empty_holes=False, fix_bnd=False, zero_angle=0.0, buffer_fill='3')

Makes superposition of two grids.

Parameters:
  • basic – GRID2D
  • secondary – GRID2D
  • buffer – double
  • empty_holes – boolean
  • fix_bnd – boolean
  • zero_angle – double
  • buffer_fill – string
Returns:

GRID2D

See details in hybmeshpack.hmscript.unite_grids1().

Surface operations

class Hybmesh.Hybmesh
grid3_bnd_to_surface(grid)

Returns surface object built out of grid boundary.

Parameters:grid – GRID3D
Returns:SURFACE3D

See details in hybmeshpack.hmscript.grid3_bnd_to_surface().

3D grid operations

class Hybmesh.Hybmesh
extrude_grid(obj, zcoords, bottombc=0, topbc=0)

Creates 3D grid by extrusion of 2D grid along z-axis.

Parameters:
  • obj – GRID2D
  • zcoords – list of double
  • bottombc – int
  • topbc – int
Returns:

GRID3D

See details in hybmeshpack.hmscript.extrude_grid().

merge_grids3(g1, g2)

Merges 3d grids into single one.

Parameters:
  • g1 – GRID3D
  • g2 – GRID3D
Returns:

GRID3D

See details in hybmeshpack.hmscript.merge_grids3().

revolve_grid(obj, p1, p2, phi, btype1=0, type2=0, merge_central=False)

Creates 3D grid by revolution of 2D grid around a vector.

Parameters:
  • obj – GRID2D
  • p1 – 2d point as [x, y]
  • p2 – 2d point as [x, y]
  • phi – list of double
  • btype1 – int
  • type2 – int
  • merge_central – boolean
Returns:

GRID3D

See details in hybmeshpack.hmscript.revolve_grid().

tetrahedral_fill(domain)

Fills 3D domain with tetrahedral mesh.

Parameters:domain – list of OBJECT3D
Returns:GRID3D

See details in hybmeshpack.hmscript.tetrahedral_fill().

Export

class Hybmesh.Hybmesh
export3d_grid_gmsh(grid, fname)

Exports 3D grid to gmsh ascii format.

Parameters:
  • grid – GRID3D
  • fname – string

See details in hybmeshpack.hmscript.export3d_grid_gmsh().

export3d_grid_hmg(grids, fname, fmt='ascii', afields=[])

Exports 3d grid to hybmesh native format.

Parameters:
  • grids – list of GRID3D
  • fname – string
  • fmt – string
  • afields – list of string

See details in hybmeshpack.hmscript.export3d_grid_hmg().

export3d_grid_msh(grid, fname, pp_main=[], pp_shadow=[], pp_main_points=[], pp_shadow_points=[])

Exports 3D grid to fluent msh ascii format.

Parameters:
  • grid – GRID3D
  • fname – string
  • pp_main – list of int
  • pp_shadow – list of int
  • pp_main_points – list of 3d point as [x, y, z]
  • pp_shadow_points – list of 3d point as [x, y, z]

See details in hybmeshpack.hmscript.export3d_grid_msh().

export3d_grid_tecplot(grid, fname)

Exports 3D grid to tecplot ascii format.

Parameters:
  • grid – GRID3D
  • fname – string

See details in hybmeshpack.hmscript.export3d_grid_tecplot().

export3d_grid_vtk(grid, fname_grid='', fname_surface='')

Exports 3D grid and its surface to vtk ascii format.

Parameters:
  • grid – GRID3D
  • fname_grid – string
  • fname_surface – string

See details in hybmeshpack.hmscript.export3d_grid_vtk().

export3d_surface_hmc(surf, fname, fmt='ascii')

Exports 3d surface to hybmesh native format.

Parameters:
  • surf – list of SURFACE3D
  • fname – string
  • fmt – string

See details in hybmeshpack.hmscript.export3d_surface_hmc().

export_all_hmd(fname, fmt='ascii')

Exports all geometrical data to native format.

Parameters:
  • fname – string
  • fmt – string

See details in hybmeshpack.hmscript.export_all_hmd().

export_contour_hmc(cont, fname, fmt='ascii')

Exports contours to native format.

Parameters:
  • cont – list of CONTOUR2D
  • fname – string
  • fmt – string

See details in hybmeshpack.hmscript.export_contour_hmc().

export_contour_tecplot(cont, fname)

Exports contour to tecplot ascii format.

Parameters:
  • cont – OBJECT2D
  • fname – string

See details in hybmeshpack.hmscript.export_contour_tecplot().

export_contour_vtk(cont, fname)

Exports contour to vtk format.

Parameters:
  • cont – OBJECT2D
  • fname – string

See details in hybmeshpack.hmscript.export_contour_vtk().

export_grid_gmsh(grid, fname)

Exports grid to gmsh ascii format.

Parameters:
  • grid – GRID2D
  • fname – string

See details in hybmeshpack.hmscript.export_grid_gmsh().

export_grid_hmg(grids, fname, fmt='ascii', afields=[])

Exports 2d grid to hybmesh native format.

Parameters:
  • grids – list of GRID2D
  • fname – string
  • fmt – string
  • afields – list of string

See details in hybmeshpack.hmscript.export_grid_hmg().

export_grid_msh(grid, fname, pp_main=[], pp_shadow=[], pp_is_reversed=[])

Exports grid to fluent msh format.

Parameters:
  • grid – GRID2D
  • fname – string
  • pp_main – list of int
  • pp_shadow – list of int
  • pp_is_reversed – list of boolean

See details in hybmeshpack.hmscript.export_grid_msh().

export_grid_tecplot(grid, fname)

Exports grid to tecplot ascii format.

Parameters:
  • grid – GRID2D
  • fname – string

See details in hybmeshpack.hmscript.export_grid_tecplot().

export_grid_vtk(grid, fname)

Exports 2d grid to vtk format.

Parameters:
  • grid – GRID2D
  • fname – string

See details in hybmeshpack.hmscript.export_grid_vtk().

Import

class Hybmesh.Hybmesh
import3d_grid_hmg(fname, gridname='', allgrids=False)

Imports grid from native hmg file.

Parameters:
  • fname – string
  • gridname – string
  • allgrids – boolean
Returns:

list of GRID3D

See details in hybmeshpack.hmscript.import3d_grid_hmg().

import3d_surface_hmc(fname, surfname='', allsurfs=False)

Imports surface from hybmesh native format.

Parameters:
  • fname – string
  • surfname – string
  • allsurfs – boolean
Returns:

list of SURFACE3D

See details in hybmeshpack.hmscript.import3d_surface_hmc().

import_contour_ascii(fname, wbtype=False, force_closed=False)

Imports singly connected contour as a sequence of points from ascii file.

Parameters:
  • fname – string
  • wbtype – boolean
  • force_closed – boolean
Returns:

CONTOUR2D

See details in hybmeshpack.hmscript.import_contour_ascii().

import_contour_hmc(fname, contname='', allconts=False)

Imports contour from hybmesh native format.

Parameters:
  • fname – string
  • contname – string
  • allconts – boolean
Returns:

list of CONTOUR2D

See details in hybmeshpack.hmscript.import_contour_hmc().

import_grid_gmsh(fname)

Imports grid from gmsh ascii file.

Parameters:fname – string
Returns:GRID2D

See details in hybmeshpack.hmscript.import_grid_gmsh().

import_grid_hmg(fname, gridname='', allgrids=False)

Imports grid from native hmg file.

Parameters:
  • fname – string
  • gridname – string
  • allgrids – boolean
Returns:

list of GRID2D

See details in hybmeshpack.hmscript.import_grid_hmg().

import_grid_msh(fname)

Imports grid from fluent msh file.

Parameters:fname – string
Returns:GRID2D

See details in hybmeshpack.hmscript.import_grid_msh().