-
-
July 30, 2023 at 5:15 pm
Ata Vafi
SubscriberCurrently, 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 pm
Aymen
Ansys EmployeeThe 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 pm
Ata Vafi
Subscriber@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 am
Ata Vafi
Subscriber.
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.Â

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- simulation completed with execution error on server
- Maxwell, HFSS or Q3D?
- Unable to assign correctly the excitations in a coil
- How to export Ansys Maxwell simulation results for post-processing in matlab or in .csv file
- Intersect errors with model with complex structure
- Running ANSYS HFSS on the HPC (it runs on Linux only)
- Process ‘3dtds’ terminated abnormally
- Error while solving Optimetrics
- Error
- Concept of Interpolation Sweep in HFSS
-
7690
-
4484
-
2957
-
1435
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.