SurfaceCurrentsMathScript
Surface currents math script data that can be plotted.
Example
app = pf.GetApplication() app:NewProject() app:OpenFile(FEKO_HOME..[[/shared/Resources/Automation/startup.fek]]) -- Create a currents math script currentsMathScript = app.MathScripts:Add(pf.Enums.MathScriptTypeEnum.SurfaceCurrentsAndCharges) script = [[ dataSet = pf.SurfaceCurrentsAndCharges.GetDataSet("startup.StandardConfiguration1.Currents1") scale = 2 currentsMatrix = dataSet:ToComplexMatrix({"ElectricX", "ElectricY", "ElectricZ"}) currentsMatrix = currentsMatrix * scale dataSet:FromComplexMatrix(currentsMatrix, {"ElectricX", "ElectricY", "ElectricZ"}) return dataSet ]] currentsMathScript.Script = script currentsMathScript:Run() -- Plot the math script currentsPlot = app.Views[1].Plots:Add(currentsMathScript)
Inheritance
The SurfaceCurrentsMathScript object is derived from the MathScript object.
Property List
Method List
- Delete ()
- Delete the math script.
- Duplicate ()
- Duplicate the math script. (Returns a MathScript object.)
- GetDataSet ()
- Returns a data set containing the math script values. (Returns a DataSet object.)
- Run ()
- Run the math script.
- StoreData ()
- Creates a local stored version of the result data. (Returns a ResultData object.)
Property Details
Method Details
- Delete ()
- Delete the math script.
- Duplicate ()
- Duplicate the math script.
- Return
- MathScript
- The duplicated math script.
- GetDataSet ()
- Returns a data set containing the math script values.
- Return
- DataSet
- The data set containing the math script values.
- Run ()
- Run the math script.
- StoreData ()
- Creates a local stored version of the result data.
- Return
- ResultData
- The new stored data.