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

Use gradient of another field for linearUpwind schemes

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 3, 2020, 06:01
Default Use gradient of another field for linearUpwind schemes
  #1
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Hi,
I was wondering what might happen if you use, for example, the gradient of velocity when setting the divergence scheme of k, epsilon...


Code:
div(phi, k)    bounded Gauss linearUpwind grad(U);

The gradient helps to compute the face values, but I was wondering what does it mean using another field when computing the gradient.


Have a nice day,
Agustín
agustinvo is offline   Reply With Quote

Old   August 4, 2020, 05:10
Default
  #2
New Member
 
Wenyuan Fan
Join Date: Mar 2017
Posts: 27
Rep Power: 9
Wenyuan is on a distinguished road
Hi Agustin,

grad(U) doesn't mean the velocity gradient field, which is a tensor. Instead, grad(U) is the scheme that you specify how to calculate the gradient of U in gradSchemes. Then this scheme is used to calculate the gradient of k and compute the face value of k as you mentioned.

If you use the same scheme for grad(U) and grad(k) in gradSchemes, you will get the same result no matter grad(U) or grad(k) is used for linearUpwind.
Wenyuan is offline   Reply With Quote

Old   August 4, 2020, 05:14
Default
  #3
Senior Member
 
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15
agustinvo is on a distinguished road
Ok, so
Code:
grad(X)
only points to the gradient scheme used for the X field.



Thank you!
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
Fundamental questions about numerical schemes Obad OpenFOAM Running, Solving & CFD 1 May 10, 2021 10:40
Long output in terminal. ssa_cfd OpenFOAM Running, Solving & CFD 1 March 18, 2019 05:25
[Other] dynamicTopoFVMesh and pointDisplacement RandomUser OpenFOAM Meshing & Mesh Conversion 6 April 26, 2018 07:30
[General] Gradient of 2D velocity field eleonora ParaView 0 January 30, 2015 03:42
gradient or laplacian of an unstructured field sawyer86 OpenFOAM Post-Processing 0 March 13, 2014 11:40


All times are GMT -4. The time now is 13:24.