

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 builtin function called 'cum_sum.'
However, I am unsure about the proper usage of 'cum_sum' integration of it with my userdefined 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.
 How to calculate the received power excited by nonport excitations?
 SLURM integration
 determining turn directions in cylindirical coil:clkwisecounterclkwise
 How to create Lumped RLC in HFSS to match Circuit? (Simulate load as Lumped RLC)
 Zo when applying bulk conductivity to the silicon substrate of finiteground CPW

421

192

178

161

140
Â© 2024 Copyright ANSYS, Inc. All rights reserved.