Classy-blocks

Latest version: v1.5.3

Safety actively analyzes 638346 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 2

1.5.3

Added
- RoundSolidShape.remove_inner_edges() can now remove edges from a specific face (start, end or both)

Changed
- Bugfix: invalid cells in round shapes (due to wrong spline point calculation)

1.5.2

Added
- Spline edges on QuarterDisk, HalfDisk and Disk (FourCoreDisk) to improve mesh quality
- Face.remove_edges() to reset all edges to simple lines
- RoundSolidShape.remove_inner_edges() to get rid of splines in case the vertices need to be moved (in optimization, for example)

Changed
- Updated affected tutorials (diffusers, cyclone)

1.5.1

Added
- Optimization:
- Choice of solver (different problems require - work best - with different solvers)
- Richer output (timing, relative improvement) for easier choice of solver
- Curves:
- get_param_at_length()
- Direct imports of various classes
- A new example: custom sketch
- Mesh:
- assemble(): an option to skip creating edges; most useful when assembling mesh before optimization but later a backport() will be called

Changed
- Improved optimization speed

1.5.0

Added
- Curves:
- get_tangent()
- get_normal()
- get_binormal()
- Mapped sketch
- Definition of any fixed-blocking sketch
- Automatic laplacian smoothing (fixed outer edges, movable inner vertices)
- Sketches
- OneCoreDisk
- FourCoreDisk (the default Disk for Shapes)
- WrappedDisk
- Oval
- WrappedDisk
- Grid (A cartesian array of rectangular faces in XY plane)
- grid property of Sketch/Shape/Stack
- Stacks
- LoftedShape: a generic shape from 2 Sketches with the same number of faces
- Examples: Heater, Fusilli
- Mesh.delete() will omit given operation from blockMeshDict but its data stays in mesh (chops, patches, etc.)

Changed
- Definitions of Disks sketches
- All off-the-shelf Shapes are now a LoftedShape
- Calling .transform() with a Mirror transformation will warn about creating an inverted block

1.4.1

Changed
- Improved optimization output

Removed
- Relaxation within optimization
- Numerical integration of analytic curve lengths; use discretization instead

1.4.0

Added
- Channel example
- Cyclone example
- Mirror transform on points, operations, shapes, mirror example
- Operation:
- `get_closest_face()`, `get_closest_side()`, `get_normal_face()`
- Connector operation
- Geometric finders: find_on_plane()
- functions.point_to_line_distance()

Changed
- Optimization improvements:
- Default parameters for clamp optimization
- Clamps are sorted by sensitivity, not "junction quality" as before (improves optimization speed)
- Clamp parameters follow domain scale (Read more below)
- Raise an Exception when adding more than one Clamp for the same vertex

Clamp Parameters:
Previously:
- RadialClamp had a single parameter, the _angle_ of the point (and change thereof)
- In Linelamp the parameter _t_ went from 0 to 1 regardless of the distance between points

This created difficulties with optimization algorithms with extra large or very small domains.
Optimization speed also drastically changing with simply scaling the dimensions.

This has been changed:
- RadialClamp's parameter is now multiplied with radius so it means actual _distance_
- LineClamp's parameter now goes from 0 to _distance between points_
When working with CurveClamps, this kind of _automatic_ correction cannot be made so it is advisable
that parameter is of a similar magnitudes than points' coordinates.

Removed
- Junction.delta() is now handled by optimization automatically

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.