plots.standing module

Plot the Standing-Katz diagram that relates compresibility factor with the reduced temperature and pression of a gas state.

Standing-Katz diagram

The diagram is configured in extended format for better visibility of all zones. Support for click interaction, let user save the chart as image and a dialog to calculate the compresibility factor:

calculate point

Configuration

Standing-Katz diagram configuration

The diagram let user configure several options like:

  • Equation to use, by default the Hall-Yarborough correlation, but it’s possible use one of available in lib.crude

  • Reduced temperatures lines plotted in diagram

  • Line style used in plot

  • Line style used in crux when use mouse

  • Grid line visibility and style

API Reference

The module include all related moody chart functionality
plots.standing.translate(context: str, sourceText: str, disambiguation: str = None, n: int = -1) str
plots.standing.calculate(config, dat=None)[source]

Plot calculate procedure

Parameters:
configConfigparser

pychemqt configparser configuration instance

datdict

dict with other method data

Returns:
datdict

dict with method data

Notes

This procedure is called when a new method of calculation of Z is necessary. Add the new data to the input dat with the other Method calculated yet

class plots.standing.Config(config=None, parent=None)[source]

Bases: QWidget

Standing-Katz chart configuration

Methods

value(config)

Update ConfigParser instance with the config

TITLE = 'Standing-Katz chart'
TITLECONFIG = 'Standing-Katz chart configuration'
__init__(config=None, parent=None)[source]
value(config)[source]

Update ConfigParser instance with the config

class plots.standing.Standing_Katz(parent=None)[source]

Bases: Chart

Standing-Katz chart dialog

Attributes:
note

Methods

calculate()

Define the functionality when click the calculate point button

clearCrux()

Delete crux and note text

click(event)

Update input and graph annotate when mouse click over chart

createCrux(Tr, Pr, Z)

Create a crux in selected point of plot and show data at bottom right corner

customUI()

Define custom UI element

paintEvent(event)

Do redraw in each change of window size or position

plot()

Plot the Standing-Katz chart using the indicate method

savePNG()

Save chart image to png file

setMask()

Mask both plot to show only the region useful

widgetConfig

title = 'Standing and Katz compressivitity factors chart for natural gas'
widgetConfig

alias of Config

note = None
customUI()[source]

Define custom UI element

savePNG()[source]

Save chart image to png file

setMask()[source]

Mask both plot to show only the region useful

paintEvent(event)[source]

Do redraw in each change of window size or position

click(event)[source]

Update input and graph annotate when mouse click over chart

plot()[source]

Plot the Standing-Katz chart using the indicate method

calculate()[source]

Define the functionality when click the calculate point button

clearCrux()[source]

Delete crux and note text

createCrux(Tr, Pr, Z)[source]

Create a crux in selected point of plot and show data at bottom right corner

class plots.standing.CalculateDialog(parent=None)[source]

Bases: QDialog

Dialog to calculate a specified point

Methods

calculate()

Calculate point procedure

__init__(parent=None)[source]
calculate()[source]

Calculate point procedure