additional unicode tweaks

This commit is contained in:
NT 2021-08-20 11:28:02 +02:00
parent fed4154235
commit f6c7622664
2 changed files with 13 additions and 6 deletions

View File

@ -127,7 +127,7 @@
{
"data": {
"text/plain": [
"(inflow_loc\u1d47=4, x\u02e2=32, y\u02e2=40)"
"(inflow_locᵇ=4, xˢ=32, yˢ=40)"
]
},
"execution_count": 2,
@ -267,7 +267,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Velocity dimensions: (inflow_loc\u1d47=4, x\u02e2=32, y\u02e2=40, vector\u1d5b=2)\n"
"Velocity dimensions: (inflow_locᵇ=4, xˢ=32, yˢ=40, vectorᵛ=2)\n"
]
}
],
@ -313,8 +313,8 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Some gradient info: StaggeredGrid[(inflow_loc\u1d47=4, x\u02e2=32, y\u02e2=40, vector\u1d5b=2), size=(32, 40), extrapolation=0]\n",
"(x\u02e2=31, y\u02e2=40) float32 -17.366662979125977 < ... < 14.014090538024902\n"
"Some gradient info: StaggeredGrid[(inflow_locᵇ=4, xˢ=32, yˢ=40, vectorᵛ=2), size=(32, 40), extrapolation=0]\n",
"(xˢ=31, yˢ=40) float32 -17.366662979125977 < ... < 14.014090538024902\n"
]
}
],
@ -334,7 +334,7 @@
"source": [
"The last two lines just print some information about the resulting gradient field. Naturally, it has the same shape as the velocity itself: it's a staggered grid with four inflow locations. The last line shows how to access the x-components of one of the gradients.\n",
"\n",
"We could use this to take a look at the content of the computed gradient with regular plotting functions, e.g., by converting the x component of one of the simulations to a numpy array via `velocity_grad.values.inflow_loc[0].vector[0].numpy('y,x')`. However, below we'll use phiflow's `view()` function instead. It automatically analyzes the grid content and provides UI buttons to choose different viewing modes. You can use them to show arrows, single components of the 2-dimensional velocity vectors, or their magnitudes.\n"
"We could use this to take a look at the content of the computed gradient with regular plotting functions, e.g., by converting the x component of one of the simulations to a numpy array via `velocity_grad.values.inflow_loc[0].vector[0].numpy('y,x')`. However, below we'll use phiflow's `view()` function instead. It automatically analyzes the grid content and provides UI buttons to choose different viewing modes. You can use them to show arrows, single components of the 2-dimensional velocity vectors, or their magnitudes. (Because of its interactive nature, the corresponding image won't show up outside of Jupyter, though.)\n"
]
},
{
@ -664,5 +664,5 @@
}
},
"nbformat": 4,
"nbformat_minor": 0
"nbformat_minor": 1
}

View File

@ -49,6 +49,7 @@ recs.append( re.compile(r"approach using continuous convolutions {.}.hyperlink{c
rect.append( "approach using continuous convolutions {[}\\\\protect\\\\hyperlink{cite.references:id14}{UPTK19}{]}" )
# fixup unicode symbols
# compare book-in2.tex -> book.tex after iconv
recs.append( re.compile(r"" ) ) # unicode '
rect.append( "\'" )
@ -77,6 +78,12 @@ rect.append( " " )
# recs.append( re.compile(r"") )
# rect.append( "" )
# recs.append( re.compile(r"") )
# rect.append( "" )
# recs.append( re.compile(r"") )
# rect.append( "" )
# fixup title , cumbersome...