I noticed that expression a) w
I noticed that expression a) works while b) and c) does not. I use V 1.3
volTensorField T = ...; a) Foam::inv(T); b) Foam::cof(T); error: 'cof' was not declared in this scope. c) Foam::cofactors(T); error: no matching function for call to 'cofactors(Foam::volTensorField&)' Thanks. 
Currently (version 1.5) the "c
Currently (version 1.5) the "cofactors" function is defined for:
SymmTensorI.H:// Return the cofactor tensor of a symmetric tensor SymmTensorI.H:inline SymmTensor<cmpt> cofactors(const SymmTensor<cmpt>& st) TensorI.H:// Return the cofactor tensor of a tensor TensorI.H:inline Tensor<cmpt> cofactors(const Tensor<cmpt>& t) if you think it would be useful to have this function available at the field level I will propagate it through. H 
I managed to get cofactors wit
I managed to get cofactors with an indirect way by:
volTensorField M ...; Mcof=(inv(M)*det(M)).T(); but it is not efficient. I would be grateful if you could propagate such cof function to the field level (similar to inv) in both definitions. If you could post the modification relative to V1.5 I will try to manage from there. Many thanks for your help. Best regards, Maka. 
Will do....
H
Will do....
H 
...done.
I have also rename
...done.
I have also renamed "cofactors" "cof" for consistency with the rest of the 3char tensor function names. The updates are now in our 1.5.x git repository. H 
Thanks Henry.
Thanks Henry.

All times are GMT 4. The time now is 17:10. 