Compare commits

...

6 Commits

Author SHA1 Message Date
N_T
245a81bfa5 updated notebooks to phiflow 3.1 2024-10-09 12:17:46 +08:00
N_T
1548db1731 fixed cleanup script 2024-10-09 10:36:24 +08:00
N_T
2db1f59d24 SoL training updated for phiflow3.1 and new data loader 2024-10-08 13:30:33 +08:00
N_T
4afc1c816e Updated SOL code 2024-09-25 14:52:34 +08:00
N_T
85c12f7d52 updated SOL 2024-09-17 11:07:01 +08:00
N_T
3d1819c1eb Updated references 2024-09-12 17:20:19 +08:00
9 changed files with 1946 additions and 2129 deletions

View File

@@ -32,7 +32,7 @@
},
"outputs": [],
"source": [
"!pip install --upgrade --quiet phiflow==2.2\n",
"!pip install --upgrade --quiet phiflow==3.1\n",
"from phi.tf.flow import *\n",
"\n",
"N = 128\n",

View File

@@ -86,7 +86,7 @@
},
"outputs": [],
"source": [
"!pip install --upgrade --quiet phiflow==2.2\n",
"!pip install --upgrade --quiet phiflow==3.1\n",
"from phi.torch.flow import * \n",
"import pylab # for visualizations later on"
]

File diff suppressed because one or more lines are too long

View File

@@ -21,7 +21,7 @@ fileList = [
]
#fileList = [ "physgrad-code.ipynb"] # debug, only 1 file
#fileList = [ "t1.ipynb" ] # debug
#fileList = [ "diffphys-code-sol.ipynb" ] # debug
# main
@@ -116,7 +116,7 @@ for fnOut in fileList:
dell = [] # collect lines to delete
for k in range( len( d[t][i]["outputs"][j]["text"] ) ):
#print(" tout "+ d[t][i]["outputs"][j]["text"][k] ) # debug , print all lines
#print(" tout "+ d[t][i]["outputs"][j]["text"][k] ) # debug , print all lines - ACTIVATE to LOCATE errors
nums = []; all_good = True
for rr in range(len(res)):
nums.append( res[rr].search( d[t][i]["outputs"][j]["text"][k] ) )
@@ -135,8 +135,10 @@ for fnOut in fileList:
#print("len after "+format( len( d[t][i]["outputs"][j]["text"] )) + " A") # debug
# afterwards (potentially remove whole entries)
# if len(delE)>0:
if len(delE)>0:
delE.sort(reverse=True)
#print("len bef "+format( len( d[t][i]["outputs"] )) + " A " + format(delE)) # debug
for de in delE:
#print(type(d[t][i]["outputs"])); print(de)
d[t][i]["outputs"].pop(de) # remove array element

View File

@@ -10,7 +10,6 @@ echo
echo WARNING - still requires one manual quit of first pdf/latex pass, use shift-x to quit
echo
PYT=python3.7
PYT=python3
# warning - modifies notebooks!
@@ -18,9 +17,21 @@ ${PYT} json-cleanup-for-pdf.py
# clean / remove _build dir ?
# GEN!
/Users/thuerey/Library/Python/3.9/bin/jupyter-book build .
xelatex book
exit # sufficient for newer jupyter book versions
# old "pre" GEN
#/Users/thuerey/Library/Python/3.7/bin/jupyter-book build . --builder pdflatex
/Users/thuerey/Library/Python/3.9/bin/jupyter-book build . --builder pdflatex
#/Users/thuerey/Library/Python/3.9/bin/jupyter-book build . --builder pdflatex
# old cleanup
cd _build/latex
#mv book.pdf book-xetex.pdf # not necessary, failed anyway

View File

@@ -45,12 +45,12 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Using phiflow version: 2.2.0\n"
"Using phiflow version: 3.1.0\n"
]
}
],
"source": [
"!pip install --upgrade --quiet phiflow==2.2\n",
"!pip install --upgrade --quiet phiflow==3.1\n",
"from phi.flow import *\n",
"\n",
"from phi import __version__\n",

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -25,7 +25,7 @@
@inproceedings{liu2024airfoils,
title={Uncertainty-aware Surrogate Models for Airfoil Flow Simulations with Denoising Diffusion Probabilistic Models},
author={Liu, Qiang and Thuerey, Nils},
booktitle={Journal of the American Institute of Aeronautics and Astronautics},
booktitle={Journal of the American Institute of Aeronautics and Astronautics, 62(8)},
year={2024},
}
@@ -72,7 +72,7 @@
title={Learning Similarity Metrics for Volumetric Simulations with Multiscale CNNs},
author={Kohl, Georg and Chen, Li-Wei and Thuerey, Nils},
booktitle={AAAI Conference on Artificial Intelligence},
year={2022}
year={2022},
url={https://github.com/tum-pbs/VOLSIM},
}