The pf namespace

Many objects have static functions, but only a limited number of functions are available directly in the pf namespace. Numerous namespaces exist under the pf namespace that also contain static functions.

Namespace List

Archive
Create and extract archived files and folders.
CharacteristicModes
Characteristic mode data set functions.
CustomData
Custom data data set functions.
DRE
Import and export datasets in the DRE (Daimler Result Exchange) format.
Excitation
Excitation data set functions.
FarField
Far field data set functions.
Load
Load data set functions.
MatIO
Read and write mat files.
NearField
Near field data set functions.
Network
Network data set functions.
Power
Power data set functions.
SAR
SAR data set functions.
SParameter
S-parameter data set functions.
SurfaceCurrentsAndCharges
Surface currents and charges data set functions.
TRCoefficients
Transmission/reflection coefficient data set functions.
WireCurrentsAndCharges
Wire currents and charges data set functions.

Function List

GetApplication ()
Returns an instance of the POSTFEKO application object. (Returns a Application object.)

Function Details

GetApplication ()
Returns an instance of the POSTFEKO application object.
Return
Application
An instance of the POSTFEKO application object.
Example
    -- The "GetApplication" function lives in the "pf" namespace and
    -- returns the current POSTFEKO application object.
    
app = pf.GetApplication()

    -- Start a new project and save it as "ExampleProject"

app:NewProject()
app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/Dipole_Example.fek]])

    -- Save the project in the same directory as this script
    
app:SaveAs([[temp_ExampleProject.pfs]])