Ordered.SmoothGenerator Class

class Ordered.SmoothGenerator

Generator of Rectilinear1D mesh with dense sampling at edges and smooth change of element size.

create generator without initial division of geometry objects

Methods

__call__(...)

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

add_refinement(...)

Add a refining line inside the object

clear_cache()

Clear cache of generated meshes

clear_refinements(subtree)

Clear all refining lines

generate(...)

Generate mesh for given geometry object omitting the cache.

get_refinements(axis)

Get list of all the refinements defined for this generator for specified axis

remove_refinement(...)

Remove the refining line from the object

remove_refinements(...)

Remove the all refining lines from the object

Attributes

aspect

Maximum aspect ratio for the elements generated by this generator.

factor

factor by which element sizes increase along each axis

large

maximum size of mesh elements along each axis

small

small size of mesh elements near object edges along each axis

Descriptions

Method Details

Ordered.SmoothGenerator.__call__(geometry)
Ordered.SmoothGenerator.__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.

Ordered.SmoothGenerator.add_refinement(axis, subtree, at)
Ordered.SmoothGenerator.add_refinement(axis, object, path, at)
Ordered.SmoothGenerator.add_refinement(axis, object, at)
Ordered.SmoothGenerator.add_refinement(axis, path, at)

Add a refining line inside the object

Add a refining line inside the object

Add a refining line inside the object

Add a refining line inside the object

Ordered.SmoothGenerator.clear_cache()

Clear cache of generated meshes

Ordered.SmoothGenerator.clear_refinements(subtree)

Clear all refining lines

Ordered.SmoothGenerator.generate(geometry)
Ordered.SmoothGenerator.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.

Ordered.SmoothGenerator.get_refinements(axis)

Get list of all the refinements defined for this generator for specified axis

Ordered.SmoothGenerator.remove_refinement(axis, subtree, at)
Ordered.SmoothGenerator.remove_refinement(axis, object, path, at)
Ordered.SmoothGenerator.remove_refinement(axis, object, at)
Ordered.SmoothGenerator.remove_refinement(axis, path, at)

Remove the refining line from the object

Remove the refining line from the object

Remove the refining line from the object

Remove the refining line from the object

Ordered.SmoothGenerator.remove_refinements(path)
Ordered.SmoothGenerator.remove_refinements(object, path=None)
Ordered.SmoothGenerator.remove_refinements(subtree)

Remove the all refining lines from the object

Remove the all refining lines from the object

Remove the all refining lines from the object

Attribute Details

Ordered.SmoothGenerator.aspect = <property object>

Maximum aspect ratio for the elements generated by this generator.

Ordered.SmoothGenerator.factor = <property object>

factor by which element sizes increase along each axis

Ordered.SmoothGenerator.large = <property object>

maximum size of mesh elements along each axis

Ordered.SmoothGenerator.small = <property object>

small size of mesh elements near object edges along each axis