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

Keeps velocity gradient information available during computation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2015, 12:25
Default Keeps velocity gradient information available during computation
  #1
New Member
 
Chenguang Zhang
Join Date: Jul 2012
Location: Baton Rouge Louisiana
Posts: 15
Rep Power: 13
Taozi is on a distinguished road
Dear All,

I know in Fluent UDF velocity gradient can be accessed at any cell anytime by C_U_G(c, t), appears to me that Fluent has velocity gradient computed at every timestep and stored in memory so it is ready-to-use.

In OpenFOAM only the primitive variables (p, U, tracer, etc) are stored (am I right?) and when you want to access derived variables such as their derivatives, you have to first compute it by yourself, this saves memory but also cause some trouble when you need those variables explicitly.

So what's the best practice of solving this? Do I need to declare variables like "volVectorField velocityGradient(...)" before the time loop and update this variable at end of each loop, or there is a better way?

Thank you!
Taozi 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
UDF for defining a velocity gradient mozkan26 FLUENT 2 August 7, 2021 21:16
access to velocity gradient for Lagrangian particles jiejie OpenFOAM 31 December 2, 2016 04:56
velocity information in multiphase hamid_reza Fluent Multiphase 0 August 9, 2014 05:50
Surface normal velocity BC with zero gradient tangential, cylinder c_dowd OpenFOAM Running, Solving & CFD 0 May 25, 2013 07:22
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11


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