The Open Source Physics website will be unavailable Friday evening through Saturday afternoon as electrical work occurs in the American Center of Physics server room. Down time will begin at 6PM Eastern Time on Friday. Service is expected to resume by 6PM on Saturday, July 30.

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Hertzsprung–Russell (H-R) Diagrams Documents

This material has 2 associated documents. Select a document title to view a document's information.

Main Document

Hertzsprung–Russell (H-R) Diagrams 

written by Mario Belloni

The Hertzsprung–Russell (H-R) Diagrams model simulates Hertzsprung–Russell (HR or H-R) diagram for groups of stars. The diagram is a scatter plot of steller luminosity vs. stellar temperature. The luminosity of stars is proportional to the star's radius squared and its temperature to the fourth power, and for Main Sequence stars, their luminosity is also proportional to their mass to the 3.5 power. Since the range of stellar luminosities and stellar temperatures is so large, the plot uses a log-log scale. The diagram is a way to understand stellar evolution.

The HR diagram shows nearby stars, bright stars, and a user-defined star. One can also show the blackbody radiation curve and the user-defined star. The radius of the user-defined star (in Rsun) and the temperature of the user-defined star in Kelvin (5780 K is Tsun) can be changed.

Last Modified June 6, 2014

This file has previous versions.

Source Code Documents

Hertzsprung–Russell (H-R) Diagrams Source Code 

The source code zip archive contains an XML representation of the Hertzsprung–Russell (H-R) Diagrams Model.   Unzip this archive in your EJS workspace to compile and run this model using EJS.

Published November 11, 2010
Last Modified June 6, 2014

This file has previous versions.

The OSP Network:
Open Source Physics - Tracker - EJS Modeling
Physlet Physics
Physlet Quantum Physics