Header file of the torch2Foam namespace. More...
#include <iostream>#include <torch/script.h>#include <torch/torch.h>#include <Eigen/Eigen>#include "ITHACAassert.H"#include "fvCFD.H"Go to the source code of this file.
Namespaces | |
| namespace | ITHACAtorch |
| namespace | ITHACAtorch::torch2Foam |
Functions | |
| template<class type_f> | |
| torch::Tensor | ITHACAtorch::torch2Foam::field2Torch (Field< type_f > &field) |
| Convert an OpenFOAM field to a torch tensor, in case of field<vector> the tensor is arranged as t = [fx;fy;fz]. | |
| template<class type_f> | |
| Field< type_f > | ITHACAtorch::torch2Foam::torch2Field (torch::Tensor &tTensor) |
| Convert an Torch TensorOpenFOAM to an OpenFoam Field. | |
| template<class type_f> | |
| torch::Tensor | ITHACAtorch::torch2Foam::ptrList2Torch (PtrList< type_f > &ptrList) |
| template<class type_f> | |
| PtrList< Field< type_f > > | ITHACAtorch::torch2Foam::torch2PtrList (torch::Tensor &tTensor) |
1.13.2