In [10]:
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt, mpld3
import ThermoPyle as TP
import CoolProp.CoolProp as CP
from cytoolz import get
import itertools as it
%matplotlib notebook
mpld3.enable_notebook()
#print(plt.style.available)
plt.style.use(["seaborn-talk","seaborn-notebook","seaborn-paper"])

In [9]:
%run ../scripts/der_CSV_gen.py


Iteration 0
    Generating Initial Fluid Object.
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.194 seconds
    Time Elapsed: 0 hours, 0 minutes, 11.194 seconds


Iteration 1 of 124:
    Calculating Column d(P)/d(S)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.184 seconds
    Time Elapsed: 0 hours, 0 minutes, 22.378 seconds

Iteration 2 of 124:
    Calculating Column d(G)/d(D)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.643 seconds
    Time Elapsed: 0 hours, 0 minutes, 33.024 seconds

Iteration 3 of 124:
    Calculating Column d(S)/d(D)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.733 seconds
    Time Elapsed: 0 hours, 0 minutes, 43.758 seconds

Iteration 4 of 124:
    Calculating Column d(T)/d(G)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.638 seconds
    Time Elapsed: 0 hours, 0 minutes, 54.397 seconds

Iteration 5 of 124:
    Calculating Column d(T)/d(D)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.417 seconds
    Time Elapsed: 0 hours, 1 minutes, 5.814 seconds

Iteration 6 of 124:
    Calculating Column d(S)/d(P)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.369 seconds
    Time Elapsed: 0 hours, 1 minutes, 16.183 seconds

Iteration 7 of 124:
    Calculating Column d(S)/d(G)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.603 seconds
    Time Elapsed: 0 hours, 1 minutes, 26.787 seconds

Iteration 8 of 124:
    Calculating Column d(U)/d(G)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.198 seconds
    Time Elapsed: 0 hours, 1 minutes, 37.985 seconds

Iteration 9 of 124:
    Calculating Column d(P)/d(T)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.949 seconds
    Time Elapsed: 0 hours, 1 minutes, 48.934 seconds

Iteration 10 of 124:
    Calculating Column d(S)/d(P)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.952 seconds
    Time Elapsed: 0 hours, 1 minutes, 58.887 seconds

Iteration 11 of 124:
    Calculating Column d(G)/d(T)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.421 seconds
    Time Elapsed: 0 hours, 2 minutes, 10.307 seconds

Iteration 12 of 124:
    Calculating Column d(D)/d(U)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.041 seconds
    Time Elapsed: 0 hours, 2 minutes, 21.348 seconds

Iteration 13 of 124:
    Calculating Column d(P)/d(T)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.416 seconds
    Time Elapsed: 0 hours, 2 minutes, 32.764 seconds

Iteration 14 of 124:
    Calculating Column d(T)/d(P)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.415 seconds
    Time Elapsed: 0 hours, 2 minutes, 42.179 seconds

Iteration 15 of 124:
    Calculating Column d(S)/d(U)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.361 seconds
    Time Elapsed: 0 hours, 2 minutes, 51.54 seconds

Iteration 16 of 124:
    Calculating Column d(P)/d(T)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.797 seconds
    Time Elapsed: 0 hours, 3 minutes, 2.337 seconds

Iteration 17 of 124:
    Calculating Column d(P)/d(U)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.895 seconds
    Time Elapsed: 0 hours, 3 minutes, 12.232 seconds

Iteration 18 of 124:
    Calculating Column d(S)/d(U)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.702 seconds
    Time Elapsed: 0 hours, 3 minutes, 21.934 seconds

Iteration 19 of 124:
    Calculating Column d(D)/d(S)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.947 seconds
    Time Elapsed: 0 hours, 3 minutes, 31.881 seconds

Iteration 20 of 124:
    Calculating Column d(S)/d(P)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.72 seconds
    Time Elapsed: 0 hours, 3 minutes, 41.601 seconds

Iteration 21 of 124:
    Calculating Column d(T)/d(P)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.769 seconds
    Time Elapsed: 0 hours, 3 minutes, 51.37 seconds

Iteration 22 of 124:
    Calculating Column d(T)/d(S)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.745 seconds
    Time Elapsed: 0 hours, 4 minutes, 1.115 seconds

Iteration 23 of 124:
    Calculating Column d(D)/d(T)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.753 seconds
    Time Elapsed: 0 hours, 4 minutes, 10.868 seconds

Iteration 24 of 124:
    Calculating Column d(U)/d(S)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.897 seconds
    Time Elapsed: 0 hours, 4 minutes, 20.765 seconds

Iteration 25 of 124:
    Calculating Column d(T)/d(U)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.12 seconds
    Time Elapsed: 0 hours, 4 minutes, 30.885 seconds

Iteration 26 of 124:
    Calculating Column d(P)/d(D)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.711 seconds
    Time Elapsed: 0 hours, 4 minutes, 41.596 seconds

Iteration 27 of 124:
    Calculating Column d(D)/d(G)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 13.808 seconds
    Time Elapsed: 0 hours, 4 minutes, 55.404 seconds

Iteration 28 of 124:
    Calculating Column d(T)/d(D)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 13.979 seconds
    Time Elapsed: 0 hours, 5 minutes, 9.383 seconds

Iteration 29 of 124:
    Calculating Column d(P)/d(U)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.901 seconds
    Time Elapsed: 0 hours, 5 minutes, 19.284 seconds

Iteration 30 of 124:
    Calculating Column d(U)/d(T)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.014 seconds
    Time Elapsed: 0 hours, 5 minutes, 29.297 seconds

Iteration 31 of 124:
    Calculating Column d(P)/d(S)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 12.244 seconds
    Time Elapsed: 0 hours, 5 minutes, 41.541 seconds

Iteration 32 of 124:
    Calculating Column d(D)/d(S)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 12.406 seconds
    Time Elapsed: 0 hours, 5 minutes, 53.948 seconds

Iteration 33 of 124:
    Calculating Column d(S)/d(U)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 12.027 seconds
    Time Elapsed: 0 hours, 6 minutes, 5.975 seconds

Iteration 34 of 124:
    Calculating Column d(G)/d(T)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 12.804 seconds
    Time Elapsed: 0 hours, 6 minutes, 18.78 seconds

Iteration 35 of 124:
    Calculating Column d(G)/d(P)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.615 seconds
    Time Elapsed: 0 hours, 6 minutes, 28.395 seconds

Iteration 36 of 124:
    Calculating Column d(S)/d(U)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.652 seconds
    Time Elapsed: 0 hours, 6 minutes, 39.047 seconds

Iteration 37 of 124:
    Calculating Column d(G)/d(D)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 12.476 seconds
    Time Elapsed: 0 hours, 6 minutes, 51.528 seconds

Iteration 38 of 124:
    Calculating Column d(U)/d(T)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 12.636 seconds
    Time Elapsed: 0 hours, 7 minutes, 4.164 seconds

Iteration 39 of 124:
    Calculating Column d(P)/d(S)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.979 seconds
    Time Elapsed: 0 hours, 7 minutes, 14.143 seconds

Iteration 40 of 124:
    Calculating Column d(T)/d(S)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.951 seconds
    Time Elapsed: 0 hours, 7 minutes, 26.094 seconds

Iteration 41 of 124:
    Calculating Column d(D)/d(T)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.975 seconds
    Time Elapsed: 0 hours, 7 minutes, 38.069 seconds

Iteration 42 of 124:
    Calculating Column d(S)/d(G)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.603 seconds
    Time Elapsed: 0 hours, 7 minutes, 49.672 seconds

Iteration 43 of 124:
    Calculating Column d(P)/d(G)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 12.305 seconds
    Time Elapsed: 0 hours, 8 minutes, 1.976 seconds

Iteration 44 of 124:
    Calculating Column d(G)/d(U)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.884 seconds
    Time Elapsed: 0 hours, 8 minutes, 11.86 seconds

Iteration 45 of 124:
    Calculating Column d(S)/d(D)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.839 seconds
    Time Elapsed: 0 hours, 8 minutes, 22.7 seconds

Iteration 46 of 124:
    Calculating Column d(D)/d(P)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.649 seconds
    Time Elapsed: 0 hours, 8 minutes, 34.349 seconds

Iteration 47 of 124:
    Calculating Column d(G)/d(S)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 16.546 seconds
    Time Elapsed: 0 hours, 8 minutes, 50.895 seconds

Iteration 48 of 124:
    Calculating Column d(D)/d(P)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 13.253 seconds
    Time Elapsed: 0 hours, 9 minutes, 4.148 seconds

Iteration 49 of 124:
    Calculating Column d(G)/d(S)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 13.55 seconds
    Time Elapsed: 0 hours, 9 minutes, 17.698 seconds

Iteration 50 of 124:
    Calculating Column d(U)/d(D)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 15.743 seconds
    Time Elapsed: 0 hours, 9 minutes, 33.442 seconds

Iteration 51 of 124:
    Calculating Column d(S)/d(T)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 12.692 seconds
    Time Elapsed: 0 hours, 9 minutes, 46.134 seconds

Iteration 52 of 124:
    Calculating Column d(U)/d(P)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 14.055 seconds
    Time Elapsed: 0 hours, 10 minutes, 0.189 seconds

Iteration 53 of 124:
    Calculating Column d(G)/d(T)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.735 seconds
    Time Elapsed: 0 hours, 10 minutes, 10.924 seconds

Iteration 54 of 124:
    Calculating Column PHASE
================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 8.87 seconds
    Time Elapsed: 0 hours, 10 minutes, 19.794 seconds

Iteration 55 of 124:
    Calculating Column d(D)/d(U)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.0 seconds
    Time Elapsed: 0 hours, 10 minutes, 29.794 seconds

Iteration 56 of 124:
    Calculating Column d(T)/d(U)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.074 seconds
    Time Elapsed: 0 hours, 10 minutes, 38.869 seconds

Iteration 57 of 124:
    Calculating Column d(U)/d(G)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.328 seconds
    Time Elapsed: 0 hours, 10 minutes, 48.197 seconds

Iteration 58 of 124:
    Calculating Column d(U)/d(T)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.748 seconds
    Time Elapsed: 0 hours, 10 minutes, 58.946 seconds

Iteration 59 of 124:
    Calculating Column d(U)/d(P)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.947 seconds
    Time Elapsed: 0 hours, 11 minutes, 8.893 seconds

Iteration 60 of 124:
    Calculating Column d(U)/d(S)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.222 seconds
    Time Elapsed: 0 hours, 11 minutes, 18.116 seconds

Iteration 61 of 124:
    Calculating Column d(U)/d(D)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.429 seconds
    Time Elapsed: 0 hours, 11 minutes, 28.544 seconds

Iteration 62 of 124:
    Calculating Column G
============================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.214 seconds
    Time Elapsed: 0 hours, 11 minutes, 39.758 seconds

Iteration 63 of 124:
    Calculating Column d(U)/d(G)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.418 seconds
    Time Elapsed: 0 hours, 11 minutes, 50.176 seconds

Iteration 64 of 124:
    Calculating Column d(U)/d(D)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.931 seconds
    Time Elapsed: 0 hours, 12 minutes, 0.106 seconds

Iteration 65 of 124:
    Calculating Column d(S)/d(P)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.409 seconds
    Time Elapsed: 0 hours, 12 minutes, 9.515 seconds

Iteration 66 of 124:
    Calculating Column d(T)/d(G)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 17.732 seconds
    Time Elapsed: 0 hours, 12 minutes, 27.248 seconds

Iteration 67 of 124:
    Calculating Column d(P)/d(U)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 15.979 seconds
    Time Elapsed: 0 hours, 12 minutes, 43.227 seconds

Iteration 68 of 124:
    Calculating Column d(U)/d(P)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.993 seconds
    Time Elapsed: 0 hours, 12 minutes, 55.219 seconds

Iteration 69 of 124:
    Calculating Column d(S)/d(D)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 13.799 seconds
    Time Elapsed: 0 hours, 13 minutes, 9.018 seconds

Iteration 70 of 124:
    Calculating Column d(U)/d(P)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 10.66 seconds
    Time Elapsed: 0 hours, 13 minutes, 19.679 seconds

Iteration 71 of 124:
    Calculating Column d(U)/d(S)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.627 seconds
    Time Elapsed: 0 hours, 13 minutes, 31.306 seconds

Iteration 72 of 124:
    Calculating Column d(P)/d(D)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.018 seconds
    Time Elapsed: 0 hours, 13 minutes, 42.324 seconds

Iteration 73 of 124:
    Calculating Column d(T)/d(S)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.799 seconds
    Time Elapsed: 0 hours, 13 minutes, 52.124 seconds

Iteration 74 of 124:
    Calculating Column S
============================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.356 seconds
    Time Elapsed: 0 hours, 14 minutes, 1.479 seconds

Iteration 75 of 124:
    Calculating Column d(S)/d(D)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.467 seconds
    Time Elapsed: 0 hours, 14 minutes, 10.946 seconds

Iteration 76 of 124:
    Calculating Column d(U)/d(T)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.52 seconds
    Time Elapsed: 0 hours, 14 minutes, 20.467 seconds

Iteration 77 of 124:
    Calculating Column d(P)/d(D)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.628 seconds
    Time Elapsed: 0 hours, 14 minutes, 30.094 seconds

Iteration 78 of 124:
    Calculating Column d(D)/d(G)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.41 seconds
    Time Elapsed: 0 hours, 14 minutes, 39.505 seconds

Iteration 79 of 124:
    Calculating Column d(T)/d(D)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.235 seconds
    Time Elapsed: 0 hours, 14 minutes, 48.74 seconds

Iteration 80 of 124:
    Calculating Column d(S)/d(G)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.321 seconds
    Time Elapsed: 0 hours, 14 minutes, 58.061 seconds

Iteration 81 of 124:
    Calculating Column d(T)/d(G)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.128 seconds
    Time Elapsed: 0 hours, 15 minutes, 7.189 seconds

Iteration 82 of 124:
    Calculating Column d(D)/d(T)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 8.974 seconds
    Time Elapsed: 0 hours, 15 minutes, 16.162 seconds

Iteration 83 of 124:
    Calculating Column d(U)/d(S)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.693 seconds
    Time Elapsed: 0 hours, 15 minutes, 25.855 seconds

Iteration 84 of 124:
    Calculating Column d(T)/d(P)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.222 seconds
    Time Elapsed: 0 hours, 15 minutes, 35.078 seconds

Iteration 85 of 124:
    Calculating Column d(S)/d(T)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.14 seconds
    Time Elapsed: 0 hours, 15 minutes, 44.218 seconds

Iteration 86 of 124:
    Calculating Column d(G)/d(U)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.179 seconds
    Time Elapsed: 0 hours, 15 minutes, 53.397 seconds

Iteration 87 of 124:
    Calculating Column d(P)/d(G)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.108 seconds
    Time Elapsed: 0 hours, 16 minutes, 2.505 seconds

Iteration 88 of 124:
    Calculating Column d(T)/d(P)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.22 seconds
    Time Elapsed: 0 hours, 16 minutes, 11.725 seconds

Iteration 89 of 124:
    Calculating Column d(S)/d(G)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.25 seconds
    Time Elapsed: 0 hours, 16 minutes, 20.975 seconds

Iteration 90 of 124:
    Calculating Column d(T)/d(G)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.253 seconds
    Time Elapsed: 0 hours, 16 minutes, 30.228 seconds

Iteration 91 of 124:
    Calculating Column d(P)/d(U)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.06 seconds
    Time Elapsed: 0 hours, 16 minutes, 39.289 seconds

Iteration 92 of 124:
    Calculating Column d(G)/d(P)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.799 seconds
    Time Elapsed: 0 hours, 16 minutes, 49.088 seconds

Iteration 93 of 124:
    Calculating Column d(G)/d(P)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 11.251 seconds
    Time Elapsed: 0 hours, 17 minutes, 0.339 seconds

Iteration 94 of 124:
    Calculating Column d(G)/d(S)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.924 seconds
    Time Elapsed: 0 hours, 17 minutes, 10.263 seconds

Iteration 95 of 124:
    Calculating Column d(G)/d(U)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.271 seconds
    Time Elapsed: 0 hours, 17 minutes, 19.534 seconds

Iteration 96 of 124:
    Calculating Column d(T)/d(D)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.586 seconds
    Time Elapsed: 0 hours, 17 minutes, 29.12 seconds

Iteration 97 of 124:
    Calculating Column d(D)/d(U)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.472 seconds
    Time Elapsed: 0 hours, 17 minutes, 38.592 seconds

Iteration 98 of 124:
    Calculating Column d(D)/d(G)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.238 seconds
    Time Elapsed: 0 hours, 17 minutes, 47.83 seconds

Iteration 99 of 124:
    Calculating Column d(S)/d(T)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.157 seconds
    Time Elapsed: 0 hours, 17 minutes, 56.988 seconds

Iteration 100 of 124:
    Calculating Column d(D)/d(S)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.006 seconds
    Time Elapsed: 0 hours, 18 minutes, 5.994 seconds

Iteration 101 of 124:
    Calculating Column d(D)/d(T)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.153 seconds
    Time Elapsed: 0 hours, 18 minutes, 15.147 seconds

Iteration 102 of 124:
    Calculating Column d(P)/d(S)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.314 seconds
    Time Elapsed: 0 hours, 18 minutes, 24.46 seconds

Iteration 103 of 124:
    Calculating Column d(T)/d(U)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.168 seconds
    Time Elapsed: 0 hours, 18 minutes, 33.628 seconds

Iteration 104 of 124:
    Calculating Column d(D)/d(U)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.306 seconds
    Time Elapsed: 0 hours, 18 minutes, 42.935 seconds

Iteration 105 of 124:
    Calculating Column d(G)/d(U)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.365 seconds
    Time Elapsed: 0 hours, 18 minutes, 52.3 seconds

Iteration 106 of 124:
    Calculating Column d(P)/d(D)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.258 seconds
    Time Elapsed: 0 hours, 19 minutes, 1.558 seconds

Iteration 107 of 124:
    Calculating Column d(P)/d(G)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.222 seconds
    Time Elapsed: 0 hours, 19 minutes, 10.78 seconds

Iteration 108 of 124:
    Calculating Column d(T)/d(S)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.082 seconds
    Time Elapsed: 0 hours, 19 minutes, 19.862 seconds

Iteration 109 of 124:
    Calculating Column d(T)/d(U)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.378 seconds
    Time Elapsed: 0 hours, 19 minutes, 29.24 seconds

Iteration 110 of 124:
    Calculating Column d(G)/d(S)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.223 seconds
    Time Elapsed: 0 hours, 19 minutes, 38.463 seconds

Iteration 111 of 124:
    Calculating Column d(D)/d(P)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 8.993 seconds
    Time Elapsed: 0 hours, 19 minutes, 47.456 seconds

Iteration 112 of 124:
    Calculating Column d(P)/d(T)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.289 seconds
    Time Elapsed: 0 hours, 19 minutes, 56.745 seconds

Iteration 113 of 124:
    Calculating Column d(D)/d(P)|G
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.279 seconds
    Time Elapsed: 0 hours, 20 minutes, 6.024 seconds

Iteration 114 of 124:
    Calculating Column d(G)/d(D)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.199 seconds
    Time Elapsed: 0 hours, 20 minutes, 15.223 seconds

Iteration 115 of 124:
    Calculating Column d(D)/d(S)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.121 seconds
    Time Elapsed: 0 hours, 20 minutes, 24.344 seconds

Iteration 116 of 124:
    Calculating Column d(G)/d(T)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.237 seconds
    Time Elapsed: 0 hours, 20 minutes, 33.581 seconds

Iteration 117 of 124:
    Calculating Column d(G)/d(D)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.118 seconds
    Time Elapsed: 0 hours, 20 minutes, 42.699 seconds

Iteration 118 of 124:
    Calculating Column d(G)/d(P)|U
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.171 seconds
    Time Elapsed: 0 hours, 20 minutes, 51.871 seconds

Iteration 119 of 124:
    Calculating Column d(D)/d(G)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.133 seconds
    Time Elapsed: 0 hours, 21 minutes, 1.003 seconds

Iteration 120 of 124:
    Calculating Column D
============================================
    Success!
    This Iteration: 0 hours, 0 minutes, 8.948 seconds
    Time Elapsed: 0 hours, 21 minutes, 9.951 seconds

Iteration 121 of 124:
    Calculating Column d(U)/d(D)|P
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.154 seconds
    Time Elapsed: 0 hours, 21 minutes, 19.105 seconds

Iteration 122 of 124:
    Calculating Column d(U)/d(G)|T
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.3 seconds
    Time Elapsed: 0 hours, 21 minutes, 28.405 seconds

Iteration 123 of 124:
    Calculating Column d(S)/d(T)|D
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.169 seconds
    Time Elapsed: 0 hours, 21 minutes, 37.574 seconds

Iteration 124 of 124:
    Calculating Column d(P)/d(G)|S
======================================================
    Success!
    This Iteration: 0 hours, 0 minutes, 9.175 seconds
    Time Elapsed: 0 hours, 21 minutes, 46.75 seconds

---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
C:\Users\at8183jk\Desktop\Drive\Dropsync\School\Winona\ResearchProject\code\scripts\der_CSV_gen.py in <module>()
     67 
     68 
---> 69 myfluid.data["V"] = pd.Series(myfluid.M / myfluid.data["D"], index=myfluid.data.index)
     70 myfluid.refresh()
     71 myfluid.clean()

NameError: name 'pd' is not defined

In [17]:
myfluid.data["V"] = pd.Series(myfluid.M / myfluid.data["D"], index=myfluid.data.index)
myfluid.refresh()
myfluid.clean()

In [19]:
myfluid.write_data("../finalData/", mode="dual", filename="with_derivatives_and_volume")

In [26]:
rescaled = myfluid.copy()

In [23]:
varrange = {col:[min(rescaled.data[col]),max(rescaled.data[col])] for col in rescaled.vars}

invars = ["T", "P", "S", "D", "V"]

for var in invars:
    rescaled.data[var] = rescaled.data[var].apply(TP.rescale(get(var, varrange), [0,216]))

rescaled.data["U"] = rescaled.data["U"].apply(TP.rescale(urange, [15, 152]))

In [27]:
rescaled.write_data("../finalData/", mode="dual", filename="with_derivatives_and_volume_SCALED")

In [40]:
for i in range(10):
    dU = 0.1*i + 0.1
    uSel = 10 + 10*i
    rescaled.data.ix[np.abs(rescaled.data["U"] - uSel) <= 1, "U"] = rescaled.data.ix[np.abs(rescaled.data["U"] - uSel) <= 1 , "U"] + dU

rescaled.data.ix[np.abs(rescaled.data["d(U)/d(S)|P"] - 400) <= 50, 'U'] = rescaled.data.ix[np.abs(rescaled.data["d(U)/d(S)|P"] - 400) <= 50, 'U'] + 5

In [41]:
TP.fluid_plot(rescaled)



In [25]:
myfluid2 = rescaled.copy()
print(myfluid2.vars)
myfluid2.yvar = "S"
myfluid2.vars[1] = "S"
myfluid2.units[1] = "J/kg*K"
#myfluid2.clean()
myfluid2.make_meta()
print(myfluid2.meta)
TP.fluid_plot(myfluid2)


['T', 'P', 'U', 'S', 'd(U)/d(S)|P', 'd(U)/d(P)|T', 'd(U)/d(T)|P']
pmap({'fluid': 'Water', 'numPoints': [216, 216], 'date': '2017-03-01 @ 10:28:53', 'units': ['K', 'J/kg/K', 'J/kg', 'J/kg/K', 'UnknownVar', 'UnknownVar', 'UnknownVar'], 'yvar': 'S', 'colorMap': 'viridis', 'xvar': 'T', 'vars': ['T', 'S', 'U', 'S', 'd(U)/d(S)|P', 'd(U)/d(P)|T', 'd(U)/d(T)|P'], 'zvar': 'U'})

In [42]:
rescaled.write_data("../finalData/")

In [ ]: