CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Modified reconstructPar

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 29, 2007, 12:21
Default Hi, I hope one day there is
  #1
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17
jens_klostermann is on a distinguished road
Hi,

I hope one day there is no need to use this utility anymore and I can read the decomposed mesh in paraFoam/paraview directly. I read something about this will be possible with OF1.4?

But for now I have to use reconstructPar. I had problems reconstructing large cases fast, especially if there are many time steps, since it is not possible to reconstruct in parallel. So I changed the reconstructPar so that it is possible to use more than one reconstructPar at the same time. For this I added an option -reconStartTime, which is the first time step I want to reconstruct and -reconTimeStepFactor, which is the factor for nth time step to reconstruct.
Example: -reconStartTime=0.02 and -reconTimeStepFactor=3 the time steps 0.02 0.06 0.09 0.12 etc will be reconstructed.

And with (put it in a script):
reconstructParNew <root> <case> -reconTimeStepFactor 3 -reconStartTime 0.02 > reconstructlog1 &
reconstructParNew <root> <case> -reconTimeStepFactor 3 -reconStartTime 0.03 > reconstructlog2 &
reconstructParNew <root> <case> -reconTimeStepFactor 3 -reconStartTime 0.04 > reconstructlog3 &

I can reconstruct "parallel" at least distribute it easy. But watch for the main memory (swapping)!

I added also the -delete option so that the last reconstructed time will be delete automatic in the processor directory. See also http://www.cfd-online.com/OpenFOAM_Discus/messages/1/1547.html and http://www.cfd-online.com/OpenFOAM_D...es/1/1536.html


reconstructParNew.tar.gz

P.S. Maybe this is not the clean code it should be, but it does the job.

Regards Jens
jens_klostermann is offline   Reply With Quote

Old   March 29, 2007, 14:34
Default Hi, there is a little bug i
  #2
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 17
jens_klostermann is on a distinguished road
Hi,

there is a little bug in my example, it should go:

Example: If the solver dumps every 0.01 to the processor directories and -reconStartTime=0.02 and -reconTimeStepFactor=3 the time steps 0.02 0.05 0.08 0.11 etc. will be reconstructed. Sorry.

Jens
jens_klostermann is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug in reconstructPar david OpenFOAM Bugs 10 May 26, 2009 12:11
ReconstructPar kupiainen OpenFOAM Post-Processing 12 April 21, 2009 01:47
ReconstructPar in OpenFOAM15 nicasch OpenFOAM Post-Processing 1 November 7, 2008 04:06
ReconstructPar maka OpenFOAM Bugs 6 August 22, 2007 04:23
Problem with reconstructPar fabianpk OpenFOAM 5 August 14, 2007 09:17


All times are GMT -4. The time now is 18:17.