|
[Sponsors] |
Use gradient of another field for linearUpwind schemes |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 3, 2020, 06:01 |
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 |
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 |
|
August 4, 2020, 05:10 |
|
#2 |
New Member
Wenyuan Fan
Join Date: Mar 2017
Posts: 27
Rep Power: 9 |
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. |
|
August 4, 2020, 05:14 |
|
#3 |
Senior Member
Agustín Villa
Join Date: Apr 2013
Location: Alcorcón
Posts: 313
Rep Power: 15 |
Ok, so
Code:
grad(X) Thank you! |
|
|
|
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 |