-
-
July 30, 2023 at 5:15 pmAta VafiSubscriber
Currently, I am working on implementing a geometry and I have encountered an expression involving a cumulative sum operation. To efficiently implement this in Ansys HFSS, I came across the built-in function called 'cum_sum.'
However, I am unsure about the proper usage of 'cum_sum' integration of it with my user-defined functions effectively for my simulation in Ansys HFSS. Does anyone know how this function should be used, and what are the inputs to this function?
To provide an example of what I'm trying to achieve: I want to calculate the sum of i^2, where 'i' ranges from 0 to some variable 'N'. Could someone please help me understand how to properly utilize the 'cum_sum' function for this purpose in Ansys HFSS?Thank you for your help!
-
July 31, 2023 at 3:29 pmAymen MzoughiAnsys Employee
The cumulative sum function returns a data set that has the same length as the original set of points. Element I of the set returned by cum_sum is the sum of elements 1 through I of the original data set.
Try to play a bit with this function and see what it outputs depending on your data.-
August 1, 2023 at 8:15 pmAta VafiSubscriber
@Aymen: The information you provided can be found in the HFSS help and other sources as well. Since you are an Ansys employee, I was hoping for a more specific and detailed answer from you. I have spent a considerable amount of time trying to figure it out myself, which is why I reached out here for some authentic assistance. It would be much more helpful if you could provide me with some practical examples that demonstrate the usage of the function. Simply directing me to experiment with the software isn’t enough.
-
-
August 1, 2023 at 5:23 amAta VafiSubscriber
.
-
- The topic ‘How to Use cum_sum Function in Ansys HFSS?’ is closed to new replies.
- HFSS Incident Plane Wave excitement mode
- Ansys Maxwell 3D – eddy current
- How to calculate eddy and hysteresis losses of the core?
- Simulation of capacitor combining eddy currents with displacement currents
- dq graph non-conformity
- Simplorer+Maxwell Cosimulation results and Maxwell results mismatch
- Parametrizing coil “terminals” with coil geometry
- On-chip inductor design
- Maxwell circuit – PWM
- Calculating E-field tangential to a 2D resonant structure on a sapphire chip
-
1722
-
624
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.