additional unicode tweaks
This commit is contained in:
parent
fed4154235
commit
f6c7622664
@ -127,7 +127,7 @@
|
|||||||
{
|
{
|
||||||
"data": {
|
"data": {
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"(inflow_loc\u1d47=4, x\u02e2=32, y\u02e2=40)"
|
"(inflow_locᵇ=4, xˢ=32, yˢ=40)"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"execution_count": 2,
|
"execution_count": 2,
|
||||||
@ -267,7 +267,7 @@
|
|||||||
"name": "stdout",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"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",
|
"name": "stdout",
|
||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"Some gradient info: StaggeredGrid[(inflow_loc\u1d47=4, x\u02e2=32, y\u02e2=40, vector\u1d5b=2), size=(32, 40), extrapolation=0]\n",
|
"Some gradient info: StaggeredGrid[(inflow_locᵇ=4, xˢ=32, yˢ=40, vectorᵛ=2), size=(32, 40), extrapolation=0]\n",
|
||||||
"(x\u02e2=31, y\u02e2=40) float32 -17.366662979125977 < ... < 14.014090538024902\n"
|
"(xˢ=31, yˢ=40) float32 -17.366662979125977 < ... < 14.014090538024902\n"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -334,7 +334,7 @@
|
|||||||
"source": [
|
"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",
|
"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",
|
"\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": 4,
|
||||||
"nbformat_minor": 0
|
"nbformat_minor": 1
|
||||||
}
|
}
|
||||||
|
@ -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}{]}" )
|
rect.append( "approach using continuous convolutions {[}\\\\protect\\\\hyperlink{cite.references:id14}{UPTK19}{]}" )
|
||||||
|
|
||||||
# fixup unicode symbols
|
# fixup unicode symbols
|
||||||
|
# compare book-in2.tex -> book.tex after iconv
|
||||||
|
|
||||||
recs.append( re.compile(r"’" ) ) # unicode '
|
recs.append( re.compile(r"’" ) ) # unicode '
|
||||||
rect.append( "\'" )
|
rect.append( "\'" )
|
||||||
@ -77,6 +78,12 @@ rect.append( " " )
|
|||||||
# recs.append( re.compile(r"") )
|
# recs.append( re.compile(r"") )
|
||||||
# rect.append( "" )
|
# rect.append( "" )
|
||||||
|
|
||||||
|
# recs.append( re.compile(r"") )
|
||||||
|
# rect.append( "" )
|
||||||
|
|
||||||
|
# recs.append( re.compile(r"") )
|
||||||
|
# rect.append( "" )
|
||||||
|
|
||||||
|
|
||||||
# fixup title , cumbersome...
|
# fixup title , cumbersome...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user