{ "info": { "author": "Tim Molteno", "author_email": "tim@physics.otago.ac.nz", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Science/Research", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Communications :: Ham Radio", "Topic :: Scientific/Engineering" ], "description": "# python-necpp: Antenna simulation in python\n\nThis module allows you to do antenna simulations in Python using the nec2++ antenna\nsimulation package. \n\nThis is a wrapper using SWIG of the C interface, so the syntax\nis quite simple. Have a look at the file necpp_src/example/test.py, for an example of how this \nlibrary can be used.\n\nTim Molteno. tim@physics.otago.ac.nz\n\n## NEWS\n\n* Version 1.7.3 Includes Python3 support. Also some bug fixes and updating nec++ to the \n latest version.\n* Version 1.7.0.3 includes nec_medium_parameters(). You could simulate an antenna in seawater!\n* Version 1.7.0 includes support for getting elements of radiation patterns. At the moment\n this is just through the function nec_get_gain().\n\n\n## Install\n\nAs of version 1.6.1.2 swig is no longer required for installation. Simply use PIP as \nfollows:\n\n pip install necpp\n\n## Documentation\n\nTry help(necpp) to list the available functions. The functions available are documented in the C-style API of nec2++. \nThis is [available here](http://tmolteno.github.io/necpp/libnecpp_8h.html)\n\n## Using\n\nThe following code calculates the impedance of a simple vertical monopole antenna\nover a perfect ground. \n\n import necpp\n\n def handle_nec(result):\n if (result != 0):\n print necpp.nec_error_message()\n\n def impedance(frequency, z0, height):\n \n nec = necpp.nec_create()\n handle_nec(necpp.nec_wire(nec, 1, 17, 0, 0, z0, 0, 0, z0+height, 0.1, 1, 1))\n handle_nec(necpp.nec_geometry_complete(nec, 1, 0))\n handle_nec(necpp.nec_gn_card(nec, 1, 0, 0, 0, 0, 0, 0, 0))\n handle_nec(necpp.nec_fr_card(nec, 0, 1, frequency, 0))\n handle_nec(necpp.nec_ex_card(nec, 0, 0, 1, 0, 1.0, 0, 0, 0, 0, 0)) \n handle_nec(necpp.nec_rp_card(nec, 0, 90, 1, 0,5,0,0, 0, 90, 1, 0, 0, 0))\n result_index = 0\n \n z = complex(necpp.nec_impedance_real(nec,result_index), \n necpp.nec_impedance_imag(nec,result_index))\n \n necpp.nec_delete(nec)\n return z\n\n if (__name__ == 'main'):\n z = impedance(frequency = 34.5, z0 = 0.5, height = 4.0)\n print \"Impedance \\t(%6.1f,%+6.1fI) Ohms\" % (z.real, z.imag)\n\n## More Information\n \nHave a look at [http://github.com/tmolteno/necpp] for more information on using nec2++.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/tmolteno/necpp", "keywords": "nec2 nec2++ antenna electromagnetism radio", "license": "GPLv2", "maintainer": "", "maintainer_email": "", "name": "necpp", "package_url": "https://pypi.org/project/necpp/", "platform": "", "project_url": "https://pypi.org/project/necpp/", "project_urls": { "Homepage": "http://github.com/tmolteno/necpp" }, "release_url": "https://pypi.org/project/necpp/1.7.3.5/", "requires_dist": null, "requires_python": "", "summary": "Python Antenna Simulation Module (nec2++) C-style interface", "version": "1.7.3.5" }, "last_serial": 5752760, "releases": { "1.6.1": [ { "comment_text": "", "digests": { "md5": "f8008d45dc8fadabd37c50e22176866e", "sha256": "510109a4c7f6feed59a30417e31bd4fccd7357d50f4600e21b6069f347503c2f" }, "downloads": -1, "filename": "necpp-1.6.1.tar.gz", "has_sig": false, "md5_digest": "f8008d45dc8fadabd37c50e22176866e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 183731, "upload_time": "2015-03-30T02:27:17", "url": "https://files.pythonhosted.org/packages/de/f5/83bb8d4352198138b9434185c0d077dceb8a38e4cddf94d5e01411d590ab/necpp-1.6.1.tar.gz" } ], "1.6.1.1": [ { "comment_text": "", "digests": { "md5": "c0175cc677730da35e1265684f68abb5", "sha256": "6fc4d6d59a6b2187b3d4711f211f4f7229e5a9d63c54ffcbe14f1035df062440" }, "downloads": -1, "filename": "necpp-1.6.1.1.tar.gz", "has_sig": false, "md5_digest": "c0175cc677730da35e1265684f68abb5", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 152775, "upload_time": "2015-03-30T07:38:44", "url": "https://files.pythonhosted.org/packages/79/dc/2e2b707521dfb488ef89e52d51467cd9795b8d6b36925112cf58240a20ba/necpp-1.6.1.1.tar.gz" } ], "1.6.1.2": [ { "comment_text": "", "digests": { "md5": "bc674e8d25577910dc5c0d7f6fdba979", "sha256": "1fd1c95ce529c10e69591e60a37b1b9f035aa9e7d8e2cf8585bf9c4c670ee8a0" }, "downloads": -1, "filename": "necpp-1.6.1.2.tar.gz", "has_sig": false, "md5_digest": "bc674e8d25577910dc5c0d7f6fdba979", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 183348, "upload_time": "2015-03-31T02:10:49", "url": "https://files.pythonhosted.org/packages/ca/fa/0f3e89c22594d605f59a4e5b824e2f3b0676f44ec26f8afb747e00e54b2f/necpp-1.6.1.2.tar.gz" } ], "1.6.1.3": [ { "comment_text": "", "digests": { "md5": "42a2b83711f5b4d5a9a03454122be599", "sha256": "8822bc07dd9861dff92138d3a09005d94de2b85bcf31709a38ec0fc7c2c33690" }, "downloads": -1, "filename": "necpp-1.6.1.3.tar.gz", "has_sig": false, "md5_digest": "42a2b83711f5b4d5a9a03454122be599", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 183791, "upload_time": "2015-03-31T20:26:59", "url": "https://files.pythonhosted.org/packages/01/5b/bde56c00b64a96545ee817b95d342b16eece3110aa8d3b7bdfce48dccafe/necpp-1.6.1.3.tar.gz" } ], "1.6.1.4": [ { "comment_text": "", "digests": { "md5": "25e5825972b61298670007902a074547", "sha256": "7e7cd43f94b73bcca7c7dc9a20be67e5499f088878443466c0dbeb8aa4290bd2" }, "downloads": -1, "filename": "necpp-1.6.1.4.tar.gz", "has_sig": false, "md5_digest": "25e5825972b61298670007902a074547", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 183785, "upload_time": "2015-03-31T20:35:56", "url": "https://files.pythonhosted.org/packages/94/0b/35887c0926096388db9ac5916f5fccfe60c702f3a0132e72e92fe797ab60/necpp-1.6.1.4.tar.gz" } ], "1.7.0.2": [ { "comment_text": "", "digests": { "md5": "3aa2d5db0b0121402ba74f77a0af83b1", "sha256": "baf08a74ab0df539b90061e8f5b2f8e55e74a2d69d88ef5b99f8d1aefcd2b821" }, "downloads": -1, "filename": "necpp-1.7.0.2.tar.gz", "has_sig": false, "md5_digest": "3aa2d5db0b0121402ba74f77a0af83b1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 186798, "upload_time": "2015-05-10T23:17:02", "url": "https://files.pythonhosted.org/packages/15/d9/074b83e4f017b013317bb7190e1b738e99995852613cc44d4bf90ecbb3d0/necpp-1.7.0.2.tar.gz" } ], "1.7.0.3": [ { "comment_text": "", "digests": { "md5": "6ecbedc7da27c79e78cbff96d2586d73", "sha256": "84c5e95bbb90afd26977e7abf4054b9fb6cc1f9917bf1833c8ce075fcebed83e" }, "downloads": -1, "filename": "necpp-1.7.0.3.tar.gz", "has_sig": false, "md5_digest": "6ecbedc7da27c79e78cbff96d2586d73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 186897, "upload_time": "2015-05-11T00:45:08", "url": "https://files.pythonhosted.org/packages/39/47/93523b06306aa07b26718b307bedd53e695b82cebbb9dcc27a3de7f29d22/necpp-1.7.0.3.tar.gz" } ], "1.7.3": [ { "comment_text": "", "digests": { "md5": "1d330924118a7e53074677903c4a704e", "sha256": "4fde8d076e1817135a92ff9aae013c1caeb76f42992254b02d8a22e1be3242bb" }, "downloads": -1, "filename": "necpp-1.7.3.tar.gz", "has_sig": false, "md5_digest": "1d330924118a7e53074677903c4a704e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 190762, "upload_time": "2017-08-21T08:11:42", "url": "https://files.pythonhosted.org/packages/62/07/9069f2bc3f2e6988deb1f15cdfba65fc6b07cabf36309e63012974261182/necpp-1.7.3.tar.gz" } ], "1.7.3.1": [ { "comment_text": "", "digests": { "md5": "5c1e38dd6f610f22e3c5b0948ff8a8f6", "sha256": "4107c75501e6f5ebb593492b7498d22b22982953b0b6d438b3432d13d4d56016" }, "downloads": -1, "filename": "necpp-1.7.3.1.tar.gz", "has_sig": false, "md5_digest": "5c1e38dd6f610f22e3c5b0948ff8a8f6", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 36792, "upload_time": "2017-08-21T09:33:32", "url": "https://files.pythonhosted.org/packages/10/e2/1b8bd84c093be88dccf79b34c3e6cffb895c382a9a5a431e0e957e3f035f/necpp-1.7.3.1.tar.gz" } ], "1.7.3.2": [ { "comment_text": "", "digests": { "md5": "5cb50177fae8cffadee222799d3b7ac7", "sha256": "892c3a51f254a94ac645c815685841e058423160594827f47795f8006395a1cc" }, "downloads": -1, "filename": "necpp-1.7.3.2.tar.gz", "has_sig": false, "md5_digest": "5cb50177fae8cffadee222799d3b7ac7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 37008, "upload_time": "2017-08-21T09:50:29", "url": "https://files.pythonhosted.org/packages/33/d6/55f3c6e4f1d1c86f2ecfa2b7bd126ecb3d448af68ae42a01896f0697f5b9/necpp-1.7.3.2.tar.gz" } ], "1.7.3.5": [ { "comment_text": "", "digests": { "md5": "dd4e32f8c8a89a65b2f4a00e66c4154a", "sha256": "aea6b6d2b26901008f2139292483e03c61e04fcc4fb498199f96f5dc34a2c1a5" }, "downloads": -1, "filename": "necpp-1.7.3.5.tar.gz", "has_sig": false, "md5_digest": "dd4e32f8c8a89a65b2f4a00e66c4154a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 196705, "upload_time": "2019-08-29T13:54:58", "url": "https://files.pythonhosted.org/packages/03/a5/a7f9ed52ccb2f9748208fc400f524f5b438170823a5812af5ef8cdad9207/necpp-1.7.3.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "dd4e32f8c8a89a65b2f4a00e66c4154a", "sha256": "aea6b6d2b26901008f2139292483e03c61e04fcc4fb498199f96f5dc34a2c1a5" }, "downloads": -1, "filename": "necpp-1.7.3.5.tar.gz", "has_sig": false, "md5_digest": "dd4e32f8c8a89a65b2f4a00e66c4154a", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 196705, "upload_time": "2019-08-29T13:54:58", "url": "https://files.pythonhosted.org/packages/03/a5/a7f9ed52ccb2f9748208fc400f524f5b438170823a5812af5ef8cdad9207/necpp-1.7.3.5.tar.gz" } ] }