PowerQuantity

The power quantity properties.

Example

app = pf.GetApplication()
app:NewProject()
app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/startup.fek]])
powerData = app.Models[1].Configurations[1].Power["Power"]

    -- Create a cartesian graph and add the power data
    
graph = app.CartesianGraphs:Add()
powerTrace = graph.Traces:Add(powerData)

    -- Configure the trace quantity
    
powerTrace.Quantity.Type = pf.Enums.PowerQuantityTypeEnum.ActivePower
powerTrace.Quantity.ValuesScaledToDB = true

Usage locations

The PowerQuantity object can be accessed from the following locations:

Property List

Type
The type of quantity to be plotted, specified by the PowerQuantityTypeEnum, e.g. Active power, Loss power or Efficiency. (Read/Write PowerQuantityTypeEnum)
ValuesNormalised
Specifies whether the quantity values must be normalised to the range [0,1] before plotting. This property can be used together with dB scaling. This property is not valid when the ComplexComponent is Phase. (Read/Write boolean)
ValuesScaledToDB
Specifies whether the quantity values are scaled to dB before plotting. (Read/Write boolean)

Property Details

Type
The type of quantity to be plotted, specified by the PowerQuantityTypeEnum, e.g. Active power, Loss power or Efficiency.
Type
PowerQuantityTypeEnum
Access
Read/Write
ValuesNormalised
Specifies whether the quantity values must be normalised to the range [0,1] before plotting. This property can be used together with dB scaling. This property is not valid when the ComplexComponent is Phase.
Type
boolean
Access
Read/Write
ValuesScaledToDB
Specifies whether the quantity values are scaled to dB before plotting.
Type
boolean
Access
Read/Write