PLaSK User Manual

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
warn_missing Warn if refining path does not point to any object
warn_multiple Warn if refining path points to more than one object
warn_ouside Warn if refining line is outside of its object

Descriptions

Method Details

Ordered.SmoothGenerator.__call__(object)
Ordered.SmoothGenerator.__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.
Ordered.SmoothGenerator.add_refinement(axis, subtree, at)
Ordered.SmoothGenerator.add_refinement(axis, path, at)
Ordered.SmoothGenerator.add_refinement(axis, object, path, at)
Ordered.SmoothGenerator.add_refinement(axis, object, 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(object)
Ordered.SmoothGenerator.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.
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, path, at)
Ordered.SmoothGenerator.remove_refinement(axis, object, path, at)
Ordered.SmoothGenerator.remove_refinement(axis, object, 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(object, path=None)
Ordered.SmoothGenerator.remove_refinements(path)
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

Maximum aspect ratio for the elements generated by this generator.

Ordered.SmoothGenerator.factor

factor by which element sizes increase along each axis

Ordered.SmoothGenerator.large

maximum size of mesh elements along each axis

Ordered.SmoothGenerator.small

small size of mesh elements near object edges along each axis

Ordered.SmoothGenerator.warn_missing

Warn if refining path does not point to any object

Ordered.SmoothGenerator.warn_multiple

Warn if refining path points to more than one object

Ordered.SmoothGenerator.warn_ouside

Warn if refining line is outside of its object