DataSetQuantity
Every DataSet contains axes and quantities. The DataSetQuantity describes the definition of a quantity.
Example
app = pf.GetApplication() app:NewProject() app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/startup.fek]]) -- Retrieve the far field data set farFieldDataSet = app.Models[1].Configurations[1].FarFields["FarFields"]:GetDataSet(51) -- Print a list of the far field quantities printlist( farFieldDataSet.Quantities:Items() ) -- Access information about the "EFieldTheta" quantity EFieldThetaQuantity = farFieldDataSet.Quantities["EFieldTheta"] quantityName = EFieldThetaQuantity.Name quantityType = EFieldThetaQuantity.QuantityType quantityUnit = EFieldThetaQuantity.Unit -- Access the 'EFieldTheta' value at the first frequency, theta and phi point EFieldThetaValue = farFieldDataSet[1][1][1].EFieldTheta
Usage locations
The DataSetQuantity object can be accessed from the following locations:
- Methods
- DataSetQuantityCollection collection has method Items().
- DataSetQuantityCollection collection has method Item(number).
- DataSetQuantityCollection collection has method Item(string).
- DataSetQuantityCollection collection has method Add(string, DataSetQuantityTypeEnum, Unit).
- DataSetQuantityCollection collection has method Add(DataSetQuantity).
Property List
- Name
- The name of the quantity. (Read only string)
- QuantityType
- The value type of the quantity. (Read/Write DataSetQuantityTypeEnum)
- Type
- The object type string. (Read only string)
- Unit
- The unit for the quantity. (Read/Write Unit)
Method List
- Delete ()
- Deletes the quantity from the dataset.
Property Details
- Name
- The name of the quantity.
- Type
- string
- Access
- Read only
- QuantityType
- The value type of the quantity.
- Type
- DataSetQuantityTypeEnum
- Access
- Read/Write
- Type
- The object type string.
- Type
- string
- Access
- Read only
- Unit
- The unit for the quantity.
- Type
- Unit
- Access
- Read/Write
Method Details
- Delete ()
- Deletes the quantity from the dataset.