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
<SolnParameters> Array Array of strings containing setup definitions.
<ExportOption> Array

["NAME:ExportOption"

<IncludePointsInOutput>: Boolean; specifies whether include points in the output file.

<RefCSName>: String, specifies the reference coordinate system used by the model

<PtInSI>: Boolean; if True, points are exported in SI. If False, points are exported in model units

<FieldInRefCS>] :Boolean; if True, the points are exported in the reference coordinate system.

<IncludePointsInOutput> 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, 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>, "<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

)