CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

loading sigmaxx in paraFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 30, 2014, 10:36
Default loading sigmaxx in paraFoam
  #1
New Member
 
Peter Knapen
Join Date: Sep 2009
Posts: 25
Rep Power: 7
peterk is on a distinguished road
Hello,
I am overlooking something: I have installed openfoam-extend3.1 and ParaView 4.0.1 with AllMake.stage4.
When I run the tutorial solidMechanics/elasticOrthoNonLinULSolidFoam/pressureRotatePlate, I get output for the stresstensor, I can get sigmaxx from that, using foamCalc components sigma, but I do not know how to access these data files, in the property manager I can not update the scalar fields.
peterk is offline   Reply With Quote

Old   August 30, 2014, 11:18
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,935
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Peter,

If you were to provide an image of what you're seeing, it would make it easier to diagnose the problem. In addition, knowing the exact steps taken and the exact command used would also make it easier to diagnose

Without such information, my guesses are:
  1. You ran foamCalc after ParaView was already open. If this is the case, close the file and reopen it, or change the time snapshot you're currently seeing, so that the reader will update the list of fields.
  2. You are still only looking at the first time snapshot, namely "0", where the "sigma" field does not exist. Going to the next time snapshot would solve the issue. For more information: http://www.itk.org/Wiki/ParaView/Users_Guide/Animation
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   August 31, 2014, 07:05
Default additional info
  #3
New Member
 
Peter Knapen
Join Date: Sep 2009
Posts: 25
Rep Power: 7
peterk is on a distinguished road
hello Bruno,
Thanks for your reply, I indeed ran foamCalc when paraView was open, but ran paraView afterwards several times, only posibility was to animate DU as variable. I get a error when uploading the answer, so now without attachments.
Best regards,
Peter
peterk is offline   Reply With Quote

Old   August 31, 2014, 07:09
Default now with attachments.
  #4
New Member
 
Peter Knapen
Join Date: Sep 2009
Posts: 25
Rep Power: 7
peterk is on a distinguished road
I think the problem is in the info file in each time step
Attached Images
File Type: jpg dir_list1.jpg (89.8 KB, 2 views)
File Type: jpg dir_list2.jpg (95.7 KB, 2 views)
File Type: jpg result4.jpg (45.3 KB, 2 views)
Attached Files
File Type: txt profilingInfo (copy).txt (2.9 KB, 1 views)
peterk is offline   Reply With Quote

Old   August 31, 2014, 17:59
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,935
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Peter,

Many thanks for providing more information!
Unfortunately I didn't have yet a build of ParaView 4.0.1 that comes with foam-extend 3.1, therefore I wasn't able to reproduce the same problem. And I wasn't expecting to see what I saw just now.

I now do have the same version built and am now able to see the same problem. The problem is actually due to a bug that is in the PV4FoamReader, which should be reported on the bug tracker, but right now I don't have the time to post a bug report there: http://sourceforge.net/p/openfoam-ex...extendrelease/
The bug is that the reader does not refresh the list of existing fields available for the current time snapshot, which is why you are not able to see the fields that exist in the folders 1 and beyond.

There are at least 2 ways you can solve this:
  1. Simply run paraFoam like this:
    Code:
    paraFoam -nativeReader
    This will use the internal reader in ParaView, which is able to do a lot better in this case.
  2. You can rename the folder "0" to something else and then create a symbolic link for the folder "1", for example:
    Code:
    mv 0 0.org
    ln -s 1 0
    The problem is that this means that you cannot forget to change it back when you clean up the case, namely:
    Code:
    unlink 0
    mv 0.org 0
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   September 1, 2014, 04:51
Default bugreport
  #6
New Member
 
Peter Knapen
Join Date: Sep 2009
Posts: 25
Rep Power: 7
peterk is on a distinguished road
Thanks Bruno,
Thanks for digging in that much.
The native reader works well.
I have posted a bug, nr 253 on the site, please check this.
Best regards,
Peter
peterk is offline   Reply With Quote

Old   September 7, 2014, 15:41
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,935
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Hi Peter,

Thanks for reporting! For future (and lazy ) reference, the bug report in question is this one: http://sourceforge.net/p/openfoam-ex...ndrelease/253/

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4foam newbie29 OpenFOAM Installation 80 January 14, 2015 16:36
How to use paraFoam on a cluster andreas OpenFOAM Paraview & paraFoam 1 March 6, 2013 18:11
OpenFoam (Ubuntu): paraFoam via Xming+PuTTY raketenmaid OpenFOAM Paraview & paraFoam 4 February 5, 2013 06:20
paraFoam, problem loading 'volume fields' bigphil OpenFOAM Paraview & paraFoam 0 April 29, 2009 09:36
ParaFoam not loading _ZN4Foam10vtkPV3FoamC1EPKcP16vtkPV3FoamReader louisgag OpenFOAM 0 August 27, 2008 14:15


All times are GMT -4. The time now is 10:30.