Skip to content

Commit

Permalink
Checkout prev versions of the notebooks that got modified somehow
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Apr 26, 2024
1 parent 048d45a commit ec9fb6a
Show file tree
Hide file tree
Showing 9 changed files with 610 additions and 610 deletions.
280 changes: 140 additions & 140 deletions studies/aggregation/scripts/Pareto_Investigations.ipynb

Large diffs are not rendered by default.

136 changes: 68 additions & 68 deletions validation/MFRTRT/Investigate_Aggregation.ipynb

Large diffs are not rendered by default.

136 changes: 68 additions & 68 deletions validation/MFRTRT/MFRTRT_Validation.ipynb

Large diffs are not rendered by default.

248 changes: 124 additions & 124 deletions validation/MFRTRT_STS/STS_Flow_Testing.ipynb

Large diffs are not rendered by default.

64 changes: 32 additions & 32 deletions validation/Pipe/plot_pipe_temps.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,72 +4,73 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import sys\n",
"\n",
"import numpy as np"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"cwd = os.getcwd()\n",
"join = os.path.join\n",
"norm = os.path.normpath"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"sys.path.insert(0, norm(join(cwd, '..', '..', '..', 'GLHE')))"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from unit_tests.glhe.topology.test_pipe import TestPipe\n",
"from glhe.interface.response import SimulationResponse"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"%matplotlib inline"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plt.style.use('seaborn-bright')\n",
"plt.rcParams['figure.figsize'] = [7, 5]\n",
"plt.rcParams['font.size'] = 14\n",
"\n",
"# pd.set_option('display.max_columns', None)\n",
"# pd.set_option('display.max_rows', None)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def check_response(m_dot, dt):\n",
" init_temp = 20\n",
Expand All @@ -90,13 +91,13 @@
" tau.append(t / t_tr)\n",
" \n",
" return tau, temps, re, t_tr"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"def plot_results(m_dot):\n",
" fig = plt.figure(dpi=200)\n",
Expand All @@ -118,80 +119,79 @@
" plt.grid()\n",
" plt.savefig('Pipe_Re-{:0.0f}.PNG'.format(re), bbox_inches='tight')\n",
" plt.show()"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot_results(0.01)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot_results(0.03)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot_results(0.05)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot_results(0.1)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot_results(0.25)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plot_results(0.5)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": false
},
"outputs": [],
"source": [
"plot_results(1.0)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"source": [],
"outputs": []
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
48 changes: 24 additions & 24 deletions validation/Radial_Numerical_BH/compare_radial_g-vals.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"import sys\n",
Expand All @@ -13,105 +14,105 @@
"\n",
"# from io import StringIO\n",
"# from scipy.interpolate import interp1d"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# shortcuts\n",
"cwd = os.getcwd()\n",
"join = os.path.join\n",
"norm = os.path.normpath"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"sys.path.append(norm(join(cwd, '..', '..', 'tests')))"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import tests"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import matplotlib.pyplot as plt\n",
"%matplotlib inline"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plt.style.use('seaborn-bright')\n",
"plt.rcParams['figure.figsize'] = [15, 9]\n",
"plt.rcParams['font.size'] = 12\n",
"\n",
"pd.set_option('display.max_columns', None)\n",
"# pd.set_option('display.max_rows', None)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_csv(\"GLHEPro_g-vals.csv\")"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"f_glhepro = interp1d(df['LNTTS (GLHEPro)'].dropna().values, df['g (GLHEPro)'].dropna().values)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"tst = tests.glhe.topology.test_radial_numerical_borehole.TestRadialNumericalBH().add_instance()\n",
"lntts, g = tst.calc_sts_g_functions()\n",
"f_sts = interp1d(lntts, g, fill_value='extrapolate')"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"x = np.arange(-14.5, -9, 0.1)"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"plt.plot(x, f_eplus(x), label='E+')\n",
"plt.plot(x, f_glhepro(x), label='GLHEPro')\n",
Expand All @@ -123,15 +124,14 @@
"plt.legend()\n",
"plt.grid()\n",
"plt.show()"
],
"outputs": []
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"source": [],
"outputs": []
"outputs": [],
"source": []
}
],
"metadata": {
Expand Down
Loading

0 comments on commit ec9fb6a

Please sign in to comment.