{% extends "base.html" %} {% load ccp %} {% block title %}{{ case.name }} · {{ title }}{% endblock %} {% block crumbs %} ›{{ title }} ›{{ case.name }} {% endblock %} {% block run_button %} {% endblock %} {% block main %}

{{ title }}

{{ description }}

Method {{ state.polytropic_method }}
Points {% for s in steps %}{% if s.anchor == 'test' %}{{ s.hint }}{% endif %}{% endfor %}
{% if job %}
Last run {{ job.created|date:"H:i" }}
{% endif %}
{% csrf_token %}
{% include "core/includes/chev.html" %}

Options

Corrections, losses, oil and polytropic method
Calculation {% chk "opt_reynolds_correction" "Reynolds Correction" %} {% chk "opt_casing_heat_loss" "Casing Heat Loss" %} {% chk "opt_variable_speed" "Variable Speed" %} {% chk "opt_show_points" "Show Points" "If marked, shows points in the plotted curves in addition to interpolation." %}
Ambient pressure
{% inp "ambient_pressure_magnitude" %}
{% sel "ambient_pressure_unit" %}
Polytropic method {% sel "polytropic_method" %}
Test lube oil
{% inp "oil_specific_heat_magnitude" xdis="!opt.oilCp" %}
{% sel "oil_specific_heat_unit" xdis="!opt.oilCp" %}
Density
{% inp "oil_density_magnitude" xdis="!opt.oilCp" %}
{% sel "oil_density_unit" xdis="!opt.oilCp" %}
{% sel "oil_iso_classification" xdis="!opt.oilIso" %}
{% include "core/includes/gas_section.html" %}
{% include "core/includes/chev.html" %}

Data sheet

Guarantee point{% if is_b2b %}s of both sections (one unit per row){% endif %}
{% for t in layout.section_titles %}{% endfor %} {% if is_b2b %} {% else %} {% endif %} {% for row in layout.data_sheet %} {% for k in row.keys %}{% endfor %} {% endfor %}
ParameterUnit{% if is_b2b %}{{ t }}{% else %}Guarantee{% endif %}
Gas selection{% gas_sel "gas_section_1_point_guarantee" %} {% gas_sel "gas_section_2_point_guarantee" %}{% gas_sel "gas_point_guarantee" %}
{{ row.param.label }}{% help row.param.help %} {% sel row.unit_key %}{% inp k %}
{% include "core/includes/chev.html" %}

Curves

Vendor curve images and plot ranges; the image is stretched over the axis ranges
{% if is_b2b %}
{% for c in layout.curves %}{% endfor %}
{% endif %} {% for c in layout.curves %}
{% for r in c.rows %} {% endfor %}
CurveImagex unitx lowerx uppery unity lowery upper
{{ r.label }} {% with slot=r.image_key file=files|get:r.image_key kind="curve_image" %}{% include "core/partials/file_slot.html" %}{% endwith %} {% key "x_" r.prefix "_flow_units" as k %}{% sel k %} {% key "x_" r.prefix "_lower" as k %}{% inp k %} {% key "x_" r.prefix "_upper" as k %}{% inp k %} {% key "y_" r.prefix "_units" as k %}{% sel k %} {% key "y_" r.prefix "_lower" as k %}{% inp k %} {% key "y_" r.prefix "_upper" as k %}{% inp k %}
{% endfor %}
{% include "core/includes/chev.html" %}

Test data

Up to six test points; a point needs flow, suction pressure and temperature
{% if is_b2b %}
{% for t in layout.test %}{% endfor %}
{% endif %} {% for t in layout.test %} {# Changes here autosave through test_data, which also refreshes the orifice flows. #}
Flow input
Flow calculated per point from the orifice plate (ISO 5167) with the point's gas.
{% for i in layout.points %}{% endfor %}{% for k in t.gas_keys %}{% endfor %} {% include "performance_test/partials/flow_row.html" %} {% for row in t.orifice %} {% for k in row.keys %}{% endfor %} {% endfor %} {% for row in t.rows %} {% for k in row.keys %}{% endfor %} {% endfor %}
ParameterUnitPoint {{ i }}
Gas selection{% gas_sel k %}
{{ row.param.label }}{% help row.param.help %} {% if row.unit_key %}{% sel row.unit_key %}{% endif %}{% if row.select %}{% sel k %}{% else %}{% inp k %}{% endif %}
{{ row.param.label }}{% help row.param.help %} {% sel row.unit_key xdis=row.toggle %}{% inp k xdis=row.toggle %}
{% endfor %}

Calculation

Runs in the background; you can keep editing
{% if job %}{% include "core/partials/job.html" %}{% else %}
Fill the data sheet and at least one test point, then Calculate (⌘↵).
{% endif %}
{% if has_results %}

Results

Loading…
{% endif %}
{% endblock %} {% block inspector %} {% include "core/includes/case_inspector.html" with inspector_template="performance_test/partials/inspector.html" %} {% endblock %} {% block status %} {% if job and job.is_active %} Calculating {% else %} Ready {% endif %} {% endblock %} {% block status_extra %}Method: {{ state.polytropic_method }}{% endblock %} {% block save_status %}Saved {{ case.updated|time:"H:i:s" }}{% endblock %}