CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   postprocessing for icoStructFoam solver (http://www.cfd-online.com/Forums/openfoam-post-processing/78560-postprocessing-icostructfoam-solver.html)

aut_iut July 26, 2010 05:30

postprocessing for icoStructFoam solver
 
Dear Foamer,

I want to see my results for a FSI simulation using paraview.
Seeing other thread I figured out to use following commands:

icoStructFoam . thingOnStick -mesh region1

icoStructFoam . thingOnStick -mesh region1

But, I faced an error executing these commands

--> FOAM FATAL ERROR:

Wrong number of arguments, expected 0 found 3
Invalid option: -mesh


How can I fix this error?

Regards,
Rasoul

aut_iut July 26, 2010 06:41

I should add, executing
foamToVTK -region region1
foamToVTK -region region2

will result in making two seperate VTK folders for region1 and region2.
But running two regions together has a problem. There is no link between mesh moving for two region.

7islands July 26, 2010 21:11

Hi Rasoul,
Try the builtin reader in PV 3.8 ("touch ${PWD##*/}.foam && paraview --data=${PWD##*/}.foam" in your case directory). It should load and display all regions in sync.

Takuya

aut_iut July 27, 2010 04:25

Thank you Takuya for your responce,
I tried, but faced this error

terminate called after throwing an instance of 'std::length_error'
what(): basic_string::_S_create
Aborted


Searching on the net, I know that you are familiar with such error. But couldn't understand the solutions for this error. Do you have any suggestion?
I added .foam extension to controlDict file. The error still exists!

7islands July 27, 2010 05:45

Are you sure you are using PV 3.8? That was a familiar error until PV 3.6.x.

T

aut_iut July 27, 2010 08:36

[IMG]file:///Users/rasoulshirzadeh/Desktop/thingOnStick.jpg[/IMG]Yes, you are right. Using PV 3.8 the error becomes disappeared. But still there is a gap between two regions (see the attached picture). Maybe I asked a stupid question.

http://img831.imageshack.us/img831/4...ingonstick.png
I expected to see a connection between two regions.

7islands July 27, 2010 11:08

I don't think there's a reader that can read data that has never been saved (the point coordinates). What's the reason that you believe that the reader should be able to do that?

T

7islands July 27, 2010 11:51

Said that, in unlikely case you are not aware,
  • For the solid region, there's no point coordinates saved but are displacements with which you can warp the mesh.
  • Still you'll see a gap right after the startMeshMotion time. That's how the simulation goes, not a bug in the reader.
T

aut_iut July 28, 2010 05:05

So, what is your idea about this picture?

http://openfoamwiki.net/images/e/e5/...ckDeformed.png

I think it should be like this!


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