Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capability to Import Models #313

Merged
merged 34 commits into from
Nov 23, 2017
Merged

Capability to Import Models #313

merged 34 commits into from
Nov 23, 2017

Conversation

jhmatthews
Copy link
Collaborator

This pull request adds the capability to read in models, as documented in issues #309

The user guide is here: https://github.com/agnwinds/python/wiki/Importing-Models-(wind_type-10-) and also in the cookbook.

A few important changes:

  • wind mode 10 allows one to access the new mode, wind_type IMPORT
  • if IMPORT, inwind is set by the user and not by wind cones
  • if IMPORT, where_in_wind queries the grid rather than working out if you are in the wind by geometry alone
  • if IMPORT, you cannot be partially in the wind
  • a new inwind variable, W_NOT_ASSIGNED is now initialised. This is overwritten in the case of
    import and this ensures flags are not overwritten
  • volumes are still set in the corresponding volumes routines but based on the "read in" flags
  • temperatures are not set by the read in file, even though there is a column for that, but they could be.
  • This has been tested in cylindrical but needs checking more, especially in rtheta

Knox has written routines to convert windsave2table outputs to reading in files, which should be tried out as described on the wiki.

This merge also includes some reorganisation of setup routines.

kslong and others added 30 commits November 6, 2017 09:52
In addition to creating a new routine import.c to read in models
I have moved some of the inputs having to do with winds from python.c
into a reanmed routine in setup, to collect the infomrmation about
domains.  Note that to avoid having to specify the dimensions in
advance one needs to actually read in the models, before one allocates
wmain.
Problems still remain concerning which cells are in the wind.
windsave to table to serve as imput files for a model to be read into
python.
with each coordinate system.  Began to revise the import_cylindrical to
reflect an assumption that one did not need to add buffer cells. #309
immediately falling over.  Issues remain, including making sure that rho
is being added to plasma ptr correctly everywhere, and deciding what is
actually inwind.  #309
…mported models and reading in inwind values
and cylindrical models.  #309

One needs to assigne zdom ndim, mdim, and mdim2 early assure that
the correct number of wind cells are alocated.  If this is not
done, then defaults of 30 x 30 will be assumed, which is particularly
problematic for a 1d model..
center positions of cells to the master.txt file.

The current version of the python routines to convert the master.txt
file to an import file should still work.
to failed.  Added a simple rtheta model to the regression directory.
jhmatthews and others added 4 commits November 21, 2017 13:27
coordinates. (At this point we can read in the model, but there are
still too many sane_checks)
detailed testing should be done.

Updted the version number to 82d in prepration for merge into dev.
All of this development is relate to issue #309.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants