|
[Sponsors] |
[OpenFOAM] How to access a variable at two different time instances in Paraview |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 12, 2017, 05:14 |
How to access a variable at two different time instances in Paraview
|
#1 |
New Member
Join Date: Mar 2017
Posts: 11
Rep Power: 9 |
Hello All,
Is there a way to use Programmable filter or any other filter in PARAVIEW on a variable at two different time instances? for example I have to calculate difference of scalar variable pressure p between current time instance and last time instance. Thank you in advance. |
|
June 13, 2017, 07:00 |
|
#2 |
Senior Member
|
Hi,
I would not know about such a filter, since most of the time the data is stored on the mesh including the current time step. If it is only about the difference between the current and the final time step I would suggest copying the pressure field of the final time step to every time-step that you want the result for and than call it pEnd, or pFinal, or whatever you like and than make a simple calculator filter for the visualization. Best regards, Tom |
|
June 13, 2017, 08:56 |
|
#3 |
New Member
Join Date: Mar 2017
Posts: 11
Rep Power: 9 |
Hi Tom,
Thank you very much for your reply. I think i worte in a confusing way, SORRY for that, I want to calculate difference of scalar variable pressure p between CURRENT time instance and PREVIOUS time instance for all the time intervals FOR THE PURPOSE OF VISUALIZATION IN PARAVIEW for multiphase simulation. in the form of algebra : mag((p-oldTime(p))/deltaT() I have already calculated the pressure change wrt time at every timestep as a post processing function..... Now I want to Visualize this on the model in paraview. Can you or anyone can give suggestions how to do this? |
|
June 13, 2017, 09:04 |
|
#4 | |
Senior Member
|
Hi,
this confuses me a lot: Quote:
Regards, Tom |
||
June 13, 2017, 09:35 |
|
#5 | |
New Member
Join Date: Mar 2017
Posts: 11
Rep Power: 9 |
Quote:
This with generate the result data in postprocressing folder in .dat format which will give Excel graphs at the end of the run.... Now, seperately, I also want to visually see this change of pressure with respect to time in paraview.... but I dont know how to access presssre values of the mesh for previous time instance and subtract it to current time instance in paraview.. I dont know which screenshot I can put to clarify more... Thank you. Regards, Pratik |
||
June 13, 2017, 09:57 |
|
#6 |
Senior Member
|
Ok, this is completely different from what I thought you had. So these .dat files are just integral data? Not for every mesh point? Than I am afraid you cannot do what you want with that data.
I would not know if one can combine .dat data with separate mesh information in ParaView. I would suggest clearly explaining this in the ParaView forum instead of the OpenFOAM one and maybe someone can help you there. On this thread there might be someone who can help you find a way to get the data you want in a format that ParaView can work with, maybe a VTK format is possible? You would need the VTK format for the relevant patch and than put the value of your time derivatives in there for each time step from the .dat file. You can start to have a look by running foamToVTK and try to work from there. Best regards, Tom |
|
June 13, 2017, 10:16 |
|
#7 |
New Member
Join Date: Mar 2017
Posts: 11
Rep Power: 9 |
Hi Tom, thanks for your suggestion, but that is quite complex and way out of reach as I am beginner.
At this moment we can keep the post processing data seperately. Lets assume we dont have any post processing data.(Please, sorry i brought that into all this) So we have only openfoam generated data after run of comprissibleInterform. When we apply .foam file in paraview we will see pressure values on mesh at current time instance only for each time interval. Now similarly I want to visualize dp/dt i.e. [ (current pressure values - previous time instance pressure values)/current time step] for each time interval. will it be anyhow possible in paraview? Thank you. Regards, Pratik |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
courant number increases to rather large values | 6863523 | OpenFOAM Running, Solving & CFD | 22 | July 6, 2023 00:48 |
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores | puneet336 | OpenFOAM Running, Solving & CFD | 11 | April 7, 2019 01:58 |
User defined time step - Possible to put variable time stepping in it? | maccheese | Fluent UDF and Scheme Programming | 19 | June 4, 2018 10:49 |
same geometry,structured and unstructured mesh,different behaviour. | sharonyue | OpenFOAM Running, Solving & CFD | 13 | January 2, 2013 23:40 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |