CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   tensors cofactors (https://www.cfd-online.com/Forums/openfoam-solving/58267-tensors-cofactors.html)

maka November 10, 2008 10:31

I used cof(T) (from the progra
 
I used cof(T) (from the programming guide) where T is volTensorField and I got:
error: 'cof' was not declared in this scope
I'm using V1.3. Any idea if such a function was implemented? Thanks.

smehdi609 November 10, 2008 18:40

Hi Maka, Use Foam::cof(T) Ma
 
Hi Maka,
Use Foam::cof(T)
Mahdi

maka November 11, 2008 06:36

I tried it but I got: error:
 
I tried it but I got:
error: 'cof' is not a member of 'Foam'
Did such call work for you? Thanks Mahdi.

henrik November 30, 2008 07:32

I did henrik@machine> egrep
 
I did

henrik@machine> egrep cof $FOAM_SRC/OpenFOAM/lnInclude/*
/home/foam/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/SymmTensorI.H://- Return the cofactor tensor of a symmetric tensor
/home/foam/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/SymmTensorI.H:inline SymmTensor<cmpt> cofactors(const SymmTensor<cmpt>& st)
/home/foam/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/TensorI.H://- Return the cofactor tensor of a tensor
/home/foam/OpenFOAM/OpenFOAM-1.5/src/OpenFOAM/lnInclude/TensorI.H:inline Tensor<cmpt> cofactors(const Tensor<cmpt>& t)

and would suggest to try cofactor(T), but you already got the asnwer here

http://www.cfd-online.com/cgi-bin/Op...126&post=28783

I would be very grateful if everybody could close their threads by posting the answers to save the time of other people.

Henrik


All times are GMT -4. The time now is 13:59.