|December 12, 2003, 05:08||
I am using user_getvar to obtain velocity gradients for a FORTRAN subroutine.
As far as I have understood, I can only request whole vector and tensor entities from user_getvar, and not components of these. My question is: How do I get the correct gradients out of the tensor?
I can request the gradient tensor successfully, and store it in a stack_point without troubles. But I am not sure I am using the correct notation for getting the components of the gradient tensor. I am currently getting the components with calls like this:
Where Grad_W is the requested gradient tensor from user_getvar. Now I suppose that the first number in the brackets express the gradient (i.e. 1 is d/dx, 2 is d/dy, 3 is d/dz), ILOC is refering to the node number (I am doing computations in the whole domain), and that the last number corresponds to the component (i.e. 1 is u, 2 is v, 3 is w). If I follow this notation, the above expression would give me du/dy. Can anybody who have worked with this tell me if this is correct?
Thanks in advance, Jesper.
|Thread||Thread Starter||Forum||Replies||Last Post|
|internal field question - PitzDaily Case||atareen64||OpenFOAM Running, Solving & CFD||2||January 26, 2011 15:26|
|Question about Table applicaiton.||universez||OpenFOAM Running, Solving & CFD||0||January 12, 2010 20:31|
|Unanswered question||niklas||OpenFOAM||0||December 14, 2005 09:11|
|CHANNEL FLOW: a question and a request||Carlos||Main CFD Forum||4||August 23, 2002 05:55|
|question||K.L.Huang||CD-adapco||1||March 29, 2000 03:57|