This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| This file is the same as borehole.py but has an non-uniform cartesian mesh | |
| Coupled thermal flow model for brine temperature and wall | |
| temperature. Rock is an axisymmetric 2D mesh | |
| A two-dimensional axi-symmetric domain represents the heat in the rock | |
| surrounding the borehole. The rock is initially at the geo-thermal | |
| gradient and is heated as hot brine is injected. The rock is heated as | |
| the brine cools. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import matplotlib; matplotlib.rcParams["savefig.directory"] = "." | |
| from matplotlib import pyplot as plt | |
| from matplotlib.pyplot import figure | |
| from scipy.spatial import cKDTree | |
| def show_actual_predicted(actual, predicted, target_unit=""): | |
| assert len(actual.shape)==1 | |
| assert len(predicted.shape)==1 |
OlderNewer