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

Weave.facet_ellipse_segments

Number of segments used to approximate yarn ellipse profiles.

Weave.facet_path_segments_per_half

Path segmentation per half-period used to discretize yarn paths.

Weave.fill_width

Fill yarn width in millimeters.

Weave.public_dir

Shortcut for dir(self).

Weave.ratio_fill

Fill height ratio (relative factor used to compute yarn height).

Weave.ratio_warp

Warp height ratio (relative factor used to compute yarn height).

Weave.rotation

Rotation applied to the weave coordinate system in degrees.

Weave.sectors_per_pitch

Number of homogenized sectors per weave pitch.

Weave.shift_y

Y-shift applied to the weave coordinate system in millimeters.

Weave.subtract_from_substrate

Whether the created weave bodies should be subtracted from the substrate.

Weave.target_amplitude

Target amplitude of yarn undulation in millimeters.

Weave.target_pitch_x

Target pitch in the X direction in millimeters.

Weave.target_pitch_y

Target pitch in the Y direction in millimeters.

Weave.warp_width

Warp yarn width in millimeters.

Weave.weave_parameters

Current weave parameters as a dictionary.

Weave.yarn_loss_tangent

Yarn dielectric loss tangent.

Weave.yarn_material

Yarn material name.

Weave.yarn_permittivity

Yarn relative permittivity (Dk).