Skip to content

Commit 6dca024

Browse files
committed
DOCS: a variable name change "metal" to "steel" on export element based harmonic force example
1 parent a4a667a commit 6dca024

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ansys/aedt/core/maxwell.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2173,15 +2173,15 @@ def export_element_based_harmonic_force(
21732173
>>> origin=[70, 0, -11],
21742174
>>> sizes=[11, 110],
21752175
>>> name="Coil_terminal")
2176-
>>> metal = m3d.modeler.create_rectangle(orientation="XZ",
2176+
>>> steel = m3d.modeler.create_rectangle(orientation="XZ",
21772177
>>> origin=[181, 0, -11],
21782178
>>> sizes=[11, 55], name="steel",
21792179
>>> material="steel_1008")
2180-
>>> metal.sweep_around_axis(axis="Z")
2180+
>>> steel.sweep_around_axis(axis="Z")
21812181
>>> region = m3d.modeler.create_region()
21822182
>>> m3d.assign_winding(assignment=terminal.name, is_solid=False, current="100*cos(2*PI*50*time)")
21832183
>>> # Enable element based volumetric harmonic force and solve the model.
2184-
>>> m3d.enable_harmonic_force(assignment=metal.name, force_type=2, calculate_force="Harmonic")
2184+
>>> m3d.enable_harmonic_force(assignment=steel.name, force_type=2, calculate_force="Harmonic")
21852185
>>> setup = m3d.create_setup()
21862186
>>> setup.props["StopTime"] = "2/50s"
21872187
>>> setup.props["TimeStep"] = "1/500s"

0 commit comments

Comments
 (0)