CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

tensors cofactors

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 10, 2008, 11:31
Default I used cof(T) (from the progra
  #1
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
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.
maka is offline   Reply With Quote

Old   November 10, 2008, 19:40
Default Hi Maka, Use Foam::cof(T) Ma
  #2
Member
 
M. Mahdi Salehi
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 50
Rep Power: 17
smehdi609 is on a distinguished road
Hi Maka,
Use Foam::cof(T)
Mahdi
smehdi609 is offline   Reply With Quote

Old   November 11, 2008, 07:36
Default I tried it but I got: error:
  #3
Senior Member
 
Maka Mohu
Join Date: Mar 2009
Posts: 305
Rep Power: 18
maka is on a distinguished road
I tried it but I got:
error: 'cof' is not a member of 'Foam'
Did such call work for you? Thanks Mahdi.
maka is offline   Reply With Quote

Old   November 30, 2008, 08:32
Default I did henrik@machine> egrep
  #4
Senior Member
 
Henrik Rusche
Join Date: Mar 2009
Location: Wernigerode, Sachsen-Anhalt, Germany
Posts: 281
Rep Power: 18
henrik is on a distinguished road
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
henrik is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tensor mathematics forAll macro combination tensors with vectors olesen OpenFOAM Running, Solving & CFD 4 February 25, 2009 06:03
tensors cofactors maka OpenFOAM Bugs 5 November 17, 2008 09:31
No matching function multiplying tensors for BC Erik OpenFOAM 3 March 20, 2008 14:05
Surface interpolation scheme with tensors as weighting factors jutta OpenFOAM Running, Solving & CFD 1 August 27, 2007 12:00
Surface interpolation of tensors andebjor OpenFOAM Pre-Processing 2 August 23, 2007 04:08


All times are GMT -4. The time now is 18:39.