CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   FSI solver (http://www.cfd-online.com/Forums/openfoam/103349-fsi-solver.html)

nimasam June 18, 2012 06:47

FSI solver
 
Hi dear foamers
im going to simulate a non-Newtonian flow with flexible pipe.
it would be a fluid solid interaction (FSI)
which solver is suitable?
any hint or guideline ?

Bernhard June 18, 2012 07:33

Maybe fsiFoam of OpenFOAM 1.6-extend?

elvis June 18, 2012 08:51

I agree with Berhard http://openfoam-extend.git.sourcefor...alysis;hb=HEAD

http://powerlab.fsb.hr/ped/kturbo/Op...Zagreb2007.pdf
outdated (OF1.2) FSI presentation & newtonian only (just for completeness).
http://www.openfoamworkshop.org/08/p...V_Kanyanta.pdf

a good read is 6th OF workshop =>Block-coupled solvers, I. Clifford, PSU
=>Multi-Zonal Multi-Physics Modeling: FSI and Congjugate Heat/Mass Transfer,R. Campbell and B. Craven, PSU
Fluid-Structure Interaction on sail fabric type structures Daniele Trimarchi (University of Southampton)

Numerical simulation of sailing boats dynamics FSI and shape optimization Manifolds Matteo Lombardi (École Polytechnique Fédérale de Lausanne)

there will be more FSI stuff on the 7th OF workshop so watch that presentations in a couple of weeks when they are online

nimasam June 18, 2012 14:07

Hi again
i installed OpenFOAM 1.6-ext through debain pack,
in debain pack there is no example for icoFsiFoam.
and i could not launch to git "it gave me time out error connection"
However could you please put the solver example here

elvis June 18, 2012 15:20

Hello,

how is your .bashrc for your debian installation of OpenFOAM 1.6-ext looking like?
My first impression is that this might be the cause of your trouble.

source /usr/lib/OpenFOAM-1.6-ext/etc/bashrc
export FOAM_TUTORIALS=/usr/share/doc/openfoam-1.6-ext/examples
... etc. This debian installation follows the debian guidelines and differs to OF habits

nimasam June 18, 2012 15:23

:) thanks for your reply, i found the example files in usr/share/doc but it dose not have any example for icoFsiFoam

elvis June 18, 2012 16:03

Hi,

the tutorial case is http://openfoam-extend.git.sourcefor...eSmall;hb=HEAD

the solver is http://openfoam-extend.git.sourcefor...siFoam;hb=HEAD

or short cut sol cd stressAnalysis/icoFsiFoam to the sources.

I looked into 5th OF workshop installation and path there was
/usr/share/doc/openfoam-1.6-ext-dbg/examples/stressAnalysis/icoFsiFoam/flappingConsoleSmall to the "tutorial case example" consisting solid and fluid in seperate directories

hope that helps

nimasam June 21, 2012 01:24

1 Attachment(s)
as i said before, i found icoFsiFoam, but it does not have any example or tutorial case with it self: not in debain pack installation (http://openfoamwiki.net/index.php/Installation) not in kubuntu.iso from workshop (http://sourceforge.net/projects/openfoam-extend/)
and
i can not get OpenFOAM-extended from git with following command:
Quote:

git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/OpenFOAM®-1.6-ext
because i face the following error:
Quote:

openfoam-extend.git.sourceforge.net[0: 216.34.181.91]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)
however, thats why i asked, please put the test case here ;)

wyldckat June 23, 2012 14:02

Greetings to all!

@Nima: check the front-page of the Extend-Project: http://www.extend-project.de/ - you'll find that the correct git clone command is this:
Code:

git clone git://openfoam-extend.git.sourceforge.net/gitroot/openfoam-extend/openfoam-extend OpenFOAM-1.6-ext
Best regards,
Bruno

nimasam June 23, 2012 14:17

same error even with your command

wyldckat June 23, 2012 14:42

Hi Nima,

Then try these, where the second should work even behind a firewall:
Code:

git clone git://repo.or.cz/OpenFOAM-1.6-ext.git
git clone http://repo.or.cz/r/OpenFOAM-1.6-ext.git

FYI: these are mirrors of the main Extend-Project repository.

Best regards,
Bruno

viraj20feb September 7, 2016 01:05

Error while unzipping
 
Greetings,

I am trying to install the files required for FSI in foam-extend-3.1 and I am following the steps on this site: https://openfoamwiki.net/index.php/E...tutorial_cases

But when I give this command:
tar -xzf Fsi_31.tar.gz

There is an error stating:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Can anyone help?

Thank you

bigphil September 7, 2016 14:14

Quote:

Originally Posted by viraj20feb (Post 616873)
Greetings,

I am trying to install the files required for FSI in foam-extend-3.1 and I am following the steps on this site: https://openfoamwiki.net/index.php/E...tutorial_cases

But when I give this command:
tar -xzf Fsi_31.tar.gz

There is an error stating:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

Can anyone help?

Thank you

Hi Viraj,

You should be able to find the FSI code in the foam-extend-3.1/extend-bazaar directory; run the ./Allwmake script in the extend-bazaar directory to download and compile the code.

Philip

viraj20feb September 8, 2016 01:56

1 Attachment(s)
Quote:

Originally Posted by bigphil (Post 616994)
Hi Viraj,

You should be able to find the FSI code in the foam-extend-3.1/extend-bazaar directory; run the ./Allwmake script in the extend-bazaar directory to download and compile the code.

Philip

Hello Mr. Philip,

When I try to run the ./Allwmake script, I get the following error(Please refer attached).
Can you please help?

Thanks

bigphil September 8, 2016 10:09

Quote:

Originally Posted by viraj20feb (Post 617038)
Hello Mr. Philip,

When I try to run the ./Allwmake script, I get the following error(Please refer attached).
Can you please help?

Thanks

Did you try run the "./Allwclean" script first and then run the "./Allwmake" script?
Also note that you need to be connected to the internet as the Allwmake script downloads the files.

If it is still failing, could you upload the entire text output of the Allwmake script here?

Philip

viraj20feb September 9, 2016 01:20

3 Attachment(s)
Quote:

Originally Posted by bigphil (Post 617129)
Did you try run the "./Allwclean" script first and then run the "./Allwmake" script?
Also note that you need to be connected to the internet as the Allwmake script downloads the files.

If it is still failing, could you upload the entire text output of the Allwmake script here?

Philip

Hi,

I tried running the Allwclean script followed by Allwmake script and I tried to make a log file for both. But what I see is the log file remains empty while the output in the terminal window is a continuous never-ending error. You can see the attached images(one is the output for Allwclean and another is for Allwmake script). I have attached both the scripts as well.

Thanks a lot

Viraj

wyldckat September 11, 2016 11:23

Greetings to all!

@viraj20feb:
Quote:

Originally Posted by viraj20feb (Post 616873)
But when I give this command:
tar -xzf Fsi_31.tar.gz

There is an error stating:

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

The problem is that your connection to the Internet is using another intermediate server to download the necessary files and instead of providing the correct file, it's providing some weird file.

Please follow these steps:
  1. Use the Internet Browser to visit the section "Installation" on this wiki page: https://openfoamwiki.net/index.php/E...n#Installation
  2. Find this block of text:
    Quote:

    First publicly available snapshot of the source code
    Is available here on the wiki, which was designed to work with ... Fsi_31.tar.gz

  3. Click on the link that is on the name "Fsi_31.tar.gz".
  4. It should now download a file that has 472 KB.
  5. Place the downloaded file inside the user folder. The user folder is indicated by the following command:
    Code:

    echo $WM_PROJECT_USER_DIR
  6. Now go to the command line and run:
    Code:

    cd $WM_PROJECT_USER_DIR
    tar -xzf Fsi_31.tar.gz
    cd FluidStructureInteraction/src/fluidStructureInteraction/stressModels/constitutiveModel

    pwd

    The last command will tell you the full path to the folder where you need to place the next two files.
  7. Now, on your Internet Browser, click on this link: https://github.com/wyldckat/FluidStr...titutiveModel/
  8. Click on the two files that are shown there (one at a time), namely on "constitutiveModel.C" and "constitutiveModel.H". For each file:
    1. it will show a new page with the contents of the file;
    2. right-click on the button that says "RAW" and save the linked file to the folder pointed out by the previous command from step #6
  9. Go back to the command line and run:
    Code:

    cd ../../..
    ./Allwmake


Hopefully this will solve the problem.


@bigphil:
Quote:

Originally Posted by bigphil (Post 616994)
You should be able to find the FSI code in the foam-extend-3.1/extend-bazaar directory; run the ./Allwmake script in the extend-bazaar directory to download and compile the code.

Sorry to say that doesn't work, due to later changes made to foam-extend 3.1 that broke the building mechanism for the extend-bazaar contributions. That's why I wrote the instructions given here: https://openfoamwiki.net/index.php/E...oam-extend_3.1

Best regards,
Bruno

viraj20feb September 12, 2016 02:42

Quote:

Originally Posted by wyldckat (Post 617460)
Greetings to all!

@viraj20feb:

The problem is that your connection to the Internet is using another intermediate server to download the necessary files and instead of providing the correct file, it's providing some weird file.

Please follow these steps:
  1. Use the Internet Browser to visit the section "Installation" on this wiki page: https://openfoamwiki.net/index.php/E...n#Installation
  2. Find this block of text:
  3. Click on the link that is on the name "Fsi_31.tar.gz".
  4. It should now download a file that has 472 KB.
  5. Place the downloaded file inside the user folder. The user folder is indicated by the following command:
    Code:

    echo $WM_PROJECT_USER_DIR
  6. Now go to the command line and run:
    Code:

    cd $WM_PROJECT_USER_DIR
    tar -xzf Fsi_31.tar.gz
    cd FluidStructureInteraction/src/fluidStructureInteraction/stressModels/constitutiveModel

    pwd

    The last command will tell you the full path to the folder where you need to place the next two files.
  7. Now, on your Internet Browser, click on this link: https://github.com/wyldckat/FluidStr...titutiveModel/
  8. Click on the two files that are shown there (one at a time), namely on "constitutiveModel.C" and "constitutiveModel.H". For each file:
    1. it will show a new page with the contents of the file;
    2. right-click on the button that says "RAW" and save the linked file to the folder pointed out by the previous command from step #6
  9. Go back to the command line and run:
    Code:

    cd ../../..
    ./Allwmake


Hopefully this will solve the problem.


@bigphil:

Sorry to say that doesn't work, due to later changes made to foam-extend 3.1 that broke the building mechanism for the extend-bazaar contributions. That's why I wrote the instructions given here: https://openfoamwiki.net/index.php/E...oam-extend_3.1

Best regards,
Bruno


Hi Mr. Bruno,

Thank you so much for your help. The problem is solved now :D

viraj20feb September 12, 2016 08:35

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 617460)
Greetings to all!

@viraj20feb:

The problem is that your connection to the Internet is using another intermediate server to download the necessary files and instead of providing the correct file, it's providing some weird file.

Please follow these steps:
  1. Use the Internet Browser to visit the section "Installation" on this wiki page: https://openfoamwiki.net/index.php/E...n#Installation
  2. Find this block of text:
  3. Click on the link that is on the name "Fsi_31.tar.gz".
  4. It should now download a file that has 472 KB.
  5. Place the downloaded file inside the user folder. The user folder is indicated by the following command:
    Code:

    echo $WM_PROJECT_USER_DIR
  6. Now go to the command line and run:
    Code:

    cd $WM_PROJECT_USER_DIR
    tar -xzf Fsi_31.tar.gz
    cd FluidStructureInteraction/src/fluidStructureInteraction/stressModels/constitutiveModel

    pwd

    The last command will tell you the full path to the folder where you need to place the next two files.
  7. Now, on your Internet Browser, click on this link: https://github.com/wyldckat/FluidStr...titutiveModel/
  8. Click on the two files that are shown there (one at a time), namely on "constitutiveModel.C" and "constitutiveModel.H". For each file:
    1. it will show a new page with the contents of the file;
    2. right-click on the button that says "RAW" and save the linked file to the folder pointed out by the previous command from step #6
  9. Go back to the command line and run:
    Code:

    cd ../../..
    ./Allwmake


Hopefully this will solve the problem.


@bigphil:

Sorry to say that doesn't work, due to later changes made to foam-extend 3.1 that broke the building mechanism for the extend-bazaar contributions. That's why I wrote the instructions given here: https://openfoamwiki.net/index.php/E...oam-extend_3.1

Best regards,
Bruno


Hi Mr. Bruno,

I think the compilation was not completely successful. When I tried to run the 3Dpipe tutorial for fsiFoam solver, I get the following output:

./Allrun: 55: ./Allrun: fsiFoam: not found

I have also attached the output of ./Allwmake script. Please have a look.

Thank you

wyldckat September 13, 2016 15:52

Quick answer: Please run the following commands:
Code:

cd $WM_PROJECT_USER_DIR
cd FluidStructureInteraction/src/
./Allwmake > log.make 2>&1
gzip < log.make > log.make.gz

Then please attach the file "log.make.gz" to your next post. I ask this because the PDF file did not have any clear indication of any problem at all.


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