gcs package
Subpackages
Module contents
Generalized Cylindrical Shells
- Provides
An object representing generalized cylindrical shell (GCS) structures.
Operations on GCS structures.
How to use the documentation
Documentation is available in docstrings provided with the code.
The docstring examples assume that gcs has been imported:
>>> import gcs
Code snippets are indicated by three greater-than signs:
>>> shape = gcs.GCS(...)
>>> shape.parameters
Available subpackages
- io
Functions for loading/saving GCS shapes.
- verify
Functions for verifying the validity of GCS shapes.
- class gcs.Cylinder(height: float, mass: float, thickness: float, n_steps: int = 100, d_theta: float = 0.01, triangulate_faces: bool = True)[source]
Bases:
GCSSimple GCS cylinder.
- Attributes:
base_perimeterThe base perimeter (mm).
facesThe faces.
meshThe mesh.
parametersThe GCS parameters.
top_perimeterThe top perimeter (mm).
validTrue if the GCS is valid.
valid_base_perimeterTrue if the base perimeter is valid.
valid_radiusTrue if the radii are valid.
verticesThe vertices.
- class gcs.GCS(c4_base: float, c8_base: float, c4_top: float, c8_top: float, twist_linear: float, twist_amplitude: float, twist_cycles: float, perimeter_ratio: float, height: float, mass: float, thickness: float, n_steps: int = 100, d_theta: float = 0.01, triangulate_faces: bool = True)[source]
Bases:
objectThe generalized cylindrical shell (GCS) class.
- Attributes:
base_perimeterThe base perimeter (mm).
facesThe faces.
meshThe mesh.
parametersThe GCS parameters.
top_perimeterThe top perimeter (mm).
validTrue if the GCS is valid.
valid_base_perimeterTrue if the base perimeter is valid.
valid_radiusTrue if the radii are valid.
verticesThe vertices.
- property base_perimeter: float
The base perimeter (mm).
- property faces: ndarray
The faces.
Refer to
gcs.triangulatefor full documentation.
- property mesh: Mesh
The mesh.
References
- property parameters: dict
The GCS parameters.
- property top_perimeter: float
The top perimeter (mm).
- property valid: bool
True if the GCS is valid.
Refer to
gcs.verify.verifyfor full documentation.
- property valid_base_perimeter: bool
True if the base perimeter is valid.
Refer to
gcs.verify.verify_base_perimeterfor full documentation.
- property valid_radius: bool
True if the radii are valid.
Refer to
gcs.verify.verify_radiusfor full documentation.
- property vertices: ndarray
The vertices.
Refer to
gcs.discretizefor full documentation.