Rectangular3D.RegularGenerator Class

class Rectangular3D.RegularGenerator(spacing0, spacing1, spacing2, split=False)
class Rectangular3D.RegularGenerator(spacing, split=False)

Generator of Rectilinear3D mesh with lines at transverse edges of all objects and fine regular division of each object with spacing approximately equal to specified spacing

create generator with equal spacing in all directions

create generator with equal spacing

Parameters:
  • spacing (float) – Approximate spacing between mesh lines in all directions.

  • spacing0 (float) – Approximate spacing between mesh lines in longitudinal direction.

  • spacing1 (float) – Approximate spacing between mesh lines in transverse direction.

  • spacing2 (float) – Approximate spacing between mesh lines in vertical direction.

  • split (bool) – If True, the mesh lines are split into two at each object boundary.

Methods

__call__(...)

Generate mesh for given geometry object or load it from the cache.

clear_cache()

Clear cache of generated meshes

generate(...)

Generate mesh for given geometry object omitting the cache.

Descriptions

Method Details

Rectangular3D.RegularGenerator.__call__(geometry)
Rectangular3D.RegularGenerator.__call__(object)

Generate mesh for given geometry object or load it from the cache.

Parameters:
  • geometry – Geometry to generate mesh at.

  • object – Geometry object to generate mesh at.

Rectangular3D.RegularGenerator.clear_cache()

Clear cache of generated meshes

Rectangular3D.RegularGenerator.generate(geometry)
Rectangular3D.RegularGenerator.generate(object)

Generate mesh for given geometry object omitting the cache.

Parameters:
  • geometry – Geometry to generate mesh at.

  • object – Geometry object to generate mesh at.