TransmissionLineData
Transmission line results generated by the Feko Solver.
Example
app = pf.GetApplication() app:NewProject() app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/Log_Periodic_Network_Load.fek]]) -- Retrieve the 'TransmissionLineData' called 'TransmissionLine1' transmissionLineData = app.Models[1].Configurations[1].TransmissionLines["TransmissionLine1"] -- Manipulate the transmission line data. See 'DataSet' for faster, more comprehensive options dataSet = transmissionLineData:GetDataSet(51) -- Find the number of ports portAxis = dataSet.Axes["Arbitrary"] noPorts = #portAxis -- Scale the transmission line power values scale = 2 for freqIndex = 1, #dataSet.Axes["Frequency"] do for portIndex = 1, #dataSet.Axes["Arbitrary"] do indexedValue = dataSet[freqIndex][portIndex] indexedValue.Impedance = indexedValue.Impedance * scale end end -- Store the manipulated data scaledData = dataSet:StoreData(pf.Enums.StoredDataTypeEnum.Network) -- Compare the original transmission line to the manipulated transmission line graph = app.CartesianGraphs:Add() transmissionLineTrace1 = graph.Traces:Add(transmissionLineData) transmissionLineTrace1.Quantity.Type = pf.Enums.NetworkQuantityTypeEnum.Impedance transmissionLineTrace2 = graph.Traces:Add(scaledData) transmissionLineTrace2.Quantity.Type = pf.Enums.NetworkQuantityTypeEnum.Impedance
Inheritance
The TransmissionLineData object is derived from the ResultData object.
Usage locations
The TransmissionLineData object can be accessed from the following locations:
- Methods
- TransmissionLineCollection collection has method Items().
- TransmissionLineCollection collection has method Item(number).
- TransmissionLineCollection collection has method Item(string).
Property List
- Configuration
- The result data's solution configuration in the model. (Read only SolutionConfiguration)
- ContinuousFrequencyAxis
- Continuous frequency axis exists. (Read only boolean)
- DataSetAvailable
- Valid result data exist. (Read only boolean)
- Label
- The object label. (Read/Write string)
- Type
- The object type string. (Read only string)
Method List
- GetDataSet ()
- Returns a data set containing the transmission line values. (Returns a DataSet object.)
- GetDataSet (samplePoints number)
- Returns a data set containing the transmission line values. (Returns a DataSet object.)
- GetDataSet (startFrequency number, endFrequency number, samplePoints number)
- Returns a data set containing the transmission line values. (Returns a DataSet object.)
- StoreData ()
- Creates a local stored version of the result data. (Returns a ResultData object.)
Property Details
- Configuration
- The result data's solution configuration in the model.
- Type
- SolutionConfiguration
- Access
- Read only
- ContinuousFrequencyAxis
- Continuous frequency axis exists.
- Type
- boolean
- Access
- Read only
- DataSetAvailable
- Valid result data exist.
- Type
- boolean
- Access
- Read only
- Label
- The object label.
- Type
- string
- Access
- Read/Write
- Type
- The object type string.
- Type
- string
- Access
- Read only
Method Details
- GetDataSet ()
- Returns a data set containing the transmission line values.
- Return
- DataSet
- The data set containing the transmission line values.
- GetDataSet (samplePoints number)
- Returns a data set containing the transmission line values.
- GetDataSet (startFrequency number, endFrequency number, samplePoints number)
- Returns a data set containing the transmission line values.
- Input Parameters
- Return
- DataSet
- The data set containing the transmission line values.
- StoreData ()
- Creates a local stored version of the result data.
- Return
- ResultData
- The new stored data.