Weave#
- class ansys.aedt.core.modeler.advanced_cad.weave.Weave#
Class to create weaves in AEDT.
Examples
>>> from ansys.aedt.core.modeler.advanced_cad.weave import Weave >>> from ansys.aedt.core import Hfss >>> hfss = Hfss() >>> obj = Weave() >>> sub = hfss.modeler.create_box([0, 0, 0], [5, 10, 2]) >>> w1 = weave.create_weave(hfss, sub)
Methods
Weave.create_weave(app, assignment[, ...])Create a woven yarn geometry (warp and fill) clipped to the provided reference object.
Weave.create_weave_homogenized(app, assignment)Create a homogenized approximation of the weave as material sectors covering the reference object.
Weave.export_to_json(output_file)Export current weave parameters to a JSON file.
Weave.from_dict(data)Create a Weave instance from a dictionary.
Weave.load_from_json(input_file)Load weave parameters from a JSON or TOML file and return a configured Weave.
Weave.set_weave_style(style)Resolve weave preset values from WEAVE_STYLES.
Attributes
Number of segments used to approximate yarn ellipse profiles.
Path segmentation per half-period used to discretize yarn paths.
Fill yarn width in millimeters.
Shortcut for dir(self).
Fill height ratio (relative factor used to compute yarn height).
Warp height ratio (relative factor used to compute yarn height).
Rotation applied to the weave coordinate system in degrees.
Number of homogenized sectors per weave pitch.
Y-shift applied to the weave coordinate system in millimeters.
Whether the created weave bodies should be subtracted from the substrate.
Target amplitude of yarn undulation in millimeters.
Target pitch in the X direction in millimeters.
Target pitch in the Y direction in millimeters.
Warp yarn width in millimeters.
Current weave parameters as a dictionary.
Yarn dielectric loss tangent.
Yarn material name.
Yarn relative permittivity (Dk).