From 4d1816ad264a5fdd1b4738694bb5f53ce3b4e2e4 Mon Sep 17 00:00:00 2001 From: Jonathan Velasco Date: Thu, 2 Oct 2025 12:47:48 +0300 Subject: [PATCH 1/4] fix: use solution type instead of report type in CreateOutputVariable --- src/ansys/aedt/core/application/analysis.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ansys/aedt/core/application/analysis.py b/src/ansys/aedt/core/application/analysis.py index d14c1e011eb..13db9d74828 100644 --- a/src/ansys/aedt/core/application/analysis.py +++ b/src/ansys/aedt/core/application/analysis.py @@ -1637,11 +1637,13 @@ def create_output_variable(self, variable, expression, solution=None, context=No solution = self.existing_analysis_sweeps[0] if variable in self.output_variables: oModule.EditOutputVariable( - variable, expression, variable, solution, self.design_solutions.report_type, context + variable, expression, variable, solution, self.design_solutions.solution_type, context ) else: try: - oModule.CreateOutputVariable(variable, expression, solution, self.design_solutions.report_type, context) + oModule.CreateOutputVariable( + variable, expression, solution, self.design_solutions.solution_type, context + ) except Exception: raise AEDTRuntimeError("Invalid commands.") return True From cd8e5e9f4fce26f24987cb967509a3489ee81de3 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Thu, 2 Oct 2025 09:51:31 +0000 Subject: [PATCH 2/4] chore: adding changelog file 6726.fixed.md [dependabot-skip] --- doc/changelog.d/6726.fixed.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/changelog.d/6726.fixed.md diff --git a/doc/changelog.d/6726.fixed.md b/doc/changelog.d/6726.fixed.md new file mode 100644 index 00000000000..3c88aac1fe9 --- /dev/null +++ b/doc/changelog.d/6726.fixed.md @@ -0,0 +1 @@ +Use solution type instead of report type in CreateOutputVariable From 8bc6ac42c1dcaa90452357b4367cf06b85a9a71c Mon Sep 17 00:00:00 2001 From: Jonathan Velasco Date: Fri, 3 Oct 2025 11:04:56 +0300 Subject: [PATCH 3/4] fix: revert to report_type and modify report_type for Maxwell DC and AC conduction --- src/ansys/aedt/core/application/analysis.py | 6 ++---- src/ansys/aedt/core/application/design_solutions.py | 8 ++++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/ansys/aedt/core/application/analysis.py b/src/ansys/aedt/core/application/analysis.py index 13db9d74828..d14c1e011eb 100644 --- a/src/ansys/aedt/core/application/analysis.py +++ b/src/ansys/aedt/core/application/analysis.py @@ -1637,13 +1637,11 @@ def create_output_variable(self, variable, expression, solution=None, context=No solution = self.existing_analysis_sweeps[0] if variable in self.output_variables: oModule.EditOutputVariable( - variable, expression, variable, solution, self.design_solutions.solution_type, context + variable, expression, variable, solution, self.design_solutions.report_type, context ) else: try: - oModule.CreateOutputVariable( - variable, expression, solution, self.design_solutions.solution_type, context - ) + oModule.CreateOutputVariable(variable, expression, solution, self.design_solutions.report_type, context) except Exception: raise AEDTRuntimeError("Invalid commands.") return True diff --git a/src/ansys/aedt/core/application/design_solutions.py b/src/ansys/aedt/core/application/design_solutions.py index a782da63407..dfc4528505e 100644 --- a/src/ansys/aedt/core/application/design_solutions.py +++ b/src/ansys/aedt/core/application/design_solutions.py @@ -88,21 +88,21 @@ "DCConduction": { "name": "DCConduction", "options": "XY", - "report_type": None, + "report_type": "DCConduction", "default_setup": 58, "default_adaptive": "LastAdaptive", }, "DC Conduction": { "name": "DCConduction", "options": "XY", - "report_type": None, + "report_type": "DC Conduction", "default_setup": 58, "default_adaptive": "LastAdaptive", }, "ACConduction": { "name": "ACConduction", "options": "XY", - "report_type": None, + "report_type": "ACConduction", "default_setup": 59, "default_adaptive": "LastAdaptive", "intrinsics": ["Freq", "Phase"], @@ -110,7 +110,7 @@ "AC Conduction": { "name": "ACConduction", "options": "XY", - "report_type": None, + "report_type": "AC Conduction", "default_setup": 59, "default_adaptive": "LastAdaptive", "intrinsics": ["Freq", "Phase"], From 83cfbb83398e8ca79b8ae12b2ca090667419e9d4 Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Tue, 14 Oct 2025 13:22:16 +0000 Subject: [PATCH 4/4] chore: adding changelog file 6726.fixed.md [dependabot-skip] --- doc/changelog.d/6726.fixed.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/changelog.d/6726.fixed.md b/doc/changelog.d/6726.fixed.md index 3c88aac1fe9..72c3c47be82 100644 --- a/doc/changelog.d/6726.fixed.md +++ b/doc/changelog.d/6726.fixed.md @@ -1 +1 @@ -Use solution type instead of report type in CreateOutputVariable +Update Report type according to Solution Type in CreateOutputVariable