|
[Sponsors] |
May 11, 2023, 10:07 |
Obtain grad(U) during run-time processing
|
#1 |
New Member
Jinshi Chen
Join Date: Jan 2020
Location: Cambridge, MA
Posts: 10
Rep Power: 6 |
Hi Foamers,
I am trying to obtain the gradient of all velocity components with run-time sampling at given lines. Yet I am not able to directly code sth. like grad(U) in the "field". It seems that it can only take the fields which is directly output by the model (such as U,k,R, etc). I am wondering is there an easy way to modify the controlDict file in order to obtain grad(U) at given lines? Thanks a lot! Best, Peter |
|
May 11, 2023, 10:14 |
|
#2 |
Senior Member
Yann
Join Date: Apr 2012
Location: France
Posts: 1,066
Rep Power: 26 |
Hi Peter,
You can use the grad function object to compute grad(U): https://develop.openfoam.com/Develop...ld/grad/grad.H Hope this helps, Yann |
|
May 11, 2023, 10:26 |
|
#3 |
New Member
Jinshi Chen
Join Date: Jan 2020
Location: Cambridge, MA
Posts: 10
Rep Power: 6 |
Hi Yann,
Thanks so much! This works perfectly. Best, Peter |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[General] Extracting ParaView Data into Python Arrays | Jeffzda | ParaView | 30 | November 6, 2023 21:00 |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 5, 2023 23:48 |
Extrusion with OpenFoam problem No. Iterations 0 | Lord Kelvin | OpenFOAM Running, Solving & CFD | 8 | March 28, 2016 11:08 |
dynamic Mesh is faster than MRF???? | sharonyue | OpenFOAM Running, Solving & CFD | 14 | August 26, 2013 07:47 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 22:40 |