|
[Sponsors] |
Data conversion at each time step for specific fields |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 22, 2009, 11:37 |
Data conversion at each time step for specific fields
|
#1 |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
Hello,
it's been quite a long time since I worked with OF... but now I'm back! And I am dealing with an unsteady simulation for which I would like to export, at each time step, pressure and velocity data in Ensight format. I have to mention that the mesh is quite big, and that this represents a large amount of data to be stored. Of course one solution is to save OF data at each time step, and then reconstruct data coming from the different proc, convert it to Ensight format, remove the OF data and keep only the pressure and velocity Ensight files. This means a lot of manual operations. Furthermore, I cannot afford, even temporarily, to store too much data (many fields stored by OF are not useful to my post-processing). Does someone have an idea to help me? I had a look at the work done with pyFoam, could it be useful? Thank you all for your suggestions! melanie |
|
July 23, 2009, 07:18 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
U.write(); p.write(); (just an example). There is no such functionObject that I know of (but it might be an interesting candidate for the simpleFunctionObjects). This still leaves the problem that the data still is in OF-format. The hardcore solution would be to lift the functionality of the ensight-Converter into a functionObject (good luck) In pyFoam there is currently is no ready-made solution to your problem (I have been thinking about a facility that "watches" a case and if there is a new time directory calls a utility (reconstructPar, foamDataToExcel etc) but never had the time/pressure to implement it. Plus in your case the actual conversion probably would take more CPU-time than the calculation because the converter would have to load the whole mesh every time it is called) Bernhard |
||
July 27, 2009, 07:21 |
|
#3 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
/mark |
||
July 27, 2009, 08:21 |
|
#4 |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
Thanks a lot Mark and Bernhard, I will have a look at these functionObject you mention. I will let you know what's going on!
mélanie |
|
September 23, 2009, 10:44 |
|
#5 |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
hi, actually I left this subject for a time, and now that I'm back I have discovered that you already made the job with writeFields* functionObjects! Thanks a lot Bernhard. Now I have to switch to OF1.6 to benefit from the timeSelector feature of foamToEnsight utility, and the processing will be almost perfect! Indeed foamToEnsight is able to work in parallel on decomposed cases so the reconstruction step is not any more required.
mélanie |
|
September 23, 2009, 13:20 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard PS: yes. This is part of a plot to get more people to contribute. Guilty again |
||
September 24, 2009, 04:46 |
|
#7 |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
This is done Bernhard, I added a very short description out of the header of .H files on the Wiki-page. My first contribution to the community...
melanie |
|
September 28, 2009, 12:38 |
|
#8 |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
||
September 29, 2009, 03:12 |
|
#9 | |
Member
Mélanie Piellard
Join Date: Mar 2009
Posts: 86
Rep Power: 17 |
Quote:
Thanks a lot! melanie |
||
September 29, 2009, 03:26 |
|
#10 | |
Senior Member
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,715
Rep Power: 40 |
Quote:
specifically the Foam::Time::writeObject() method |
||
September 29, 2009, 18:34 |
|
#11 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Bernhard |
||
Tags |
conversion, ensight, unsteady |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
IcoTopoFoam case is aborted | deepblue17 | OpenFOAM Running, Solving & CFD | 25 | December 2, 2010 15:20 |
Export AreaAve data at each time step in CFX Post | Kumar | CFX | 2 | August 22, 2007 13:32 |
natural convection - time step size | co2 | FLUENT | 7 | June 3, 2004 22:56 |
guidelines on time step | Effendi Ali | FLUENT | 3 | February 4, 2004 08:50 |
unsteady calcs in FLUENT | Sanjay Padhiar | Main CFD Forum | 1 | March 31, 1999 13:32 |