{% extends "base.html" %}
{% block title %}PhysikMDB - {{ system.short_name }} ({{ calculation.xc_functional }} / {{
calculation.basis_set
}})
{% endblock %}
{% block meta_description %}
{% endblock %}
{% block extra_css %}
{% endblock %}
{% block javascript %}
{# uPlot/THREE stay classic scripts exposing globals; the app's own code is ES
modules, so entry.js imports what it needs and only it is listed here.
Deferred classic scripts and module scripts run in document order, so the
two globals exist by the time entry.js runs. #}
{% endblock %}
{% block header %}
{{ calculation.xc_functional }}{{ calculation.basis_set }}q = {{ calculation.charge | int
if calculation.charge is not none else "—" | safe }}2S+1 = {{ (2 *
calculation.spin + 1) | int if calculation.spin is not none else "—" | safe }}
{% with view = 'orbitals' %}{% include "_header_view_switch.html" %}{% endwith %}
{% endblock %}
{% block content %}
{% include "_panel_real_space.html" %}
{% with band_map = true %}{% include "_panel_momentum.html" %}{% endwith %}
{# Orbital List #}
ORBITALS
{% if orbitals and orbitals[0].spin_channel is not none %}
{% endif %}
{# The column widths have to live here rather than on the cells:
tables are table-layout: fixed (base.css), which takes its
widths from the first row, and orbital-list.js prepends a
colspan="6" "load more" sentinel as soon as there is more to
page in - which silently made every column equal. #}
{% for orbital in orbitals|reverse %}
{{ orbital.name }}{% if orbital.name == 'HOMO'
%} ●{% endif
%}{% if orbital.name == 'LUMO'
%} ●{% endif
%}
{# Only visible (not just unhidden - see entry.css) on a
selected row while several orbitals are combined, so the
column's own width never shifts the rest of the row. #}
{{
orbital.symmetry }}
{{
orbital.occupation | int }}
{{ '%.3f' %
(orbital.energy | hartree_to_ev) }} eV
{% endfor %}
{# Every orbital's energy in the ±10 eV window, both spin channels -
independent of how many rows orbital-list.js has actually loaded,
so the energy plot (entry.js initEnergyPlot) is correct from the
first paint. #}
{# Info Area #}
{% include "_panel_info_pane.html" %}
{% with kpath = true, band_map = true, photoemission = true %}{% include "_panel_controls.html" %}{% endwith %}
{% include "_panel_calculations.html" %}
{% include "_panel_export.html" %}
{# Energy Spectrum #}
ENERGY SPECTRUM
{# The panel shows two different quantities, so its name, its tooltip and
its ? badge change with the view. The spectrum's are on the heading above;
the profile's ride here, so all four stay in the template. #}