fixed typo, and script update

This commit is contained in:
N_T 2023-11-14 21:18:45 +01:00
parent 3a52104c71
commit 370ee58d4b
3 changed files with 19 additions and 5 deletions

View File

@ -626,7 +626,7 @@
"This example illustrated how the differentiable physics approach can easily be extended towards significantly more \n", "This example illustrated how the differentiable physics approach can easily be extended towards significantly more \n",
"complex PDEs. Above, we've optimized for a mini-batch of 20 steps of a full Navier-Stokes solver.\n", "complex PDEs. Above, we've optimized for a mini-batch of 20 steps of a full Navier-Stokes solver.\n",
"\n", "\n",
"This is a powerful basis to bring NNs into the picture. As you might have noticed, our degrees of freedom were still a regular grid, and we've jointly solved a single inverse problem. There were three cases to solve as a mini-batch, of course, but nonetheless the setup still represents a direct optimization. Thus, in line with the PINN example of {doc}`physicalloss-code` we've not really dealt with a _machine learning_ task here. However, DP training allows for a range of flexible compinations with NNs that will be the topic of the next chapters.\n" "This is a powerful basis to bring NNs into the picture. As you might have noticed, our degrees of freedom were still a regular grid, and we've jointly solved a single inverse problem. There were three cases to solve as a mini-batch, of course, but nonetheless the setup still represents a direct optimization. Thus, in line with the PINN example of {doc}`physicalloss-code` we've not really dealt with a _machine learning_ task here. However, DP training allows for a range of flexible combinations with NNs that will be the topic of the next chapters.\n"
] ]
}, },
{ {
@ -671,4 +671,4 @@
}, },
"nbformat": 4, "nbformat": 4,
"nbformat_minor": 1 "nbformat_minor": 1
} }

View File

@ -1,6 +1,7 @@
# source this file with "." in a shell # source this file with "." in a shell
# note this script assumes the following paths/versions: python3.7 , /Users/thuerey/Library/Python/3.7/bin/jupyter-book # note this script assumes the following paths/versions: python3.7 , /Users/thuerey/Library/Python/3.7/bin/jupyter-book
# updated for nMBA !
# do clean git checkout for changes from json-cleanup-for-pdf.py via: # do clean git checkout for changes from json-cleanup-for-pdf.py via:
# git checkout diffphys-code-burgers.ipynb diffphys-code-ns.ipynb diffphys-code-sol.ipynb physicalloss-code.ipynb bayesian-code.ipynb supervised-airfoils.ipynb reinflearn-code.ipynb physgrad-code.ipynb physgrad-comparison.ipynb physgrad-hig-code.ipynb # git checkout diffphys-code-burgers.ipynb diffphys-code-ns.ipynb diffphys-code-sol.ipynb physicalloss-code.ipynb bayesian-code.ipynb supervised-airfoils.ipynb reinflearn-code.ipynb physgrad-code.ipynb physgrad-comparison.ipynb physgrad-hig-code.ipynb
@ -9,13 +10,17 @@ echo
echo WARNING - still requires one manual quit of first pdf/latex pass, use shift-x to quit echo WARNING - still requires one manual quit of first pdf/latex pass, use shift-x to quit
echo echo
PYT=python3.7
PYT=python3
# warning - modifies notebooks! # warning - modifies notebooks!
python3.7 json-cleanup-for-pdf.py ${PYT} json-cleanup-for-pdf.py
# clean / remove _build dir ? # clean / remove _build dir ?
# GEN! # GEN!
/Users/thuerey/Library/Python/3.7/bin/jupyter-book build . --builder pdflatex #/Users/thuerey/Library/Python/3.7/bin/jupyter-book build . --builder pdflatex
/Users/thuerey/Library/Python/3.9/bin/jupyter-book build . --builder pdflatex
cd _build/latex cd _build/latex
#mv book.pdf book-xetex.pdf # not necessary, failed anyway #mv book.pdf book-xetex.pdf # not necessary, failed anyway
@ -29,7 +34,7 @@ mv book.aux book-in.aux
mv book.toc book-in.toc mv book.toc book-in.toc
#mv sphinxmanual.cls sphinxmanual-in.cls #mv sphinxmanual.cls sphinxmanual-in.cls
python3.7 ../../fixup-latex.py ${PYT} ../../fixup-latex.py
# reads book-in.tex -> writes book-in2.tex # reads book-in.tex -> writes book-in2.tex
# remove unicode chars via unix iconv # remove unicode chars via unix iconv

View File

@ -13,6 +13,15 @@
@STRING{NeurIPS = "Advances in Neural Information Processing Systems"} @STRING{NeurIPS = "Advances in Neural Information Processing Systems"}
@article{prantl2022guaranteed,
title={Guaranteed conservation of momentum for learning particle-based fluid dynamics},
author={Prantl, Lukas and Ummenhofer, Benjamin and Koltun, Vladlen and Thuerey, Nils},
journal={Advances in Neural Information Processing Systems},
volume={35},
year={2022}
}
@inproceedings{schnell2022hig, @inproceedings{schnell2022hig,
title={Half-Inverse Gradients for Physical Deep Learning}, title={Half-Inverse Gradients for Physical Deep Learning},
author={Schnell, Patrick and Holl, Philipp and Thuerey, Nils}, author={Schnell, Patrick and Holl, Philipp and Thuerey, Nils},