Jump to content

NEC File Import: Difference between revisions

From SimTX Wiki
Clanker (talk | contribs)
Create NEC import page
 
Clanker (talk | contribs)
Remove import internals
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
Custom antennas can be imported as '''NEC decks''', the standard text format used by antenna modelling tools such as 4nec2 and EZNEC. The '''Import NEC...''' button in the Antenna section loads a deck; '''Use built-in''' reverts to the selected built-in type.
Custom antennas can be imported as '''NEC decks''', the standard text format used by antenna modelling tools such as 4nec2 and EZNEC. The '''Import NEC...''' button in the Antenna section loads a deck; '''Use built-in''' reverts to the selected built-in type.
== What happens on import ==
The client parses the deck, solves it locally and reports the wire count, solve frequency, peak gain (dBi), feedpoint impedance and VSWR. The raw deck text is sent with the session so the server solves the exact same geometry. The deck is also stored in saved <code>.stxpreset</code> files.


== Supported format ==
== Supported format ==
Line 27: Line 24:
|}
|}


'''Not supported''': lumped loads (LD), transmission line cards (TL) and other advanced cards are ignored. Antennas that depend on loading coils or line matching will therefore solve differently than in a full NEC package. A deck with no GW card is rejected.
'''Not supported''': lumped loads (LD), transmission line cards (TL) and other advanced cards are ignored. Antennas that depend on loading coils or line matching will therefore behave differently than in a full NEC package. A deck with no GW card is rejected.


== Tips ==
== Tips ==
* Model in a dedicated NEC tool, verify the pattern and impedance there, then export and import the deck.
* Model in a dedicated NEC tool, verify the pattern and impedance there, then export and import the deck.
* Keep the geometry moderate in size; extremely finely segmented models gain nothing and solve slowly.
* If no excitation card is present the feed defaults to the center of the first wire.
* If no excitation card is present the feed defaults to the center of the first wire.


[[Category:Antennas]] [[Category:SimTX]]
[[Category:Antennas]] [[Category:SimTX]]

Latest revision as of 08:55, 5 July 2026

Custom antennas can be imported as NEC decks, the standard text format used by antenna modelling tools such as 4nec2 and EZNEC. The Import NEC... button in the Antenna section loads a deck; Use built-in reverts to the selected built-in type.

Supported format[edit | edit source]

Plain NEC-2 style cards, coordinates in meters. Accepted file extensions: .nec, .ez, .txt.

Card Support
GW Wire definition (tag, segments, endpoints, radius). A radius of 0 defaults to 1 mm.
GS Scale factor, applied to all coordinates and radii.
GE Geometry end; its ground flag is honoured.
GN Ground description; mapped to the nearest of the simulator's ground categories (perfect, salt water, fresh water, good, average, very poor).
EX Excitation; used to locate the feedpoint on the tagged wire.
FR Design frequency.
EN End of deck.
CM, CE Comments, ignored.

Not supported: lumped loads (LD), transmission line cards (TL) and other advanced cards are ignored. Antennas that depend on loading coils or line matching will therefore behave differently than in a full NEC package. A deck with no GW card is rejected.

Tips[edit | edit source]

  • Model in a dedicated NEC tool, verify the pattern and impedance there, then export and import the deck.
  • If no excitation card is present the feed defaults to the center of the first wire.