• 易迪拓培训,专注于微波、射频、天线设计工程师的培养
首页 > CST > CST使用问答 > how to write a code for 10db bandwidth calculation in CST

how to write a code for 10db bandwidth calculation in CST

录入:edatop.com     点击:
hello dear friends,
I have simulated a structure in CST and I'm trying to optimize it by writing the optimization codes in Macros of the software. the problem I have faced is that how can I write the code for calculation of bandwidth for the plot like the one below. I Want the 10dB bandwidth of the of between points 3 & 4. I cannot limit my frequency sweep because this band shifts to other frequencies while optimization. The code I have used for is the this:

Code:
  f1 = mfmin
    temps1 = Abs(ms11min-threshold)
    f2 = mfmin
    temps2 = Abs(ms11min-threshold)
    For i = 0 To nn-1
      If mfreq(nn-1-i) < mfmin Then
        If Abs(ms11(nn-1-i)-threshold) < temps1 Then
          f1 = mfreq(nn-1-i)
          temps1 = Abs(ms11(nn-1-i)-threshold)
        End If
      End If
      If mfreq(i) > mfmin Then
        If Abs(ms11(i)-threshold) < temps2 Then
          f2 = mfreq(i)
          temps2 = Abs(ms11(i)-threshold)
        End If
      End If
    Next i


the problem is that it sometimes calculate the other 10dB bandwidth between 1&2 or the bandwidth between 1 & 4!
Thank you.

申明网友回复良莠不齐,仅供参考。如需专业解答,请学习易迪拓培训专家讲授的CST视频培训教程

上一篇:CST thermal Simulation Design studio problem
下一篇:CST Impedance matching of basic rectangular patch using feeding line

CST培训课程推荐详情>>

  网站地图