GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add new methods to get gain statistics to the nec_context SWIG wrapper. · saharbin/python-necpp@296e68e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • PyNEC
    • example
      • monopole.py
    • interface_files
      • nec_context.i
    • setup.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎PyNEC/example/monopole.py‎

Copy file name to clipboardExpand all lines: PyNEC/example/monopole.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#
22
# Simple vertical monopole antenna simulation using python-necpp
3-
# pip install necpp
3+
# pip install PyNEC
44
#
55
from PyNEC import *
66

Collapse file

‎PyNEC/interface_files/nec_context.i‎

Copy file name to clipboardExpand all lines: PyNEC/interface_files/nec_context.i
+32Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,39 @@ public:
1212
c_geometry* get_geometry();
1313

1414

15+
/*! \brief Get the maximum gain in dB.
1516
17+
This function requires a previous rp_card() method to have been called (with gain normalization requested)
18+
19+
\return The maximum gain in dB or -999.0 if no radiation pattern had been previously requested.
20+
*/
21+
double get_gain(int freq_index, int theta_index, int phi_index);
22+
23+
double get_gain_max(int freq_index);
24+
double get_gain_min(int freq_index);
25+
double get_gain_mean(int freq_index);
26+
double get_gain_sd(int freq_index);
27+
28+
/********************** RHCP ********************************/
29+
double get_gain_rhcp_max(int freq_index);
30+
double get_gain_rhcp_min(int freq_index);
31+
double get_gain_rhcp_mean(int freq_index);
32+
double get_gain_rhcp_sd(int freq_index);
33+
34+
/********************** LHCP ********************************/
35+
double get_gain_lhcp_max(int freq_index);
36+
double get_gain_lhcp_min(int freq_index);
37+
double get_gain_lhcp_mean(int freq_index);
38+
double get_gain_lhcp_sd(int freq_index);
39+
40+
/****************** IMPEDANCE CHARACTERISTICS *********************/
41+
42+
/*! \brief Impedance: Real Part */
43+
double get_impedance_real(int freq_index);
44+
/*! \brief Impedance: Imaginary Part */
45+
double get_impedance_imag(int freq_index);
46+
47+
1648
/*! Get the result antenna_input_parameters specified by index
1749
1850
\param index The index of the requested result.
Collapse file

‎PyNEC/setup.py‎

Copy file name to clipboardExpand all lines: PyNEC/setup.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
long_description = fh.read()
5050

5151
setuptools.setup (name = 'PyNEC',
52-
version = '1.7.3.4',
52+
version = '1.7.3.5',
5353
author = "Tim Molteno",
5454
author_email = "[email protected]",
5555
url = "http://github.com/tmolteno/python-necpp",

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.