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

When / how to use vector2D, tensor2D

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 9, 2019, 03:14
Default When / how to use vector2D, tensor2D
  #1
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Good morning,


I'm debugging a turbulence model implementation, where I consider a 3D vector V. This vector is not introduced in any PDE, it's just computed algebraically



I am doing some 2D simulations to debug the code, and I find that the 3rd component, where there is no flow and therefore V(k)=0, it provides non zero values. I apply the command



Code:
V.correctBoundaryConditions()

but I still face this problem. I suppose that since I'm not using V in any PDE, the empty condition is not applied. I have implemented an fvOption to introduce zero values in that coordinate, but then I though about the 2D implementations. How do they work? Would they be suitable for my case?


Thank you in advance!
agustinvo 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
Possible bug with tensor2D deepsterblue OpenFOAM Bugs 3 December 10, 2009 15:08


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