kipp Module

Public interface of kipp renderer.

Renders a Kippenhahn diagram from any load_convection input (KEPLER .cnv, MESA profiles, .kipp, MONASH seq). Only module convview.f90 uses: re-exports draw.f90 device and render routines, kipp_autoscale, cursor.f90 routines, and st, nmodels; holds no state.



Functions

private pure function list_index(s)

Return 1-based list position typed in s.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: s

Typed selector.

Return Value integer(kind=int32)


Subroutines

public subroutine kipp_load(filename)

Load every model of an input and build its axes.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: filename

Path of .cnv, .kipp or seq file, or MESA profiles dir.

public subroutine kipp_set_cmap(arg, ok)

Select colormap by name or by number in kipp_list_cmaps.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: arg

Colormap name or number, optionally suffixed _r.

logical, intent(out) :: ok

False for unknown colormap, leaving st%cmap unchanged.

public subroutine kipp_list_cmaps()

Print numbered colormaps, marking current one.

Arguments

None

public subroutine kipp_rebuild()

Rebuild model axes after change of axis quantity.

Read more…

Arguments

None

public subroutine kipp_set_unit(arg, ok)

Set display unit of axis matching unit's dimension.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: arg

Unit name or alias known to unit_id, or auto, solar or cgs.

logical, intent(out) :: ok

False for unknown unit.

private subroutine set_y_units(munit, runit)

Set mass and radius display units, keeping view.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: munit

Mass unit, a UNAME entry.

character(len=*), intent(in) :: runit

Radius unit, a UNAME entry.

public subroutine kipp_list_fields()

Print numbered colour selectors of color <name|number>.

Read more…

Arguments

None

public subroutine kipp_set_cfield(arg, ok)

Select colour field by name or by number in kipp_list_fields.

Read more…

Arguments

Type IntentOptional Attributes Name
character(len=*), intent(in) :: arg

Selector name, number, or negative number.

logical, intent(out) :: ok

False if selection refused.