淘宝官方店     推荐课程     在线工具     联系方式     关于我们  
 
 

微波射频仿真设计   Ansoft Designer 中文培训教程   |   HFSS视频培训教程套装

 

Agilent ADS 视频培训教程   |   CST微波工作室视频教程   |   AWR Microwave Office

          首页 >> Ansoft Designer >> Ansoft Designer在线帮助文档


Ansoft Designer / Ansys Designer 在线帮助文档:


Generating Reports and Postprocessing >
User Defined Outputs: Python Script API >
   Data Types Used in Python Script >
       GetComplexProbeData(probeName)           


GetComplexProbeData(probeName)

• Purpose: The primary mechanism by which the UDO retrieves data for its input probes (if it expects complex data for the probe).

• Parameters:

• probeName – probe name for which complex data is requested

• Returns: .NET double Array (float in python) of data for the specified probe. Each pair of floats represent one complex number: first value is for real part, second value for imaginary part. For instance, array [10.0, 0, 5.1, 2.1] represents 2 complex numbers: (10.0, 0) and (5.1, 2.1).

Example:

# complexDataAsDouble is C# Array of doubles (floats in python)

# each pair of floats represents one complex number

complexDataAsDouble = inData.GetComplexProbeData(“FarFieldsProbe“)

# creating a list of complex numbers from complexDataAsDouble array

complexData = []

if complexDataAsDouble != None:

for i in xrange(0,complexDataAsDouble.Count , 2):

complexData.append(complex(complexDataAsDouble[i],complexDataAsDouble[i+1]))




HFSS视频教学培训教程 ADS2011视频培训教程 CST微波工作室教程 Ansoft Designer 教程

                HFSS视频教程                                      ADS视频教程                               CST视频教程                           Ansoft Designer 中文教程


 

      Copyright © 2006 - 2013   微波EDA网, All Rights Reserved    业务联系:mweda@163.com