Published June 9, 2021
| Version v1
Technical note
Open
Training a PyTorch neural network on cell-centered OpenFOAM fields
Creators
Description
This post covers the use of the PyTorch C++ API for approximating cell-centered fields (pressure, temperature, density, etc.) in OpenFOAM using a Neural Network (NN). The training is done in an OpenFOAM application, the code can be generalized and ported into a library as described in this post. The unstructured Finite Volume method in OpenFOAM averages values at cell centers to ensure second-order accuracy on unstructured meshes.
Files
openfoam-pytorch-volfield.pdf
Files
(311.7 kB)
| Name | Size | Download all |
|---|---|---|
|
md5:5e5dc360e65754703a7f8f0fba8a1859
|
311.7 kB | Preview Download |