anisotropy/data/analyze.ipynb

731 lines
180 KiB
Plaintext
Raw Normal View History

2022-03-04 17:19:56 +05:00
{
"cells": [
{
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
2022-04-21 19:19:33 +05:00
"import warnings\n",
"warnings.simplefilter(action = 'ignore')\n",
"\n",
2022-03-04 17:19:56 +05:00
"from anisotropy.database import Database, tables\n",
"import pathlib\n",
2022-03-05 01:08:18 +05:00
"import peewee as pw\n",
"import numpy as np\n",
"import pandas as pd\n",
"import matplotlib.pyplot as plt"
2022-03-04 17:19:56 +05:00
]
},
{
"cell_type": "code",
2022-03-05 01:08:18 +05:00
"execution_count": 2,
2022-03-04 17:19:56 +05:00
"metadata": {},
"outputs": [],
"source": [
"db = Database(pathlib.Path(\"anisotropy.db\").resolve())\n",
2022-03-05 01:08:18 +05:00
"execution = 5"
2022-03-04 17:19:56 +05:00
]
},
{
"cell_type": "code",
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
2022-03-05 01:08:18 +05:00
"def load_data(execution: int, field: str):\n",
" if not db.getExecution(execution):\n",
" print(\"Execution not found\")\n",
2022-03-04 17:19:56 +05:00
"\n",
2022-03-05 01:08:18 +05:00
" for model in db.tables:\n",
" try:\n",
" column = getattr(model, field)\n",
" \n",
" except AttributeError:\n",
" pass\n",
2022-03-04 17:19:56 +05:00
"\n",
2022-03-05 01:08:18 +05:00
" else:\n",
" break\n",
"\n",
" query = model.select(tables.Shape.alpha, column, tables.Shape.direction, tables.Shape.label)\n",
" idn = db.tables.index(model)\n",
"\n",
" for table in reversed(db.tables[ :idn]):\n",
" query = query.join(table, pw.JOIN.LEFT_OUTER)\n",
" \n",
" query = query.switch(tables.Shape)\n",
" query = query.where(\n",
" tables.Shape.exec_id == execution,\n",
" # tables.Shape.label == structure,\n",
" )\n",
" query = query.order_by(tables.Shape.label, tables.Shape.direction, tables.Shape.alpha)\n",
"\n",
" with db:\n",
" if query.exists():\n",
" table = []\n",
" for row in query.dicts():\n",
" for k in row.keys():\n",
" if type(row[k]) == list:\n",
" row[k] = str(row[k])\n",
"\n",
" table.append(row)\n",
" \n",
" else:\n",
" table = None\n",
"\n",
" if table is None:\n",
" print(\"Results not found\")\n",
2022-03-04 17:19:56 +05:00
"\n",
" else:\n",
2022-03-05 01:08:18 +05:00
" return pd.DataFrame(table)\n",
2022-03-04 17:19:56 +05:00
"\n",
2022-04-21 19:19:33 +05:00
"def permeability(label, direction):\n",
" def concrete(execution, field):\n",
" df = load_data(execution, field)\n",
" return df[df.label == label][df.direction == direction][field].to_numpy()\n",
"\n",
" alpha = concrete(7, \"alpha\")\n",
" viscosity = concrete(5, \"viscosity\")\n",
" viscosityKinematic = concrete(5, \"viscosityKinematic\")\n",
" length = concrete(7, \"length\")\n",
" flowRate = concrete(5, \"flowRate\")\n",
" areaCellOutlet = concrete(7, \"areaCellOutlet\")\n",
" pressureInlet = concrete(5, \"pressureInlet\")\n",
" pressureOutlet = concrete(5, \"pressureOutlet\")\n",
" density = concrete(5, \"density\")\n",
"\n",
" return viscosity * length * flowRate / (areaCellOutlet * (pressureInlet - pressureOutlet))\n",
2022-03-04 17:19:56 +05:00
"\n",
2022-03-05 01:08:18 +05:00
"def nanmean(arr):\n",
" temp = arr.copy()\n",
"\n",
2022-04-21 19:19:33 +05:00
" if np.isnan(temp[0]):\n",
" temp[0] = temp[1]\n",
"\n",
2022-03-05 01:08:18 +05:00
" for n, item in enumerate(temp):\n",
" if np.all(np.isnan(item)):\n",
" \n",
" vals = temp[n - 1 : n + 2]\n",
"\n",
" if np.sum(~np.isnan(vals)) <= 1:\n",
" vals = temp[n - 2 : n + 3]\n",
"\n",
" temp[n] = vals[~np.isnan(vals)].mean()\n",
"\n",
" return temp\n",
"\n",
2022-04-21 19:19:33 +05:00
"def filter_group(arr, nan = True, qhigh = True, quantile = 0.97):\n",
2022-03-05 01:08:18 +05:00
" temp = arr.copy()\n",
" check = True\n",
2022-04-21 19:19:33 +05:00
" quan = np.quantile(temp[~np.isnan(temp)], quantile)\n",
2022-03-05 01:08:18 +05:00
" limit = 1000\n",
"\n",
" while check:\n",
" if nan and np.any(np.isnan(temp)):\n",
" temp = nanmean(temp)\n",
" check = True\n",
" \n",
" elif qhigh and np.any(quan < temp):\n",
" temp[quan < temp] = np.nan\n",
" check = True\n",
"\n",
" else:\n",
" check = False \n",
" \n",
" if limit <= 0:\n",
" break\n",
"\n",
" else:\n",
" limit -= 1\n",
"\n",
" return temp"
2022-03-04 17:19:56 +05:00
]
},
2022-04-21 19:19:33 +05:00
{
"cell_type": "code",
"execution_count": 4,
"metadata": {},
"outputs": [],
"source": [
"plt.rcParams.update({\n",
" \"font.size\": 18,\n",
" \"lines.markersize\": 9.0,\n",
" \"lines.linewidth\": 3\n",
"})\n",
"savefig = True\n",
"anisotropy = pd.DataFrame({\"simple\": None, \"bodyCentered\": None, \"faceCentered\": None}, index = [\"A21\", \"A31\"])"
]
},
2022-03-04 17:19:56 +05:00
{
2022-03-05 01:08:18 +05:00
"cell_type": "markdown",
2022-03-04 17:19:56 +05:00
"metadata": {},
"source": [
2022-03-05 01:08:18 +05:00
"Porosity"
2022-03-04 17:19:56 +05:00
]
},
{
"cell_type": "code",
2022-04-21 19:19:33 +05:00
"execution_count": 57,
2022-03-04 17:19:56 +05:00
"metadata": {},
"outputs": [
{
2022-03-05 01:08:18 +05:00
"data": {
2022-04-21 19:19:33 +05:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAvEAAAGDCAYAAACiOk+2AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABxTUlEQVR4nO3dd3hVVdbH8e9KTwgk1NCL9N4RUJpYQLBRRBRGRIoF7DOOM446zjjOqFgAC8I7FqxIsWIBNdhgpKmggIAgSJWeAIGU/f5xbmLABBJIcnKT3+d57pPcfdq6bG6ysu8+a5tzDhERERERCR4h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6GKCIiIhK0lMRLoQsNMf5+SQuuOaseAF9v2MP1Ly9j7optPkcmIiIiEpyUxEuR61i3AtOv7UTfFtUAeHP5Fm58eRlJKaknOVJEREREQEm8+CAkxOjWsDJR4aGAV19+Z1JKVqWbVdsOkJKqqTYiIiIiuVESL777Q5e6zBjbBTMjNT2Dkc8v5pbXvvE7LBEREZFiS0m8FAuZ5SfDQoxHL2/DdT3rA94o/Z0zv2PDroN+hiciIiJSrCiJl2LFzOhSvyJtasUDsHLLft75bivJKWkAHDqaRnpG8V8KWURERKQwKYmXYq1r/Up8/ddzaVkzDoDH56/lvMcWqDyliIiIlGpa7EmKvcwbXsGrbBMTEUpkmHdT7FvfbKF9nfLULB/jV3giIiIiRU4j8RJUzmuWwC3nNgIgKSWVO2d9x/99scHnqERERMQviYmJmBmPPPLI77a
2022-03-05 01:08:18 +05:00
"text/plain": [
2022-04-21 19:19:33 +05:00
"<Figure size 864x432 with 1 Axes>"
2022-03-05 01:08:18 +05:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
2022-03-04 17:19:56 +05:00
}
],
"source": [
2022-03-05 01:08:18 +05:00
"df = load_data(execution, \"porosity\")\n",
"alpha = df[\"alpha\"].unique()\n",
"simple = df[df.label == \"simple\"][df.direction == \"[0.0, 0.0, 1.0]\"][\"porosity\"].to_numpy()\n",
"bodyCentered = df[df.label == \"bodyCentered\"][df.direction == \"[0.0, 0.0, 1.0]\"][\"porosity\"].to_numpy()\n",
"faceCentered = df[df.label == \"faceCentered\"][df.direction == \"[0.0, 0.0, 1.0]\"][\"porosity\"].to_numpy()\n",
"\n",
2022-04-21 19:19:33 +05:00
"fig, ax = plt.subplots(nrows = 1, ncols = 1, figsize = (12, 6))\n",
"\n",
2022-03-05 01:08:18 +05:00
"ax.plot(alpha, np.pad(simple, (0, alpha.size - simple.size), 'constant', constant_values = np.nan), \":\", label = \"КП\")\n",
"ax.plot(alpha, np.pad(bodyCentered, (0, alpha.size - bodyCentered.size), 'constant', constant_values = np.nan), \"--\", label = \"КОП\")\n",
"ax.plot(alpha, np.pad(faceCentered, (0, alpha.size - faceCentered.size), 'constant', constant_values = np.nan), \"-.\", label = \"КГЦ\")\n",
"plt.legend()\n",
"plt.grid(True)\n",
"plt.xlabel(r\"$\\alpha$\")\n",
"plt.ylabel(r\"$m$\")\n",
"plt.show()\n",
2022-03-04 17:19:56 +05:00
"\n",
2022-03-05 01:08:18 +05:00
"if savefig:\n",
2022-04-21 19:19:33 +05:00
" fig.tight_layout()\n",
" fig.savefig(\"porosity-rounded.tiff\")"
2022-03-04 17:19:56 +05:00
]
},
{
2022-03-05 01:08:18 +05:00
"cell_type": "markdown",
2022-03-04 17:19:56 +05:00
"metadata": {},
"source": [
2022-03-05 01:08:18 +05:00
"Simple structure"
2022-03-04 17:19:56 +05:00
]
},
{
"cell_type": "code",
2022-04-21 19:19:33 +05:00
"execution_count": 69,
2022-03-04 17:19:56 +05:00
"metadata": {},
"outputs": [
{
"data": {
2022-04-21 19:19:33 +05:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAs8AAAGDCAYAAADUAP09AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAA5hUlEQVR4nO3de7xcVX3//9cnkBDgEIgNROQWBBXqBSjHCl5PLChiReFb7LcULBehVKNF+8WvClUUFGtb5ScqGqmgqf5SkCZVUCoXDyCgkEAQBBGBQAMakZDAgSTksr5/zJxwcphzztpzZs/tvJ6PxzwmZ8/ae6/ZaybznjVrrx0pJSRJkiSNbVKrKyBJkiR1CsOzJEmSlMnwLEmSJGUyPEuSJEmZDM+SJElSJsOzJEmSlGnLVlegiBkzZqRZs2bVfOzpp59m2223bW6FVCrbtPvYpt3HNu0+tmn3sU3rs3jx4j+klHYcvryjwvOsWbNYtGhRzcf6+/vp6+trboVUKtu0+9im3cc27T62afexTesTE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C9wDnATRGxdcY23gf8b2B1dTuSJElSR8md5/l7wLkppVVDln0tIu4DzgBOAr48xjbeAzyaUlofEV8GXla4tpIkSeoYvedcxR8Gnh21zIyeKR01d3RWz3NKadGw4DzoP6r3r8jYxsMppfVFKidJkqTONVZwzi3TTsZ7wuCu1fvl462IJEmS1O7qDs8RsQXwj8B64LsNq5EkSZLUpnLHPNdyHnAw8PGU0r2Nqc7zRcQpwCkAM2fOpL+/v2a5gYGBER9TZ7JNu49t2n1s0+5jm3afTmj
2022-03-04 17:19:56 +05:00
"text/plain": [
2022-04-21 19:19:33 +05:00
"<Figure size 864x432 with 1 Axes>"
2022-03-04 17:19:56 +05:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
2022-03-05 01:08:18 +05:00
"df = load_data(execution, \"flowRate\")\n",
"simple = df[df.label == \"simple\"].groupby(df.direction)\n",
"alpha = simple.get_group(\"[0.0, 0.0, 1.0]\")[\"alpha\"].to_numpy()\n",
"\n",
2022-04-21 19:19:33 +05:00
"k1 = (permeability(\"simple\", \"[0.0, 0.0, 1.0]\"))\n",
"k2 = (permeability(\"simple\", \"[1.0, 0.0, 0.0]\"))\n",
"k3 = (permeability(\"simple\", \"[1.0, 1.0, 1.0]\"))\n",
2022-03-05 01:08:18 +05:00
"\n",
2022-04-21 19:19:33 +05:00
"#poly = np.polynomial.Polynomial.fit(alpha, anisotropy_21, 1)\n",
2022-03-05 01:08:18 +05:00
"\n",
2022-04-21 19:19:33 +05:00
"fig, ax = plt.subplots(nrows = 1, ncols = 1, figsize = (12, 6))\n",
"ax.plot(alpha, k2 / k1, \"s\", label = \"$k_2$ / $k_1$\")\n",
"ax.plot(alpha, k3 / k1, \"^\", label = \"$k_3$ / $k_1$\")\n",
2022-03-05 01:08:18 +05:00
"#ax.plot(alpha, poly(alpha), \"-\")\n",
2022-03-04 17:19:56 +05:00
"plt.legend()\n",
"plt.grid(True)\n",
2022-03-05 01:08:18 +05:00
"plt.xlabel(r\"$\\alpha$\")\n",
2022-04-21 19:19:33 +05:00
"#plt.ylabel(\"Анизотропия проницаемости\")\n",
"#plt.title(\"Простая кубическая\")\n",
2022-03-04 17:19:56 +05:00
"plt.show()\n",
"\n",
"if savefig:\n",
2022-04-21 19:19:33 +05:00
" fig.tight_layout()\n",
" fig.savefig(\"anisotropy-simple.tiff\")"
2022-03-04 17:19:56 +05:00
]
},
{
"cell_type": "code",
2022-04-21 19:19:33 +05:00
"execution_count": 70,
2022-03-05 01:08:18 +05:00
"metadata": {},
"outputs": [],
2022-04-21 19:19:33 +05:00
"source": [
"anisotropy[\"simple\"] = [(k2 / k1).mean(), (k3 / k1).mean()]"
]
2022-03-05 01:08:18 +05:00
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Body-centered structure"
]
},
{
"cell_type": "code",
2022-04-21 19:19:33 +05:00
"execution_count": 71,
2022-03-04 17:19:56 +05:00
"metadata": {},
"outputs": [
{
"data": {
2022-04-21 19:19:33 +05:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAA0cAAAGXCAYAAAB4GyuFAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABEMUlEQVR4nO3de5xdZXno8d9DSAiQQIBAuBNFueihJBJQENvhGKxFIiKXigds0EM42ojctIJIbRWwlSiFepToaVPvhEvSBpRiwAEkaAAJgkBAIMpFKQkkZEgmN97zx9pDJ8OemTUze+21957f9/OZz2bWetdazzwZ9qxnv5cVKSUkSZIkabjbouwAJEmSJKkRWBxJkiRJEhZHkiRJkgRYHEmSJEkSYHEkSZIkSYDFkSRJkiQBsGXZARRl/PjxaeLEiWWH0RJeeeUVtt1227LDGHbMeznMe3nMfTnMezmaNe8bX90IwJZbNO8tZLPmvtk1Ut7vu+++5Smlnavta97f7H5MnDiRe++9t+wwWkJ7ezttbW1lhzHsmPdymPfymPt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fPp2U0mZfFkaSGoarmrWWO/6xW69RN2tegl/9W/3jaTDOOVKrsziSJGkoXNWsdfzXI/Dckur7NrwCC78AnS/XMyJJdWZxJEnSYBW9qpm9UvV151dh04be92/aAHe4jLXUyiyOJEkarGqrmlVZiXPQ7JWqr+cfgrSp9/0b18JT7XULR1L9De9ZhZIkDVZfq5rt9+dDP3+1XqndDh76edW7TziXRhru7DmSJGk
2022-03-04 17:19:56 +05:00
"text/plain": [
2022-04-21 19:19:33 +05:00
"<Figure size 864x432 with 1 Axes>"
2022-03-04 17:19:56 +05:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
2022-03-05 01:08:18 +05:00
"df = load_data(execution, \"flowRate\")\n",
"bodyCentered = df[df.label == \"bodyCentered\"].groupby(df.direction)\n",
"alpha = bodyCentered.get_group(\"[0.0, 0.0, 1.0]\")[\"alpha\"].to_numpy()\n",
"\n",
2022-04-21 19:19:33 +05:00
"k1 = filter_group(permeability(\"bodyCentered\", \"[0.0, 0.0, 1.0]\"))\n",
"k2 = filter_group(permeability(\"bodyCentered\", \"[1.0, 0.0, 0.0]\"))\n",
"k3 = filter_group(permeability(\"bodyCentered\", \"[1.0, 1.0, 1.0]\"))\n",
2022-03-05 01:08:18 +05:00
"\n",
"#poly = np.polynomial.Polynomial.fit(alpha, anisotropy_21, 10)\n",
"\n",
2022-04-21 19:19:33 +05:00
"fig, ax = plt.subplots(nrows = 1, ncols = 1, figsize = (12, 6))\n",
"ax.plot(alpha, k2 / k1, \"s\", label = r\"$k_2$ / $k_1$\")\n",
"ax.plot(alpha, k3 / k1, \"^\", label = r\"$k_3$ / $k_1$\")\n",
"ax.axvline(0.13, linestyle = \"-.\", color = \"green\")\n",
2022-03-05 01:08:18 +05:00
"#ax.plot(alpha, poly(alpha), \"-\")\n",
2022-03-04 17:19:56 +05:00
"plt.legend()\n",
"plt.grid(True)\n",
2022-03-05 01:08:18 +05:00
"plt.xlabel(r\"$\\alpha$\")\n",
2022-04-21 19:19:33 +05:00
"#plt.ylabel(\"Анизотропия проницаемости\")\n",
"#plt.title(\"Кубическая объемноцентрированная\")\n",
2022-03-04 17:19:56 +05:00
"\n",
"if savefig:\n",
2022-04-21 19:19:33 +05:00
" fig.tight_layout()\n",
" fig.savefig(\"anisotropy-bodycentered.tiff\")"
]
},
{
"cell_type": "code",
"execution_count": 72,
"metadata": {},
"outputs": [],
"source": [
"anisotropy[\"bodyCentered\"] = [(k2 / k1).mean(), (k3 / k1).mean()]"
2022-03-04 17:19:56 +05:00
]
},
2022-03-05 01:08:18 +05:00
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Face-centered structure"
]
},
2022-03-04 17:19:56 +05:00
{
"cell_type": "code",
2022-04-21 19:19:33 +05:00
"execution_count": 73,
2022-03-04 17:19:56 +05:00
"metadata": {},
"outputs": [
{
"data": {
2022-04-21 19:19:33 +05:00
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAtoAAAGDCAYAAAAVh7eRAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAA6i0lEQVR4nO3de5hcVZno/+9LyAXoAMFgDBEIAgJ6FBiCguJMZ0QHceSig0cZQGYc0GGCBh1vI3qYEdDxJ8qQ4ajR3xHFC5IjiQOMiFwaGAETIkEuAbkFBlAkhFwa0kmnWeePvTtWmuru6k7tXV1V38/z1FOptdfe661a6e631l577UgpIUmSJKm+tml0AJIkSVIrMtGWJEmSCmCiLUmSJBXARFuSJEkqgIm2JEmSVAATbUmSJKkA2zY6gKJMnTo1zZw5s9FhtJznn3+eHXbYodFhaBTsu+ZkvzUv+6552XfNqZH9tnTp0pUppV0Hlrdsoj1z5kzuuOOORofRcrq6uujs7Gx0GBoF+6452W/Ny75rXvZdc2pkv0XEY9XKnToiSZIkFaCmRDsiPhMRCyLikYhIEbFipA1FxIci4gcRcX9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68kL+PLHKtkkD6lSVUnoQuBzYJyJeXcfYJEmSpLorK9F+Kn+eUWXbDCBV1BnKivx5ah1ikiRJkgpTVqK9JH8+vMq2w4AHUkrdNRynf8rI03WJSpIkSSpI3RPtiNgjIvaPiPEVxT8F1gNzImJcRd13Aa8CflBRtkNETGKAiDgYOAFYnlJ6uN5xS5IkSfVU08WQEXEysGf+cldgQkScnb9+LKV0aUX17wF/BuxFPtUjpfRMRHw
2022-03-04 17:19:56 +05:00
"text/plain": [
2022-04-21 19:19:33 +05:00
"<Figure size 864x432 with 1 Axes>"
2022-03-04 17:19:56 +05:00
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
2022-03-05 01:08:18 +05:00
"df = load_data(execution, \"flowRate\")\n",
"faceCentered = df[df.label == \"faceCentered\"].groupby(df.direction)\n",
"alpha = faceCentered.get_group(\"[0.0, 0.0, 1.0]\")[\"alpha\"].to_numpy()\n",
"\n",
2022-04-21 19:19:33 +05:00
"k1 = filter_group(permeability(\"faceCentered\", \"[0.0, 0.0, 1.0]\"))\n",
"k2 = filter_group(permeability(\"faceCentered\", \"[1.0, 0.0, 0.0]\"))\n",
"k3 = filter_group(permeability(\"faceCentered\", \"[1.0, 1.0, 1.0]\"))\n",
2022-03-05 01:08:18 +05:00
"\n",
"#poly = np.polynomial.Polynomial.fit(alpha, anisotropy_21, 10)\n",
"\n",
2022-04-21 19:19:33 +05:00
"fig, ax = plt.subplots(nrows = 1, ncols = 1, figsize = (12, 6))\n",
"ax.plot(alpha, filter_group(k2 / k1, quantile = 0.97), \"s\", label = r\"$k_2$ / $k_1$\")\n",
"ax.plot(alpha, filter_group(k3 / k1, quantile = 0.8), \"^\", label = r\"$k_3$ / $k_1$\")\n",
2022-03-05 01:08:18 +05:00
"#ax.plot(alpha, poly(alpha), \"-\")\n",
2022-03-04 17:19:56 +05:00
"plt.legend()\n",
"plt.grid(True)\n",
2022-03-05 01:08:18 +05:00
"plt.xlabel(r\"$\\alpha$\")\n",
2022-04-21 19:19:33 +05:00
"#plt.ylabel(\"Анизотропия проницаемости\")\n",
"#plt.title(\"Кубическая гранецентрированная\")\n",
"plt.show()\n",
"\n",
"if savefig:\n",
" fig.tight_layout()\n",
" fig.savefig(\"anisotropy-facecentered.tiff\")"
]
},
{
"cell_type": "code",
"execution_count": 74,
"metadata": {},
"outputs": [],
"source": [
"anisotropy[\"faceCentered\"] = [(k2 / k1).mean(), (k3 / k1).mean()]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Anisotropy mean values"
]
},
{
"cell_type": "code",
"execution_count": 78,
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>simple</th>\n",
" <th>bodyCentered</th>\n",
" <th>faceCentered</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>A21</th>\n",
" <td>2.2591</td>\n",
" <td>0.7571</td>\n",
" <td>1.1312</td>\n",
" </tr>\n",
" <tr>\n",
" <th>A31</th>\n",
" <td>1.5660</td>\n",
" <td>1.0036</td>\n",
" <td>0.9148</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" simple bodyCentered faceCentered\n",
"A21 2.2591 0.7571 1.1312\n",
"A31 1.5660 1.0036 0.9148"
]
},
"execution_count": 78,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"anisotropy.round(4)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Analytical porosity"
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {},
"outputs": [],
"source": [
"def porosity_a(a, label):\n",
" if label == \"simple\":\n",
" val = (1 - np.pi * (2 - 3 * a ** 2 * (3 - a)) / (12 * (1 - a) ** 3))\n",
"\n",
" elif label == \"bodyCentered\":\n",
" a13 = a[a <= 0.134]\n",
" a13g = a[a > 0.134]\n",
" a = a13\n",
" val = (1 - np.pi * np.sqrt(3) * (1 - 2 * a ** 2 * (3 - a)) / (8 * (1 - a) ** 3)\n",
" )\n",
" a = a13g\n",
" val2 = (1 - np.pi * np.sqrt(3) * (1 - 2 * a ** 2 * (3 - a)) / (8 * (1 - a) ** 3) +\n",
" np.pi * (np.sqrt(3) - 2 * (1 - a)) ** 2 * \n",
" (np.sqrt(3) - (1 - a)) / (8 * (1 - a)**3)\n",
" )\n",
" val = np.append(val, val2)\n",
"\n",
" elif label == \"faceCentered\":\n",
" val = (1 - np.pi * (1 - 3 * a ** 2 * (3 - a)) / (3 * np.sqrt(2) * (1 - a) ** 3))\n",
"\n",
" return val\n",
"\n",
"def pad(x, y):\n",
" return np.pad(y, (0, x.size - y.size), 'constant', constant_values = np.nan)"
]
},
{
"cell_type": "code",
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
"alpha = np.linspace(0, 0.3, 50)\n",
"porosity_simple = porosity_a(alpha[alpha <= 0.2929], \"simple\")\n",
"porosity_bodyCentered = porosity_a(alpha[alpha <= 0.1835], \"bodyCentered\")\n",
"porosity_faceCentered = porosity_a(alpha[alpha <= 0.134], \"faceCentered\")"
]
},
{
"cell_type": "code",
"execution_count": 7,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAhcAAAGKCAYAAAC/yWNIAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAABedElEQVR4nO3dd3gUVdvH8e9JJ4QWepUuSBcEGwKKCoKNoqKgVLEgIpZH1NdHfeyKWBBEUFFQQBQ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c8XFgBKLgSAN+au49Xv13HVaz/xx+b9bocjIhK0UlNT6dWrFzNmzOCOO+5g9OjRJ5Z98cUXNGrUiEmTJnHllVfy+uuv8+STT1KyZEnuu+8+LrjgAnbt2uVi9IGh2yLChj3xjP7xHwC2HjjGwo37aXlWrMtRiYgEn7S0NHr37s0nn3zCoEGDGDNmDMY4UzCsXLmSm266iXLlyhEXF0edOnVObHfvvfcyfvx4br/9dm644YYTV0UKK125EGqXj+H1Xi0oGRXG+bVjGXxJnVNvJCJSxKSlpdGnTx+mTZtG//79GTduXKYE4b///S+JiYmMGzcuU2Jx3KBBg+jZsyfz589n1qxZgQw94JRcCOAM9vx62CW8emMLQk+aCC3VRzEuEZGixOPx0LdvX6ZMmULfvn0ZP358psQiMTGRWbNmUa1aNa666qps9zNo0CAAPv3003yP2U26LSInVC1dzGf74zNXcSw5jaeubUSJqPAARyUiBcaPz8G853O37rm3wTWvZ26bORT+fD9327d7GDqMyNz20Y3w9xxK5LTOafB4PPT
"text/plain": [
"<Figure size 576x432 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"fig, ax = plt.subplots(nrows = 1, ncols = 1, figsize = (8, 6))\n",
"\n",
"ax.plot(alpha, pad(alpha, porosity_simple), \":\", label = \"КП\")\n",
"ax.plot(alpha, pad(alpha, porosity_bodyCentered), \"--\", label = \"КОЦ\")\n",
"ax.plot(alpha, pad(alpha, porosity_faceCentered), \"-.\", label = \"КГЦ\")\n",
"plt.legend()\n",
"plt.grid(True)\n",
"plt.xlabel(r\"$\\alpha$\")\n",
"plt.ylabel(r\"$m$\")\n",
"plt.show()\n",
"\n",
"if savefig:\n",
" fig.tight_layout()\n",
" fig.savefig(\"porosity-analytical.tiff\")"
]
},
{
"cell_type": "code",
"execution_count": 131,
"metadata": {},
"outputs": [],
"source": [
"df = load_data(execution, \"porosity\")\n",
"alpha = df[\"alpha\"].unique()\n",
"simple = df[df.label == \"simple\"][df.direction == \"[0.0, 0.0, 1.0]\"][\"porosity\"].to_numpy()\n",
"bodyCentered = df[df.label == \"bodyCentered\"][df.direction == \"[0.0, 0.0, 1.0]\"][\"porosity\"].to_numpy()\n",
"faceCentered = df[df.label == \"faceCentered\"][df.direction == \"[0.0, 0.0, 1.0]\"][\"porosity\"].to_numpy()\n",
"\n",
"part_simple = pad(alpha, simple)[alpha <= 0.29] / porosity_a(alpha[alpha <= 0.29], \"simple\")\n",
"part_bodyCentered = pad(alpha, bodyCentered)[alpha <= 0.18] / porosity_a(alpha[alpha <= 0.18], \"bodyCentered\")\n",
"part_faceCentered = pad(alpha, faceCentered)[alpha <= 0.13] / porosity_a(alpha[alpha <= 0.13], \"faceCentered\")\n"
]
},
{
"cell_type": "code",
"execution_count": 145,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAABoAAAAQCAYAAAAI0W+oAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAAB00lEQVR4nL3UPWzNYRTH8U8bCUm9JRoaA+KlIiIiMTQIg8TgZTBZLAYGE2kXluNEBEkHkQ5MEkwWJiQkommMHQwGgyqLl6ANDUtTw30u1/W/tyTit5w85/md55vz/5/n6ZiZmfE/NKdxkZkXsRW96MZXjOMOhiLiQ5P/JVa2OPttRPRUgnASo3iAd+hCH87gWGb2RcTrpppJXKoAfWnZERZGxLfmisw8h9M4heNN2xMRcaYC9Is6GxdVkKJbJa6b7cBWau6olQ6U+LRib25mHsYKTBXPcERMzwrKzAHMxyK14dhRDrhQYe/BjabcWGYeiYjH9USnag0gcKJA7mNPRLxv8l3D7gLrwiZcxSrcy8zNdWNHu3uUmcuwrXSyAPsjYrRlwc+6QfTjTkQcbNcRiIi3EXEbe7AE12eDFF0pcWc90RbUABzHM2zMzO4/KKl/4q6/AhUtL3G6raumvhJf1BM/pi4ze9WejcnGiszsxFksxZOI+FTyG/AqIqaa/KswVJY3fwNhL85n5gjG8AHLsAur8QZHG/yH0J+Zw2rv4WeswT7Mw10MVoEeYq3aOG/BYrUL+FztnlyOiI8N/kdYX7zb1f7HBEaK/0ZE/BjptuP9L/UdP8eNfEo28QwAAAAASUVORK5CYII=",
"text/latex": [
"$\\displaystyle 35$"
],
"text/plain": [
"35"
]
},
"execution_count": 145,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"porosity_a(alpha[alpha <= 0.18], \"bodyCentered\").size"
]
},
{
"cell_type": "code",
"execution_count": 151,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAfsAAAGDCAYAAAAs+rl+AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAAAsTAAALEwEAmpwYAAA3M0lEQVR4nO3de5xcVZnv/8+TJuRKiDEXkjgQRSQORogEBDmSRlHkkJ8CDUKYZGhyEogSkKCZEUEnHh3hDAnJkQjBMAyDQRISQxgPEA4XGxhBIdxRQG6tTudAujWBNN2dS/f6/bF3JdXVddldt71r7+/79apX0WvfVq0U/fRae61nm3MOERERia8BYVdAREREKkvBXkREJOYU7EVERGJOwV5ERCTmFOxFRERiTsFeREQk5vYLuwKVMnr0aDdp0qReZe+//z7Dhg0Lp0I1TO1WHLVbcdRuxVG7FSdu7fb000+3OefGZJbHNthPmjSJzZs39ypramqivr4+nArVMLVbcdRuxVG7FUftVpy4tZuZ/TFbuYbxRUREYk7BXkREJOYU7EVERGJOwV5ERCTmFOxFRERiTsFeREQk5hTsRUREYi626+yD6urqorW1la6uLvbs2RN2dSLpwAMP5OWXX67qNQcOHMjYsWMZMWJEVa8rIhJHiQ727777Lu+88w5jxozhoIMOYr/99sPMwq5W5OzYsYMDDjigatdzztHZ2UlLSwuAAr6ISIkSHezb2tr40Ic+xNCh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wirYC8
"text/plain": [
"<Figure size 576x432 with 1 Axes>"
]
},
"metadata": {
"needs_background": "light"
},
"output_type": "display_data"
}
],
"source": [
"plt.rcParams.update({\n",
" \"lines.markersize\": 6.0\n",
"})\n",
"fig, ax = plt.subplots(nrows = 1, ncols = 1, figsize = (8, 6))\n",
"\n",
"ax.plot(alpha, pad(alpha, part_simple), \"o\", label = \"КП\")\n",
"ax.plot(alpha, pad(alpha, part_bodyCentered), \"s\", label = \"КОП\")\n",
"ax.plot(alpha, pad(alpha, part_faceCentered), \"^\", label = \"КГЦ\")\n",
"plt.legend()\n",
"plt.grid(True)\n",
"plt.xlabel(r\"$\\alpha$\")\n",
"#plt.ylabel(r\"\")\n",
2022-03-05 01:08:18 +05:00
"plt.show()\n",
2022-03-04 17:19:56 +05:00
"\n",
"if savefig:\n",
2022-04-21 19:19:33 +05:00
" fig.tight_layout()\n",
" fig.savefig(\"porosity-proportion.tiff\")"
]
},
{
"cell_type": "code",
"execution_count": 152,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAANIAAAAQCAYAAABjuSH9AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAAISklEQVR4nO2bfbBWVRXGf1dBNFQySKmpVBgpIPXaB0IqQhqUgIFhNQ1MOgPkqCMK+JFlD8vGlAoKtQ9QRqyYmlIkFSWUmAi1nEkcbSAlPsWKBLuGApFAf6x94Nx9z7nvu897++8+M+/se9bZX+vZ66y999r7Nh08eJBOdKITjaFLLDCz9wG3Ap8GegJ/B5YAJulf9VZsZk3ApPAbCDQB64B7gfmSDkT5xwPnA83AmcBxwCJJExLanAD8NDxOlnRvSb5RwFRgAId1/BMwR9IzJWUuAK4GhgAnADuBF4G5kh5rRPdcuSTuzWwzcHJRXcB2Sb0b1d3MZgEfA/oBvYA9wJbQ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eAA/K7kQWGdmD+Eb7v740qcJuEmt749dhRM9x/ye2hpc37G4d5oUGxqJugekcv8FfE+zCr/7tgsPZY8CjsbX8PlrQlV0vwi43cxW47PBTuAk/LZCn1B+cqxIxbFM5bkKx40gW9bNL3rZahqVtAE/I1iID+J0fHDmAoNVcEGxHTyAhzAnANPwUOZ8YED+fCOHZg5vGkcGWZ+cbHxC24UIh50X4VdY1uJ7gun4UugxYKSkuVGZbcBHcS9/Gu4xhwGPAOdIerCgqVTdq3C/Er831xe/LjMNN/DVOF+j8zcEquiOf3gL8GXfJXh4+nPA6/hMOVDS2gJ1mkkcywo8J3NcFWH2P5eCIEOGps5/o+hEJxrH/wDJobz0mEzU2wAAAABJRU5ErkJggg==",
"text/latex": [
"$\\displaystyle 0.914869058316947$"
],
"text/plain": [
"0.9148690583169465"
]
},
"execution_count": 152,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"part_simple.mean()"
]
},
{
"cell_type": "code",
"execution_count": 154,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAANIAAAAQCAYAAABjuSH9AAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAAIPklEQVR4nO2bf7BVVRXHPw9RM1QysJh+TAkTjZD2sEJIUV4WlKSJYdM0kDQD1BgDCJhE0ddl4wQ1oK/oByDjM2NqTJERoSc/ZDLUdEafo82jJBASShIIQ4GIH/2x9oHt4dx7zzn3Tn+978yd/c7ee+211177x1pr79d0/PhxutCFLtSH7ukMM3sfcDvwWaAX8A9gBWCS/pW3YTMbBUwFBkTtPAsskPRUFbqrgMnAUOA8YA/wItAqaXU9NGY2BrgSaAY+CpwDLJM0tkK7vYDRwCjgIuC9wOHQ9j3APZKONVL+QDsWuC98TpR0d6p8fOBfDccknZaiKyR/oJkHfBzoD/QGDgLb8Tm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hHavQ7f8SakFVqUxsyuC2Vw8s5jqJm1hb93S5oZ1b8RX0RH8QUyJeOY3yapLfouK39ZJGZd1kuGt6Co/MDVwA/MbCN+IuwB3o2/CuiLyzUxxWatmR3ETeD9uNyj8Dd610j6e0bXyui+MErInxtvOUolbcHvCNrwBTQDj8C0AkPyKD9c5l6NP8foxP2BGfhF7mpgpKTWDLodeGRrIW5LT8VfDawELpP0YANomjnpAI8MeX2jvDGp+sl9yGl42FcZv/GNkL8MwmXh5eQPMjRTTP51uPlyPh6puwV/FrUXt1IGSupM0TyAh6/HAtPxMPZiYICk32d1qozuS6KZYvLnRlPXv1F0oQv143/2dYuALA3BlgAAAABJRU5ErkJggg==",
"text/latex": [
"$\\displaystyle 0.866128471396414$"
],
"text/plain": [
"0.8661284713964136"
]
},
"execution_count": 154,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"part_bodyCentered[~np.isnan(part_bodyCentered)].mean()"
]
},
{
"cell_type": "code",
"execution_count": 155,
"metadata": {},
"outputs": [
{
"data": {
"image/png": "iVBORw0KGgoAAAANSUhEUgAAAMYAAAAQCAYAAABN/ABvAAAAOXRFWHRTb2Z0d2FyZQBNYXRwbG90bGliIHZlcnNpb24zLjUuMSwgaHR0cHM6Ly9tYXRwbG90bGliLm9yZy/YYfK9AAAACXBIWXMAABJ0AAASdAHeZh94AAAHyUlEQVR4nO2ae7BXVRXHPxdFNERSUakpXyQGpMFUCKEgqWgBKpnVOOBjRsgxR5SXZmOLr44KliRKD1DGF46OD8RHaCgxkdljJq+TDaQMgoglCgZdA8KE/lj7wLn7nsPvnPO7P/+635k7+/72a33PXvux1tq7adeuXXSgAx1ojX3jDEmfAW4AzgIOBf4JLAJkZv8q2rGkJuDS8NcPaAJWAncD88xsZ72yJa0FjsqhsMHMehbgORZ4IPwcb2Z3R+UzgS8DvYEewDbgzcBrjpltiupfDNxTQ+xOM9snald6vEK7kcBEoC97xuwvwCwz+0O9vELbSnNC0mnAFcBg4GBgE/AqMNvMFtf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7xk/HJNhsYVOKdFLjiuuFx4kl4uG4e0DfrfqGC7GXAM6HOBUHGMNwcuggYlXXrWhIv4EftYXhYdCpwHvA+vmP2M7MVWQ3DiXYyxR3IsuO1E58gVwMrcH9iMm5GLgbONLPZ9fKqMifMbD3+JmoO7odMxN9HPQ0MMbPHs2SV4NZwvTR1PDvvQAfa4v+O5k7D0lMsqwAAAABJRU5ErkJggg==",
"text/latex": [
"$\\displaystyle 0.90543798706737$"
],
"text/plain": [
"0.90543798706737"
]
},
"execution_count": 155,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"part_faceCentered[~np.isnan(part_faceCentered)].mean()"
2022-03-04 17:19:56 +05:00
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
"interpreter": {
"hash": "19649669bd52b0be75e091dcf60d2128e4a347083ff474cfec5ff9275df3ceed"
},
"kernelspec": {
"display_name": "Python 3.9.9 64-bit ('anisotropy': conda)",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.10"
},
"orig_nbformat": 4
},
"nbformat": 4,
"nbformat_minor": 2
}