CharacteristicModeData

Characteristic mode results generated by the Feko Solver.

Example

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

    -- Retrieve the 'CharacteristicModeData' called 'CharacteristicModes1' from the 
    -- characteristic mode configuration

charMode = app.Models[1].Configurations["CharacteristicModeConfiguration1"].
	CharacteristicModes["CharacteristicModes1"]

    -- Manipulate the CharacteristicModes data. See 'DataSet' for faster and more comprehensive
    -- options
    
dataSet = charMode: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 characteristic mode eigen values

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

    -- Store the manipulated data 
    
scaledCharacteristicModes = dataSet:StoreData(pf.Enums.StoredDataTypeEnum.CharacteristicMode)

    -- Compare the original CharacteristicModes to the manipulated CharacteristicModes
    
graph = app.CartesianGraphs:Add()
CharacteristicModesTrace1 = graph.Traces:Add(charMode)
CharacteristicModesTrace1.IndependentAxis = "Frequency"
CharacteristicModesTrace1:SetFixedAxisValue("Mode index", 2, "")
CharacteristicModesTrace2 = graph.Traces:Add(scaledCharacteristicModes)
CharacteristicModesTrace2:SetFixedAxisValue("Mode index", 2, "")

Inheritance

The CharacteristicModeData object is derived from the ResultData object.

Property List

Configuration
The result data's solution configuration in the model. (Read only SolutionConfiguration)
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 characteristic mode values. (Returns a DataSet object.)
GetDataSet (samplePoints number)
Returns a data set containing the characteristic mode values. (Returns a DataSet object.)
GetDataSet (startFrequency number, endFrequency number, samplePoints number)
Returns a data set containing the characteristic mode 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
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 characteristic mode values.
Return
DataSet
The data set containing the characteristic mode values.
GetDataSet (samplePoints number)
Returns a data set containing the characteristic mode values.
Input Parameters
samplePoints(number)
The number of sample points used to sample the continuous frequency axis.
Return
DataSet
The data set containing the characteristic mode values.
GetDataSet (startFrequency number, endFrequency number, samplePoints number)
Returns a data set containing the characteristic mode values.
Input Parameters
startFrequency(number)
The start frequency used to sample the continuous frequency axis.
endFrequency(number)
The end frequency used to sample the continuous frequency axis.
samplePoints(number)
The number of sample points used to sample the continuous frequency axis.
Return
DataSet
The data set containing the characteristic mode values.
StoreData ()
Creates a local stored version of the result data.
Return
ResultData
The new stored data.