LoadData

Load results generated by the Feko Solver.

Example

app = pf.GetApplication()
app:NewProject()
app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/Example_Expanded.fek]])

    -- Retrieve the 'LoadData' called 'EdgeLoad'

loadData = app.Models[1].Configurations[1].Loads["EdgeLoad"]

    -- Manipulate the load data. See 'DataSet' for faster and more comprehensive options
    
dataSet = loadData:GetDataSet()
print(dataSet) -- Describes the structure of the data
inspect(dataSet) -- Gives a list of the data set contents

    -- Find the frequency start and end values

frequencyAxis = dataSet.Axes["Frequency"]
frequencyStartValue = frequencyAxis:ValueAt(1)
frequencyEndValue = frequencyAxis:ValueAt(#frequencyAxis)

    -- Scale the power values

scale = 2
for freqIndex = 1, #dataSet.Axes["Frequency"] do
    indexedValue = dataSet[freqIndex]
    indexedValue.Power = indexedValue.Power * scale
end

    -- Store the manipulated data 
    
scaledLoad = dataSet:StoreData(pf.Enums.StoredDataTypeEnum.Load)

    -- Compare the original load to the manipulated load
    
graph = app.CartesianGraphs:Add()
excitationTrace1 = graph.Traces:Add(loadData)
excitationTrace1.Quantity.Type = pf.Enums.NetworkQuantityTypeEnum.Power
excitationTrace2 = graph.Traces:Add(scaledLoad)
excitationTrace2.Quantity.Type = pf.Enums.NetworkQuantityTypeEnum.Power

Inheritance

The LoadData object is derived from the ResultData object.

The following objects are derived (specialisations) from the LoadData object:

Property List

Configuration
The result data's solution configuration in the model. (Read only SolutionConfiguration)
Label
The object label. (Read/Write string)

Method List

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
Label
The object label.
Type
string
Access
Read/Write

Method Details

StoreData ()
Creates a local stored version of the result data.
Return
ResultData
The new stored data.