ThermoPyle

ThermoPyle.fluid_plot(fluid, xvar='', yvar='', zvar='', coloring='')[source]

Does what it says on the tin. Makes a 3D Scatter Plot of the dataframe.

Parameters:
  • fluid (Union[CSVFluid, ThermoFluid]) – Which fluid object to make a plot for.
  • xvar (Text) – What variable to put on the x-axis
  • yvar (Text) – What variable to put on the y-axis
  • zvar (Text) – What variable to put on the z-axis
  • coloring (Text) – What variable to color by. Default is zvar.
Return type:

None

ThermoPyle.fluid_contour_plot(fluid, xvar='T', yvar='P', contour='U')[source]

Does what it says on the tin. Makes a Contour Plot of the Fluid.

Paramaters:
fluid (Union[CSVFluid, ThermoFluid]): What fluid object to get data from. xvar (Text): What is our x-variable yvar (Text): What is our y-variable? contour (Text): What contour to plot. Must be a variable in fluid.vars
Return type:None
ThermoPyle.rescale(oldrange, newrange)[source]

Creates a function that transforms a single variable from oldrange to newrange. Use it with map or Pandas.DataFrame.apply

Parameters:
  • oldrange (List[Union[float, int]]) – The old range of the data, [min, max]
  • newrange (List[Union[float, int]]) – The new range of the data, [min, max]
Return type:

Callable[[Union[float, int]], Union[float, int]]