|
[Sponsors] |
post-processing to calculate a new tensor variable from results |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
March 15, 2024, 03:44 |
post-processing to calculate a new tensor variable from results
|
#1 | |
New Member
HagawaArashi
Join Date: Mar 2023
Posts: 4
Rep Power: 3 |
hello everyone! I encounter a problem about post-processing.
I want to use "volTensorField grad(U)" to obtain the viscous dissipation field. first, I calculate the grad(U), and then use the tensor calculus in OpenFOAM to obtain the volScalarField viscousDissipation. But the code only can perform in "0/", neglecting the result file at latest time. As a result, the "viscousDissipation" field can only be found in "0/", others are empty. So how can I perform the code also in other time named files? Sincerely wish some advice!Thank you! And my code is follows, it can be complied successfully without any error: Quote:
|
||
March 15, 2024, 12:26 |
|
#2 |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,695
Rep Power: 40 |
Take a look at various utilities that use the timeSelector and thus have the "-latestTime" (and other time selection methods). You need to place a loop over selected times.
See, for example, applications/utilities/postProcessing/miscellaneous/postChannel/postChannel.C as one of the simplest examples that I can think of. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Problem: Cannot get Results to work in post processing | mattsarg55 | Visualization & Post-Processing | 0 | August 5, 2019 10:50 |
Post processing journal - like .cst in CFD Post | Jiricbeng | FLUENT | 0 | April 24, 2019 08:08 |
Post processing alternatives to Paraview? | NadineHS | Visualization & Post-Processing | 2 | February 9, 2019 16:43 |
How to visualize/ calculate applied heat source during post processing | lavoz | CFX | 2 | June 1, 2012 04:35 |
Post Processing in FEM | Abhijit Tilak | Main CFD Forum | 0 | April 26, 2004 11:59 |