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

reconstructPar error !

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 2 Post By wyldckat
  • 1 Post By Hanzo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 16, 2011, 11:55
Unhappy reconstructPar error !
  #1
New Member
 
Zinedine
Join Date: Sep 2010
Posts: 19
Rep Power: 15
Zinedine is on a distinguished road
Hi everybody

I have using reconstrucPar and it has been workiong fine until I had the following error:

[menzk@node16 oven3]$ reconstructPar -latestTime
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 1.7.1 |
| \\ / A nd | Web: www.OpenFOAM.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 1.7.1-03e7e056c215
Exec : reconstructPar -latestTime
Date : Nov 16 2011
Time : 16:51:53
Host : node16.beowulf.cluster
PID : 30586
Case : /home/abax2_a/menzk/OpenFOAM/menzk-1.7.1/run/oven3
nProcs : 1
SigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time
word::stripInvalid() called for word pvsm
For debug level (= 2) > 1 this is considered fatal
Aborted


Has anybody encontered such error ?

Any help is kindly appreciated

Thanks

Z.
Zinedine is offline   Reply With Quote

Old   November 16, 2011, 12:48
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
The stripInvalid function is called when there are invalid characters in a string that need to be removed. Sounds like the word pvsm somehow has an invalid character, and that at the debug level you are running at (2) this is crashing the program. I looked at reconstructPar for OF 2.0.x and can't find the word variable pvsm. Or perhaps pvsm is the word that stripInvalid is being called on, in which case it doesn't make sense why stripInvalid would be called. Can you identify what PVSM is?
mturcios777 is offline   Reply With Quote

Old   November 16, 2011, 16:24
Default
  #3
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings to all!

I believe I know what the problem is:
  • PVSM is usually a ParaView state file.
  • reconstructPar does not know which files were generated by the executed solvers, so it tries to reconstruct whatever is in each "processor*" folder.
  • Therefore, one or more ParaView files are contaminating one or more processor folders, simply because OpenFOAM does not use the same file format as ParaView!
Best regards,
Bruno
Hanzo and babakflame like this.
__________________
wyldckat is offline   Reply With Quote

Old   November 16, 2011, 17:49
Smile
  #4
New Member
 
Zinedine
Join Date: Sep 2010
Posts: 19
Rep Power: 15
Zinedine is on a distinguished road
Hi Bruno
What do you suggest then ?
Is there anything I can do to make the utility work or not?
Regards

Z.
Zinedine is offline   Reply With Quote

Old   November 17, 2011, 03:14
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Zinedine,

Quote:
Originally Posted by wyldckat View Post
  • Therefore, one or more ParaView files are contaminating one or more processor folders, simply because OpenFOAM does not use the same file format as ParaView!
I implied that all you had to do is remove (or move) files created by ParaView that are located in the processor folders!

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   November 17, 2011, 07:38
Default reconstructPar works fine now - Question: RefineMesh
  #6
New Member
 
Zinedine
Join Date: Sep 2010
Posts: 19
Rep Power: 15
Zinedine is on a distinguished road
Hi Bruno

thanks for your assitance - you were right.
there was some paraview psvm file in the case root directory,.
I moved them and here we go the reconstrcuPar worked fine !

I was wondering if you would know anything about mesh refinement.
I converted a mesh file from ANSYS Fluent to OpenFoam.

The application is for high speed jets applications - it seems that when I
increase the jet velocity (i.e. I am using simpleFoma with k-e turbulence model currently) I do not get any convergence.
Initially Im thought that my settings were not set properly.
Howeever when I undertake the same simjulation by loweirng the kjet velocity to 1m/s - Alleluya ! It works really fine.

I believe that the issue is the mesh is not fione enough to capture the
turbulent scales as higher speeds (i.e. velocity could reached 40m/s !).

I have tried to look into how the refine mesh works but it is not clear.

Would you have any idea of how to refine portion of a mesh please?
Any concrete example and the various to undergo in order to apply it
to my case ?

Thanks for your help.

Regards

Z.
Zinedine is offline   Reply With Quote

Old   November 17, 2011, 07:44
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Zinedine,

In the tutorials folder run these commands:
Code:
find . -name Allrun | xargs grep 'refine' -sl
find . -name refineMeshDict
You can also run the last one on OpenFOAM's folder for more examples.

Those two command lines will tell you which tutorials and example dictionaries are available in OpenFOAM.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   October 27, 2012, 01:25
Default
  #8
Member
 
Join Date: Nov 2010
Location: Tokyo / Japan
Posts: 40
Rep Power: 15
Hanzo is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Hi Zinedine,


I implied that all you had to do is remove (or move) files created by ParaView that are located in the processor folders!

Best regards,
Bruno
Today I encountered the same and I think i figured the reason:

Yesterday, I ran paraFoam and created a pvsm statefile calles state01.pvsm. After I continued to work with paraFoam a file called state01.pvsm; (note the ; ) was created. I only needed to remove this somewhat strange state01.pvsm; file and then it worked fine again. The file was not located in any of my processor* folders but directly in my case directory. So I guess these strange files should not be located anywhere among the folders.

Best,
Hanzo
wyldckat likes this.
Hanzo is offline   Reply With Quote

Old   January 10, 2015, 21:21
Default
  #9
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
This happened to me too with decomposePar and OF2.2.x. The *.pvsm; files are created by Paraview by mistake when you save pvsm files with similar file names. As you're creating the new pvsm file with a similar name Paraview lists them in the saving window under a higher hierarchical listing with a ";" character appended to the file extension (pvsm in this case). In my case these are the offending file names:
Slice_withGlyphs_.10s.pvsm
Slice_withGlyphs_.25s.pvsm
Slice_withGlyphs_.50s.pvsm
They were listed under Paraview as Slice_withGlyphs_...s.pvsm. See attached screen capture.

Funny it should happen with decompose/reconstructPar, definitely a bug.
Attached Images
File Type: png paraview_pvsm_listing.png (50.7 KB, 12 views)
ziad is offline   Reply With Quote

Old   January 11, 2015, 14:37
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings Ziad,

I've tested this with OpenFOAM 2.2.2, 2.2.x, 2.3.0 and 2.3.x and it seems that this bug has already been fixed as of OpenFOAM 2.3.0.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   January 11, 2015, 15:12
Default
  #11
Senior Member
 
Join Date: Mar 2009
Location: My oyster
Posts: 124
Rep Power: 17
ziad is on a distinguished road
Good to know, thanks Bruno

It's also a bug with Paraview since the pvsm; file is created by Paraview not OF. Happens with a local install of Paraview 4.1.0 and its native foam reader, as well as the OF ThirdParty 3.12.0 version and paraFoam.
ziad is offline   Reply With Quote

Reply

Tags
openfoam 1.7.1, reconstrucpar


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
CGNS Compiling Diego Main CFD Forum 17 December 21, 2014 01:40
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 18:00
nonNewtonian viscosity model mhassani OpenFOAM Programming & Development 5 January 7, 2013 09:27
c++ libraries and solver compiling vaina74 OpenFOAM Installation 13 February 3, 2012 17:43
user defined function cfduser CFX 0 April 29, 2006 10:58


All times are GMT -4. The time now is 20:16.