Rectangular2D.RegularGenerator Class

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

Generator of Rectilinear2D 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 transverse direction.

  • spacing1 (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

Rectangular2D.RegularGenerator.__call__(object)
Rectangular2D.RegularGenerator.__call__(geometry)

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.

Rectangular2D.RegularGenerator.clear_cache()

Clear cache of generated meshes

Rectangular2D.RegularGenerator.generate(object)
Rectangular2D.RegularGenerator.generate(geometry)

Generate mesh for given geometry object omitting the cache.

Parameters:
  • geometry – Geometry to generate mesh at.

  • object – Geometry object to generate mesh at.