User:KI5QKX/xnec2c: Difference between revisions

From 44Net Wiki
No edit summary
No edit summary
 
Line 38: Line 38:
== Next Steps ==
== Next Steps ==


The documentation is available here: [[https://www.xnec2c.org]]
The documentation is available here: https://www.xnec2c.org


In general, you want to define your antenna and then do things like View → Radiation Pattern and View → Frequency Plots.
In general, you want to define your antenna and then do things like View → Radiation Pattern and View → Frequency Plots.

Latest revision as of 13:22, 23 May 2025

Xnec2c is a tool for modeling antenna radiation patterns.

Installation

Xnec2c can be compiled from source on linux and macOS systems.

macOS

On macOS, Xnec2c requires some build tools and the GTK libraries. These are available in homebrew.

Prerequisites

  • macOS build tools, via Xcode
  • Xquartz
  • GNU automake (automake in homebrew)
  • GTK+ 3 libraries (gtk+3 in homebrew)

Installing

1. `git clone https://github.com/KJ7LNW/xnec2c.git` 2. `cd xnec2c` 3. `./autogen.sh` 4. `./configure` 5. `make` 6. `sudo make install` 7. `sudo make desktop-install`

At this point, the `xnec2c` binary will be in `/usr/local/bin/xnec2c`, but it may not yet be available in your PATH. Restart your shell or rehash or whatever you do to refresh your PATH.

Running

Note: As xnec2c is multi-threaded, you can run it with as many job queues as you have CPUs. Use the -j argument to set the number of threads. For example: -j8 for eight threads.

To launch it, open a new Terminal window and run `xnec2c -j<threads>`.

  • If it doesn't launch Xquartz for you, try launching Xquartz first and running `xnec2c` from within the Xterm window.

Next Steps

The documentation is available here: https://www.xnec2c.org

In general, you want to define your antenna and then do things like View → Radiation Pattern and View → Frequency Plots.