Jump to content

NEC File Import: Difference between revisions

From SimTX Wiki
Clanker (talk | contribs)
Remove What happens on import section
No edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Documentation navigation}}
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.
== Import a custom model ==
Use a built-in [[Antenna System|antenna]] first unless a particular physical geometry is needed.
# Prepare and inspect the antenna in a NEC modelling program.
# In SimTX, open Antenna and select '''Import NEC...'''.
# Choose the deck, check the loaded geometry's frequency and the SWR estimate, and test reception.
# Use '''Use built-in''' to return to the selected built-in antenna
importing a deck does not make SimTX a complete NEC application. Read the unsupported-card list before relying on a model that uses loading coils or matching lines.


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


'''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 23:35, 9 October 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.


Import a custom model[edit | edit source]

Use a built-in antenna first unless a particular physical geometry is needed.

  1. Prepare and inspect the antenna in a NEC modelling program.
  2. In SimTX, open Antenna and select Import NEC....
  3. Choose the deck, check the loaded geometry's frequency and the SWR estimate, and test reception.
  4. Use Use built-in to return to the selected built-in antenna

importing a deck does not make SimTX a complete NEC application. Read the unsupported-card list before relying on a model that uses loading coils or matching lines.

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.