CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 4 of 4
Search took 0.00 seconds.
Search: Posts Made By: Cyp
Forum: OpenFOAM Programming & Development March 3, 2011, 07:47
Replies: 6
Views: 2,718
Posted By Cyp
Thank you for your answer.. in fact, it not...

Thank you for your answer..

in fact, it not really worked since when you write :

D1= tensor(1,0,0,0,0,0,0,0,0)*U1x.component(vector::X);
D1= tensor(0,0,0,1,0,0,0,0,0)*U1x.component(vector::Y);...
Forum: OpenFOAM Programming & Development March 3, 2011, 05:25
Replies: 6
Views: 2,718
Posted By Cyp
Hi Steven! Actually, this the piece of code ...

Hi Steven!

Actually, this the piece of code


fvVectorMatrix U1xEqn
(
fvm::ddt(U1x)
- fvm::laplacian(nu, U1x)
+ unitE*alpha*vector(1,0,0)
Forum: OpenFOAM Programming & Development March 2, 2011, 17:03
Replies: 6
Views: 2,718
Posted By Cyp
Hi Steve! Thank you for your answer. I had a...

Hi Steve!

Thank you for your answer. I had a look at your code.

I tried this snippet :

D1.component(tensor::XX) = U1x.component(vector::X);
D1.component(tensor::YX) =...
Forum: OpenFOAM Programming & Development March 2, 2011, 13:01
Replies: 6
Views: 2,718
Posted By Cyp
how to extract vector from tensor ?

Hi!

I would like to extract a vector from a tensor. I know one can recover a scalar from a tensor using T.xx() ; T.xy() ...

Do you know what can I do to recover the first column of my tensor ?...
Showing results 1 to 4 of 4

 
Forum Jump

All times are GMT -4. The time now is 04:00.