[Mesa-users] Gyre installation and run
Warrick Ball
wball at bison.ph.bham.ac.uk
Mon Apr 9 07:24:26 EDT 2018
First, note that this is the *MESA* user forum so, while there are many
GYRE users here, your questions are better suited to the GYRE forums:
http://www.astro.wisc.edu/~townsend/gyre-forums/
The questions you're asking are covered by the GYRE documentation anyway.
e.g.
https://bitbucket.org/rhdtownsend/gyre/wiki/Running%20GYRE
Have you tried the instructions on that page? If so, what problem(s) have
you encountered?
Regarding plotting, your question is too open ended to be answered easily.
(This isn't the place for general advice on plotting output.) GYRE output
is fixed width plain text and easy to manipulate. You can look at the
files using your favourite text editor or command line tools like `less`,
and then decide how you would plot that in your preferred language. e.g.
to get to the point-wise/vector data in a summary or mode file in Python,
I use NumPy's `genfromtxt` function with something like
data = np.genfromtxt(filename, skip_header=5, names=True)
To see the available columns, I use
print(data.dtype.names)
So with `matplotlib.pyplot` imported as `pl`, I would plot the radial
component of an eigenfunction with
pl.plot(data['x'], data['Rexi_r'])
W
------------
Warrick Ball
Postdoc, School of Physics and Astronomy
University of Birmingham, Edgbaston, Birmingham B15 2TT
wball at bison.ph.bham.ac.uk
+44 (0)121 414 4552
On Mon, 9 Apr 2018, seblu1557 at gmail.com wrote:
> Dear all mesa user,
> how can we run gyre and find their output files and how to plot this
> output corresponding their column names?
>
> On Mon, Apr 9, 2018 at 5:12 AM, Warrick Ball <wball at bison.ph.bham.ac.uk>
> wrote:
>
>> Assuming the MESA SDK and MESA folder are already set up, then
>>
>> export GYRE_DIR=$MESA_DIR/gyre/gyre
>> cd $GYRE_DIR
>> make
>>
>> should work. The GYRE executable is then at `$GYRE_DIR/bin/gyre`.
>>
>> If you don't have a specific reason for using the version of GYRE bundled
>> with MESA, you may want to follow the instructions at the GYRE website to
>> install it as a standalone program.
>>
>> https://bitbucket.org/rhdtownsend/gyre/wiki/Home
>>
>> W
>>
>>
>> ------------
>> Warrick Ball
>> Postdoc, School of Physics and Astronomy
>> University of Birmingham, Edgbaston, Birmingham B15 2TT
>> wball at bison.ph.bham.ac.uk
>> +44 (0)121 414 4552
>>
>> On Mon, 9 Apr 2018, mesa-users at lists.mesastar.org wrote:
>>
>> Dear all mesa-users,
>>>
>>> please, can you help me on how to install and run GYRE in the folder of
>>> MESA directory?
>>>
>>>
>
More information about the Mesa-users
mailing list