smaller tweaks
This commit is contained in:
3
intro.md
3
intro.md
@@ -110,4 +110,5 @@ If you find this book useful, please cite it via:
|
|||||||
|
|
||||||
## Time to get started
|
## Time to get started
|
||||||
|
|
||||||
The future of simulation is being rewritten, and with the following tools, you’ll be at the forefront of these developments. Let’s dive in!
|
The future of simulation is being rewritten, and with the following AI and deep learning techniques, you’ll be at the forefront of these developments. Let’s dive in!
|
||||||
|
|
||||||
|
|||||||
@@ -377,7 +377,7 @@
|
|||||||
"import torch\n",
|
"import torch\n",
|
||||||
"from torchdiffeq import odeint\n",
|
"from torchdiffeq import odeint\n",
|
||||||
"\n",
|
"\n",
|
||||||
"def integrate_flow(model, x0, t_span=(0.0, 1.0), n_steps, method='dopri5'):\n",
|
"def integrate_flow(model, x0, t_span=(0.0, 1.0), n_steps=100, method='dopri5'):\n",
|
||||||
"\n",
|
"\n",
|
||||||
" t = torch.linspace(t_span[0], t_span[1], n_steps).to(x0.device)\n",
|
" t = torch.linspace(t_span[0], t_span[1], n_steps).to(x0.device)\n",
|
||||||
"\n",
|
"\n",
|
||||||
@@ -393,9 +393,7 @@
|
|||||||
"n_gen = 500\n",
|
"n_gen = 500\n",
|
||||||
"\n",
|
"\n",
|
||||||
"x0_gen = torch.randn(n_gen, 2).to(device)\n",
|
"x0_gen = torch.randn(n_gen, 2).to(device)\n",
|
||||||
"trajectory, time_points = integrate_flow(model, x0_gen, n_steps=100)\n",
|
"trajectory, time_points = integrate_flow(model, x0_gen)\n"
|
||||||
"\n",
|
|
||||||
"x_gen_final = trajectory[-1].detach().cpu().numpy()"
|
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -130,7 +130,7 @@
|
|||||||
@inproceedings{list2022piso,
|
@inproceedings{list2022piso,
|
||||||
title={Learned Turbulence Modelling with Differentiable Fluid Solvers},
|
title={Learned Turbulence Modelling with Differentiable Fluid Solvers},
|
||||||
author={Bjoern List and Liwei Chen and Nils Thuerey},
|
author={Bjoern List and Liwei Chen and Nils Thuerey},
|
||||||
booktitle={arXiv:2202.06988},
|
booktitle={Journal of Fluid Mechanics (929/25)},
|
||||||
year={2022},
|
year={2022},
|
||||||
url={https://ge.in.tum.de/publications/},
|
url={https://ge.in.tum.de/publications/},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user