-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
FEAT: Twinbuilder excitation component #4752
base: main
Are you sure you want to change the base?
Conversation
Thanks for opening a Pull Request. If you want to perform a review write a comment saying: @ansys-reviewer-bot review |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4752 +/- ##
==========================================
- Coverage 82.67% 77.98% -4.69%
==========================================
Files 117 117
Lines 54186 54249 +63
==========================================
- Hits 44797 42308 -2489
- Misses 9389 11941 +2552 |
Use the excitation component to assign output quantities in a Twin Builder design to a windings | ||
in a Maxwell design. | ||
|
||
This method works only with AEDT versions > 2024 R2. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method works only with AEDT versions > 2024 R2. | |
This method works only with AEDT 2024 R2 and later. |
start : float, optional | ||
Start time. | ||
The default value is ``None``. | ||
If not provided and ``use_default_values`` is ``True`` the value is chosen from the TR setup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not provided and ``use_default_values`` is ``True`` the value is chosen from the TR setup. | |
If not provided and ``use_default_values=True``, the value is chosen from the TR setup. |
stop : float, optional | ||
Stop time. | ||
The default value is ``None``. | ||
If not provided and ``use_default_values`` is ``True`` the value is chosen from the TR setup. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not provided and ``use_default_values`` is ``True`` the value is chosen from the TR setup. | |
If not provided and ``use_default_values=True``, the value is chosen from the TR setup. |
If ``True``, Twin Builder performs linear interpolation to uniformly space out time and data points. | ||
The interpolation is based on the step size provided. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If ``True``, Twin Builder performs linear interpolation to uniformly space out time and data points. | |
The interpolation is based on the step size provided. | |
Whether Twin Builder is to perform linear interpolation to uniformly space out time and data points. | |
The interpolation is based on the step size provided. The default is ``False``. |
Step size used for the uniform interpolation. | ||
The default value is ``1E-5``. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step size used for the uniform interpolation. | |
The default value is ``1E-5``. | |
Step size to use for the uniform interpolation. | |
The default value is ``1E-5``. |
>>> oComponentManager.AddExcitationModel | ||
""" | ||
if self.aedt_version_id < "2024.2": | ||
self.logger.error("This method only work for AEDT versions > 2024 R2.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.logger.error("This method only work for AEDT versions > 2024 R2.") | |
self.logger.error("This method only work for AEDT 2024 R2 and later.") |
twin_app = dkp[[project, self.design_name]] | ||
project_selection = 0 | ||
else: | ||
raise ValueError("Invalid project name or path provided.") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
raise ValueError("Invalid project name or path provided.") | |
raise ValueError("Invalid project name or path is provided.") |
Messages should have subject, verb, and concluding punctuation.
No description provided.