CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Post process fsi parallel case with foam-extend4.0 (https://www.cfd-online.com/Forums/openfoam-post-processing/207128-post-process-fsi-parallel-case-foam-extend4-0-a.html)

paulbr September 25, 2018 04:25

Post process fsi parallel case with foam-extend4.0
 
Hello,

I recently manage to make the fsifoam tutorials work on parallel with foam-extend/4.0 (3Dtube and beamInCrossFlow). When using the command reconstructPar, the fluid results are well assembled according to the time step. Yet, the command doest not seem to take into account the solid results.

I've found that foam-extend3.2 has a function reconstructParFsi. Is there, by any chance, an easy way/a function that can do the trick on foam-extend/4.0 ?

Any help is appreciated,
Regards





PS: I'm a new user of foam-extend and this is my first post on this forum. Please, be indulgent, I might have done some stupid remarks or else..

Stephen Waite January 13, 2019 19:35

with foam-extended 4.0, run

Code:

reconstructPar
This will do the fluid files as you mentioned, then run

Code:

reconstructPar -region solid
to do the solid region. There is probably a way to do it in one line but I haven't figured it out yet.

paulbr January 25, 2019 09:39

Hi Stephen,


Thanks for you answer. I don't know why exactly but running reconstructPar then reconstructPar -region solid doesn't do the trick for me...

It gives me this error:

Code:

--> FOAM FATAL IO ERROR:
cannot open file

file: /gpfs1/home/2016014/pbrous01/foam/pbrous01-4.0/applications/FluidSolidInteraction/run/fsiFoam/beamInCrossFlow/fluid/454361/fluid/10/solid/meshPhi at line 0.

    From function regIOobject::readStream()
    in file db/regIOobject/regIOobjectRead.C at line 60.

FOAM exiting

This is kind of obvious because there is no "solid" folder in any time repertory given by reconstructPart. I don't know why it gives this error only for the 10th folder though...
Note that 10s is my last time step.

However, I found another way to do this, thanks to Mr. Kristen Rege and this thread:

https://www.cfd-online.com/Forums/op...extend-15.html


This works fine, when it is run in the case repertory:

Code:

#!/bin/bash
mkdir tmp
cd fluid
for proc in processor*; do
mkdir ../tmp/$proc
for time in $proc/*; do
ln -s ../../fluid/$time/solid ../tmp/$time
done
done
ln -s ../solid/system ../tmp/system
ln -s ../solid/constant ../tmp/constant
ln -s ../solid/0 ../tmp/0
cd ../tmp

Regards,
Paul


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