CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] loading sigmaxx in paraFoam (https://www.cfd-online.com/Forums/paraview/141100-loading-sigmaxx-parafoam.html)

peterk August 30, 2014 10:36

loading sigmaxx in paraFoam
 
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.

wyldckat August 30, 2014 11:18

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

peterk August 31, 2014 07:05

additional info
 
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 August 31, 2014 07:09

now with attachments.
 
4 Attachment(s)
I think the problem is in the info file in each time step

wyldckat August 31, 2014 17:59

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

peterk September 1, 2014 04:51

bugreport
 
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

wyldckat September 7, 2014 15:41

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


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