Skip to main content

Wendelstein 7-X tools providing easy acces and error catching for field line tracer, VMEC and EXTENDER web services and much more.

Project description

https://img.shields.io/pypi/v/w7x.svg https://img.shields.io/travis/dboe/w7x.svg Documentation Status Updates

Wendelstein 7-X tools providing easy acces and error-catching for Field-Line-Tracers, VMEC-Web-Service and EXTENDER and much more.

Features

The w7x package provides convenience methods for Magnetic Field evaluations around the stellarator Wendelstein 7-X. The zen of the package (in addition to the zen of python) is the following: * be intuitive * Tell the user what he does wrong (the web services often fail without a clue for the user). * Provide proper defaults for your functions.

The module includes handy wrapper methods for the following web-services: * FieldLineTracing (see “http://webservices.ipp-hgw.mpg.de/docs/fieldlinetracer.html”). Namespace: w7x.flt * VMEC (see “http://webservices.ipp-hgw.mpg.de/docs/vmec.html”). Namespace: w7x.vmec * EXTENDER (see “http://webservices.ipp-hgw.mpg.de/docs/extender.html”). Namespace: w7x.extender

The package provides explicit classes for the osa types of the web-services provided. The main starting point for the use of services is the Run() class e.g. `python import w7x run = w7x.flt.Run() lcfs_points = run.find_lcfs() # returns one point on the lcfs ` Most services are started from this class.

We utilize the tfields module in order to take care of proper coordinate transformations since some web-service tools need special coordinate systems.

Note

If you want to use the divertor or baffle evaluator (for example see diffusion mapping example<https://gitlab.mpcdf.mpg.de/dboe/w7x/tree/master/examples/diffusion_mapping.py>, i.e. build an evaluator object like so:

divertor_evaluator = w7x.evaluation.TracerEvaluator.from_loader(
    w7x.Defaults.Paths.divertor_upper_tiles_template_path)

the require

MIT License

Copyright (c) 2020, Daniel Böckenhoff

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

w7x-0.2.0.tar.gz (76.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page