Functions | |
template<> | |
torch::Tensor | field2Torch (Field< vector > &field) |
template<> | |
torch::Tensor | field2Torch (Field< scalar > &field) |
template<> | |
Field< vector > | torch2Field (torch::Tensor &torchTensor) |
template<> | |
Field< scalar > | torch2Field (torch::Tensor &torchTensor) |
template<> | |
torch::Tensor | ptrList2Torch (PtrList< Field< vector > > &ptrList) |
template<> | |
torch::Tensor | ptrList2Torch (PtrList< Field< scalar > > &ptrList) |
template<class type_f > | |
PtrList< Field< type_f > > | torch2PtrList (torch::Tensor &tTensor) |
template PtrList< Field< scalar > > | torch2PtrList< scalar > (torch::Tensor &tTensor) |
template PtrList< Field< vector > > | torch2PtrList< vector > (torch::Tensor &tTensor) |
template<class type_f > | |
torch::Tensor | 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 > | torch2Field (torch::Tensor &tTensor) |
Convert an Torch TensorOpenFOAM to an OpenFoam Field. | |
template<class type_f > | |
torch::Tensor | ptrList2Torch (PtrList< type_f > &ptrList) |
torch::Tensor ITHACAtorch::torch2Foam::field2Torch | ( | Field< scalar > & | field | ) |
Definition at line 49 of file torch2Foam.C.
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].
field | The field |
type_f | type can be scalar or vector |
torch::Tensor ITHACAtorch::torch2Foam::field2Torch | ( | Field< vector > & | field | ) |
Definition at line 39 of file torch2Foam.C.
torch::Tensor ITHACAtorch::torch2Foam::ptrList2Torch | ( | PtrList< Field< scalar > > & | ptrList | ) |
Definition at line 102 of file torch2Foam.C.
torch::Tensor ITHACAtorch::torch2Foam::ptrList2Torch | ( | PtrList< Field< vector > > & | ptrList | ) |
Definition at line 87 of file torch2Foam.C.
torch::Tensor ITHACAtorch::torch2Foam::ptrList2Torch | ( | PtrList< type_f > & | ptrList | ) |
Field< vector > ITHACAtorch::torch2Foam::torch2Field | ( | torch::Tensor & | torchTensor | ) |
Definition at line 59 of file torch2Foam.C.
Field< scalar > ITHACAtorch::torch2Foam::torch2Field | ( | torch::Tensor & | torchTensor | ) |
Definition at line 73 of file torch2Foam.C.
Field< type_f > ITHACAtorch::torch2Foam::torch2Field | ( | torch::Tensor & | tTensor | ) |
Convert an Torch TensorOpenFOAM to an OpenFoam Field.
tTensor | The Torch tensor |
type_f | type can be scalar or vector |
PtrList< Field< type_f > > ITHACAtorch::torch2Foam::torch2PtrList | ( | torch::Tensor & | tTensor | ) |
Definition at line 117 of file torch2Foam.C.
template PtrList< Field< scalar > > ITHACAtorch::torch2Foam::torch2PtrList< scalar > | ( | torch::Tensor & | tTensor | ) |
template PtrList< Field< vector > > ITHACAtorch::torch2Foam::torch2PtrList< vector > | ( | torch::Tensor & | tTensor | ) |