drcassar / glasspy

Python module for scientists working with glass materials
https://glasspy.readthedocs.io
Other
28 stars 7 forks source link

Conversion of viscosity data #11

Closed grmaier closed 1 year ago

grmaier commented 1 year ago

I am curious about the chosen conversion of the viscosity data from the sciglass data to the glasspy data. In translators.py we have, e.g. for V500, the following: "V500": { "info": "Viscosity at 773 K", "rename": "Viscosity773K", "convert": lambda x: 10 ** (x - 1), "unit": "Pa.s", }

Why do you calculate 10**(x-1) and not just 10**x? I presumed that V500 in the sciglass database is the log10-value of the viscosity at 500C. Is it actually the the log10-value plus 1 instead? (How do I get this kind of information about the properties in the sciglass database?)

drcassar commented 1 year ago

Hi @grmaier.

Why do you calculate 10(x-1) and not just 10x

Some viscosity data in the SciGlass database is in base-10 logarithm of the viscosity value in Poise, not in Pa.s. In GlassPy I converted everything to SI units.

How do I get this kind of information about the properties in the sciglass database?

By looking at the references and piecing the information together. There is no other way that I know of.

grmaier commented 1 year ago

I see, thanks for the quick response!