+ Post New Thread
Results 1 to 4 of 4

29th November 2010, 16:02 #1
 Join Date
 Feb 2010
 Posts
 30
 Helped
 0 / 0
 Points
 1,291
 Level
 8
HFSShelp with defining output variable
Hello! I have run a frequency sweep analysis in HFSS and have plotted a variable (let's call it Q) versus frequency. I have selected a Linear Count setup, with 1000 points, so it is as if I have calculated 1000 values of Q (each at a different frequency). Could you please help me on how I can define a new output variable that will give me the sum of all Q values (in HFSS)?? (that is S= Q(f1)+Q(f2)+...+Q(f1000))?

Advertisement

29th November 2010, 16:18 #2
 Join Date
 Sep 2008
 Location
 US
 Posts
 350
 Helped
 103 / 103
 Points
 3,554
 Level
 14
Re: HFSShelp with defining output variable
Instead of using HFSS to get the sum of all the Q values, use Matlab, it is much more easy.
After you plot the variable Q against frequency. Right click on the graph and export to .csv file. Then you can use Matlab to find the sum of all Q values.
sv

Advertisement

29th November 2010, 17:53 #3
 Join Date
 Feb 2010
 Posts
 30
 Helped
 0 / 0
 Points
 1,291
 Level
 8
Re: HFSShelp with defining output variable
thank you for your answer. However, I need to calculate this value as a variable in HFSS (because I need to use it as an optimization parameter to perform an optimization analysis). Is it possible to do that? Or if it is simpler..is it possible to get a variable denoting the maximum value of Q? (i.e. max (Q(f1),Q(f2)..Q(f1000)).
Again thanks a lot!

Advertisement

2nd December 2010, 18:05 #4
 Join Date
 Dec 2009
 Location
 land of the free
 Posts
 345
 Helped
 194 / 194
 Points
 3,285
 Level
 13
Re: HFSShelp with defining output variable
When you create your output variable, create another variable that makes use of the range functions...this is exactly what they are there for! in your case use the Catagory == Math > Function == sum() function of a given existing output variable over a given calculation range of frequencies. Look up range functions in the HFSS help for more info!
later :)
+ Post New Thread
Please login