[mesa-users] MESAFace thanks and suggestions

Giannotti, Maurizio MGiannotti at mail.barry.edu
Tue Aug 14 13:51:14 EDT 2012


Hi Grant,

Thanks for the tip. I think the position of the particular information about the initial mass and metallicity in star.log may have changed with the MESA versions. So, I think a way to avoid this kind of problem is to substitute

star[[3, 1]] (for the mass)

with

star[[3, Position[star[[2]], "initial_mass"][[1, 1]]]]

and

star[[3, 2]] (for the metallicity)

with

star[[3, Position[star[[2]], "initial_z"][[1, 1]]]]

in the expression for the HistoryPlotLabel.
This should work with all versions of MESA, as long as the names "initial_mass" and "initial_z" appear in the second row and their values in the third row of star.log. Let us know if these changes work for you.

Thank you very much for noticing and bringing up this problem. We will make the changes and post a new version soon.

Maurizio


Maurizio Giannotti,
Assistant Professor of Physics,
Physical Sciences, Barry University,
11300 NE 2nd Ave., Miami Shores, FL 33161
mgiannotti at mail.barry.edu<mailto:mgiannotti at mail.barry.edu>
305-899-4565 (office), 305-899-3479 (fax)

________________________________
From: Grant Newsham [newshamg at gmail.com]
Sent: Tuesday, August 14, 2012 12:03 PM
To: Stan Owocki
Cc: Samuel Harrold; mesa-users at lists.sourceforge.net; Wise, Michael; Giannotti, Maurizio; Mohammed, Aaron (Barry Student)
Subject: Re: [mesa-users] MESAFace thanks and suggestions

Hi,

Slight bug in MesaFace.

The following is a correct version of the offending line in the script.


HistoryPlotLabel =
  Style["Mass= " <> ToString[star[[3, 2]]] <>
    "‘™˜SubscriptBox[™M, ™],  Metallicity=" <> ToString[star[[3, 3]]] <>
    "‘™˜SubscriptBox[™Z, ™]", HistoryPlotLabelStyle];


In the released version we had 3,1 and 3,2 - which are incorrect.


Regards,


Grant

On Sat, Aug 11, 2012 at 4:59 AM, Stan Owocki <owocki at bartol.udel.edu<mailto:owocki at bartol.udel.edu>> wrote:

It is, in fact, a shame that you need Mathematica to use MESAFace. We thought about CDF (in fact, Michael looked for quite a while into that). Also Stan Owocki originally suggested us to use CDF. However, as far as I know, you cannot download external data with CDF. Maybe Michael or Stan can add some more details on that.


Yes, CDF is limited in this way. A primitive CDF that I developed for teaching used EZWeb data already loaded for a given stellar mass.  I supposed one might consider making such sample versions for standard cases like M=Msun; but unless/until Wolfram can be persuaded to make CDF more capable for import/export, I guess usage of this nice tool will require a Mathematica license. Personally, I've had such since 1990, so I don't mind. And there a fair number of astronomy tools that require a licensed product like IDL, so I don't see it as particularly onerous to expect folks wanting to take advantage of this to get an academic license.

Stan



On Aug 10, 2012, at 11:26 AM, Samuel Harrold wrote:

Hi Maurizio,

I see that from http://reference.wolfram.com/mathematica/howto/CreateAComputableDocumentFormatFile.html, you're right that data import and export are not supported. I didn't realize that.
"
Data import and export are not supported from within CDF Player with the exception of Wolfram-curated data sources (ChemicalData, CountryData, WordData, etc.).
"

Hopefully this will change with future releases. And after recalling Rich Townsend's experience making the the MESA SDK, maybe it's better to not attempt a standalone executable.

Thanks anyhow for the terrific tool! I look forward to future releases!

Cheers,
Sam

On Fri, Aug 10, 2012 at 9:42 AM, Giannotti, Maurizio <MGiannotti at mail.barry.edu<mailto:MGiannotti at mail.barry.edu>> wrote:
Hi Sam,

Thanks for your email and suggestions. I am happy you like the interface.

It is, in fact, a shame that you need Mathematica to use MESAFace. We thought about CDF (in fact, Michael looked for quite a while into that). Also Stan Owocki originally suggested us to use CDF. However, as far as I know, you cannot download external data with CDF. Maybe Michael or Stan can add some more details on that.

Best,
Maurizio

Maurizio Giannotti,
Assistant Professor of Physics,
Physical Sciences, Barry University,
11300 NE 2nd Ave., Miami Shores, FL 33161
mgiannotti at mail.barry.edu<mailto:mgiannotti at mail.barry.edu>
305-899-4565<tel:305-899-4565> (office), 305-899-3479<tel:305-899-3479> (fax)

________________________________
From: samuel.harrold at gmail.com<mailto:samuel.harrold at gmail.com> [samuel.harrold at gmail.com<mailto:samuel.harrold at gmail.com>] on behalf of Samuel Harrold [harrold at astro.as.utexas.edu<mailto:harrold at astro.as.utexas.edu>]
Sent: Thursday, August 09, 2012 10:54 PM
To: Giannotti, Maurizio; Wise, Michael; Mohammed, Aaron (Barry Student)
Subject: MESAFace thanks and suggestions

Hello,

Thanks so much for making MESAFace! I've been using Mathematica to make my own quick diagnostic plots, but your code is terrific!

I'm sure you already have additional features in the works. For the people who don't have Mathematica, it would be useful to have the notebook in a Computable Document Format<http://www.wolfram.com/cdf/>, and eventually, it could also be useful to have as a standalone executable<http://www.wolfram.com/mathematica/new-in-8/integrated-c-workflow/create-standalone-executables-using-compiled-funct.html>.

Thank you for making such a useful plotting tool!

Best,
Sam
__________
Samuel Harrold
Graduate Student
Astronomy Department
University of Texas at Austin



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
mesa-users mailing list
mesa-users at lists.sourceforge.net<mailto:mesa-users at lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/mesa-users


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20120814/17f6fcf1/attachment.html>


More information about the Mesa-users mailing list