-
Notifications
You must be signed in to change notification settings - Fork 24
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
a spherical model. #309
windsave to table to serve as imput files for a model to be read into python.
cylindrical coordinates. #309
cylidrical grid #309. This still has problems.
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.
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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:
import and this ensures flags are not overwritten
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.