Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
2c7ae0a
FIX: analyze_from_zero
anur7 Jul 17, 2025
1550e0d
chore: adding changelog file 6425.fixed.md [dependabot-skip]
pyansys-ci-bot Jul 17, 2025
a87a2ae
Merge branch 'refs/heads/main' into fix/analyze_from_zero
anur7 Jul 18, 2025
d4db8a3
Merge branch 'refs/heads/main' into fix/analyze_from_zero
anur7 Jul 18, 2025
9998c61
FIX: fix analyze_from_zero, added unit test
anur7 Jul 18, 2025
36aba85
Merge remote-tracking branch 'origin/fix/analyze_from_zero' into fix/…
anur7 Jul 18, 2025
9ddbe70
Merge branch 'main' into fix/analyze_from_zero
anur7 Jul 21, 2025
da17219
Update src/ansys/aedt/core/maxwell.py
anur7 Jul 21, 2025
6475930
FIX: code improvement, added test for non Balloon boundary condition
anur7 Jul 21, 2025
df31439
FIX: improved test for non Balloon BC and added test for AEDTRuntimeE…
anur7 Jul 21, 2025
e4393b2
Merge branch 'main' into fix/analyze_from_zero
anur7 Jul 22, 2025
7cf20f7
Merge branch 'main' into fix/analyze_from_zero
anur7 Jul 23, 2025
66bebb0
Merge branch 'main' into fix/analyze_from_zero
anur7 Jul 23, 2025
90b7454
Merge branch 'main' into fix/analyze_from_zero
Samuelopez-ansys Jul 24, 2025
08aa3ec
Merge branch 'main' into fix/analyze_from_zero
Samuelopez-ansys Jul 24, 2025
06e7a95
Merge branch 'main' into fix/analyze_from_zero
anur7 Jul 24, 2025
1dbf552
Merge branch 'main' into fix/analyze_from_zero
anur7 Jul 25, 2025
68b9d60
Merge branch 'main' into fix/analyze_from_zero
anur7 Jul 25, 2025
0670b5f
Merge branch 'main' into fix/analyze_from_zero
anur7 Aug 3, 2025
03e1f4d
Merge branch 'main' into fix/analyze_from_zero
anur7 Aug 4, 2025
d698625
Merge branch 'main' into fix/analyze_from_zero
anur7 Aug 4, 2025
af61c33
Merge branch 'refs/heads/main' into fix/analyze_from_zero
anur7 Aug 5, 2025
f73581c
Merge branch 'main' into fix/analyze_from_zero
anur7 Aug 7, 2025
3a02db7
FIX: updated warning message in case of balloon boundary
anur7 Aug 7, 2025
b45c102
Merge branch 'main' into fix/analyze_from_zero
anur7 Aug 7, 2025
774c1be
Merge branch 'refs/heads/main' into fix/analyze_from_zero
anur7 Aug 8, 2025
8a32cff
FIX: updated warning message in case of balloon boundary
anur7 Aug 8, 2025
947881f
Merge branch 'main' into fix/analyze_from_zero
anur7 Aug 12, 2025
7a75538
Merge branch 'main' into fix/analyze_from_zero
anur7 Aug 14, 2025
f3f3b42
chore: adding changelog file 6425.fixed.md [dependabot-skip]
pyansys-ci-bot Aug 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions doc/changelog.d/6425.fixed.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Analyze_from_zero
10 changes: 9 additions & 1 deletion src/ansys/aedt/core/maxwell.py
Original file line number Diff line number Diff line change
Expand Up @@ -1649,7 +1649,15 @@ def analyze_from_zero(self):
raise AEDTRuntimeError("This methods work only with Maxwell Transient Analysis.")

self.oanalysis.ResetSetupToTimeZero(self._setup)
self.analyze()
if any(boundary.type == "Balloon" for boundary in self.boundaries):
self.logger.warning(
"With Balloon boundary, it is not possible to parallelize the simulation "
"using the Time Decomposition Method (TDM). "
"Running the simulation without HPC auto settings and using one single core."
)
self.analyze(use_auto_settings=False, cores=1)
else:
self.analyze()
return True

@pyaedt_function_handler(val="angle")
Expand Down
18 changes: 18 additions & 0 deletions tests/system/general/test_27_Maxwell2D.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,3 +836,21 @@ def test_export_rl_matrix(self, local_scratch, m2d_export_matrix):
matrix_type="RL", matrix_name="Matrix1", output_file=export_path_2
)
assert export_path_2.exists()

def test_analyze_from_zero(self, m2d_app):
m2d_app.solution_type = SolutionsMaxwell2D.TransientXY
conductor = m2d_app.modeler.create_circle(origin=[0, 0, 0], radius=10, material="Copper")
m2d_app.assign_winding(assignment=conductor.name, is_solid=False, current="5*cos(2*PI*50*time)")
region = m2d_app.modeler.create_region(pad_percent=100)
bound = m2d_app.assign_balloon(region.edges)
setup1 = m2d_app.create_setup()
setup1.props["StopTime"] = "2/50s"
setup1.props["TimeStep"] = "1/500s"
assert m2d_app.analyze_from_zero()
bound.delete()
m2d_app.assign_vector_potential(assignment=region.edges)
assert m2d_app.analyze_from_zero()
m2d_app.solution_type = SolutionsMaxwell2D.MagnetostaticXY
m2d_app.create_setup()
with pytest.raises(AEDTRuntimeError):
m2d_app.analyze_from_zero()
Loading