ExportOnGrid [Fields Calculator]

Evaluates the top stack element at a set of points specified by a grid and exports the data to a file.

UI Access Click Export, and then click On Grid.
Parameters
Name Type Description
<OutputFile> String Name of the output file.
<Min> Array Minimum values for the coordinate components of the grid system
<Max> Array Maximum values for the coordinate components of the grid system
<Spacing> Array Spacing values for the coordinate components of the grid system
<SolnName> String Name of the simulation setup
<VarVals> Array Array of strings containing setup definitions.
<IncludePoints> Boolean Optional. Specifies whether include points in the output file.
<CSType> String Optional. Type of coordinate system. "Cartesian" (default) | "Cylindrical" | "Spherical"
<Offsets> Array Optional. Origin for the offset coordinate system. For Cartesian, x, y, z, for Cylindrical, R, Phi, Z, for Spherical, Rho, Theta, Phi.
<ByCount> Boolean Optional.
Return Value None.

Note:Regarding the ExportOnGrid legacy script which only has “IncludePtInOutput” argument (the last Boolean one), AEDT can still read it and assign other new arguments as default values. Those default values are RefCSName = “global”, PtInSI = “True”, FieldInRefCS = “False”

Python Syntax

ExportOnGrid(<OutputFile>, <Min>, <Max>, <Spacing>, <SolnName>, <SolnParameters>, [<ExportOption>, "IncludePointsInOutput:=", <boolean>], " RefCSName:=", <CSName>, "PtsInSI:=, <boolean>, "FieldRefCS:=", <boolean>], "<CSType>", [ <Offsets>, <ByCount>)

Python Example

oModule.ExportOnGrid("C:\offset_grid_model_unit_ref.fld",

["-1mm", "16mm", "0mm"],

["1mm", "18mm", "1mm"],

["2mm", "2mm", "1mm"],

"4500MHz : LastAdaptive",

["Freq:=", "4.5GHz","Phase:=" , "0deg"],

[

"NAME:ExportOption",

"IncludePtInOutput:=" , True,

"RefCSName:=" , "offset",

"PtInSI:=" , False,

"FieldInRefCS:=" , True

],

"Cartesian", ["0mm", "0mm", "0mm"], False

)