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

icoStructFoam on OF-1.6ext

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 10, 2014, 19:26
Default icoStructFoam on OF-1.6ext
  #1
New Member
 
Join Date: Oct 2011
Posts: 25
Rep Power: 5
danny261083 is on a distinguished road
Hello All,

I was wondering whether anyone was able to successfully compile and run the test cases for the icoStructFoam solver in OpenFoam 1.6-ext. The solver has been known to compile and run seamlessly on OpenFoam 1.6.

Thanks in advance.
danny261083 is offline   Reply With Quote

Old   October 11, 2014, 16:19
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings danny261083,

Are you referring to this solver: http://openfoamwiki.net/index.php/Contrib_icoStructFoam ?

I was curious about it... and I've updated that wiki page, since it didn't have any information yet regarding the code that is available in the SVN repository at the FOAM-Extend project.

in theory, it's possible to recreate this solver from the source code of any OpenFOAM version, as long as the same steps for merging the two solvers icoFoam and stressedFoam or solidDisplacementFoam are used.

I started trying to quickly make a port of this solver icoStructFoam for 1.6-ext, but ended giving up, since I spent more than 20 minutes looking into this

I'll move this thread from the installation sub-forum to the programming sub-forum, since this requires a lot of programming questions and respective answers for making such a port possible.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   October 14, 2014, 17:39
Default
  #3
New Member
 
Join Date: Oct 2011
Posts: 25
Rep Power: 5
danny261083 is on a distinguished road
Hi Bruno,

I was referring to the FSI solver posted on http://openfoamwiki.net/index.php/Contrib_icoStructFoam. I tried compiling the solver and running the test case on OF1.6 (extend version). However, I got an error stating icoStructFoam: command not found. I also tried to install OF1.6 using the instructions given on http://openfoamwiki.net/index.php/In...OAM-1.6/Ubuntu and was able to successfully build OpenFoam (in order to compile and run the icoStructFoam solver). Although I have used aliases to manage the 2 versions, I am now receiving an error stating blockMesh: command not found, when I attempted to run the cavity tutorial for OpenFoam-1.6 (the cavity tutorial in the extend version works without any issues). I would like to know whether there I might be making some mistakes during the solver building process for OF-1.6.

Thanks in advance.
danny261083 is offline   Reply With Quote

Old   October 19, 2014, 05:46
Default
  #4
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi danny261083,

In step #11 on this section: http://openfoamwiki.net/index.php/In...u#Ubuntu_12.04 - it references the file "make.log" and explains what to do with that file if you don't understand its contents.


This is really strange... according to the details on this thread: icoFsiFoam on OpenFOAM 1.6 - it's both stated that it's not possible to compile this solver in 1.6 and above, but it's later indicated that people managed to compile the solver in the more recent versions of OpenFOAM, but none of them provide their modified solver...

OK, this... is curious!? I've successfully compiled it on OpenFOAM 1.7.1 and 1.7.x, without any changes to the source code. Interesting, only the results on the "region1" have the mesh distorted... it did the same with an older OpenFOAM 1.5 (it's not 1.5.x nor 1.5-dev) and gave the same results, or at least it looked like it. Therefore, in OpenFOAM 1.6 or 1.6.x it should compile without any problems. But on 1.6-ext, this version apparently is different enough to complicate things...


Well, honestly, I don't know what to advise you. In 1.6-ext there is icoFsiFoam, which is meant to be better than icoStructFoam. And in foam-extend 3.1 there are a several more advanced solvers for this kind of simulation, within the category "solidMechanics".

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 24, 2014, 02:11
Default
  #5
New Member
 
Join Date: Oct 2011
Posts: 25
Rep Power: 5
danny261083 is on a distinguished road
Hi Bruno,

I was able to compile the icostructfoam solver on OpenFoam 2.3.0 by changing 'ddtPhiCorr' to 'ddtCorr'. However, I am getting some error messages while running the test cases (enclosed attachments). Additionally, I was attempting to compile the solver (http://openfoamwiki.net/index.php/Ex...re_interaction) in foam-extend-3.1. However, I was getting the error '/usr/bin/ld: cannot find -lfluidStructureInteraction'. I believe that the 'libfluidStructureInteraction.so' file is missing, hence the error. Any help on both these solvers would be greatly appreciated.

Thanks in advance.
ChannelFSIError_icoStructFoam.txt

LentosCaseError_icoStructFoam.txt

Last edited by wyldckat; January 2, 2015 at 14:38. Reason: repaired link to openfoamwiki.net
danny261083 is offline   Reply With Quote

Old   January 2, 2015, 17:10
Default
  #6
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi danny261083,

I've finally managed to look into this. So here's what I can figure out:
  1. ChannelFSIError_icoStructFoam.txt - the error message is this one:
    Code:
    --> FOAM FATAL ERROR:  
    Attempt to cast type wall to type symmetryPlane 
     
        From function refCast<To>(From&) 
        in file /home/opencfd/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/typeInfo.H at line 114. 
     
    FOAM aborting
    There is a "wall" somewhere that is defined as "symmetryPlane". My guess is that in the "constant/polyMesh/boundary" there is a boundary defined as "wall", but then in one of the field files that is defined as "symmetryPlane".
    I didn't find this example case, so I can't test it.
  2. LentosCaseError_icoStructFoam.txt - the error message is this one:
    Code:
    --> FOAM FATAL IO ERROR:  
    keyword displacementSBRStressCoeffs is undefined in dictionary "/home/administrator/OpenFOAM/administrator-2.3.0/run/thingOnStick/constant/region1/dynamicMeshDict" 
     
    file: /home/administrator/OpenFOAM/administrator-2.3.0/run/thingOnStick/constant/region1/dynamicMeshDict from line 25 to line 43. 
     
        From function dictionary::subDict(const word& keyword) const 
        in file db/dictionary/dictionary.C at line 643. 
     
    FOAM exiting
    You simply need to add the entry "displacementSBRStressCoeffs" to the file "constant/region1/dynamicMeshDict".
    I've looked at the respective test case and here's the bulk of the content that worked for me with OpenFOAM 2.3:
    Code:
    twoDMotion      yes;
    
    dynamicFvMesh dynamicMotionSolverFvMesh;
    
    motionSolverLibs ("libfvMotionSolvers.so");
    
    solver displacementSBRStress;
    
    displacementSBRStressCoeffs
    {
      diffusivity  uniform;
    }
    Problem is that now it gave me this error:
    Code:
    --> FOAM FATAL ERROR: 
    dimensions of phi are not correct
    
        From function EulerDdtScheme<Type>::fvcDdtPhiCorr
        in file finiteVolume/ddtSchemes/EulerDdtScheme/EulerDdtScheme.C at line 676.
    
    FOAM aborting
    Which means that the modification you made is either incomplete or simply wrong.
  3. I've looked at how things changed in pisoFoam and it looks like the correctly adapted code for using in OpenFOAM 2.3 should be this:
    Code:
              phi = (fvc::interpolate(U) & mesh1.Sf()) 
                    + fvc::interpolate(rUA)*fvc::ddtCorr(U, phi);
  4. Now I get it, the case "thingOnStick" is actually meant to be post-processed as in the attached image! In other words, the base mesh of the solid part (region2) is kept so that the distortion calculations are more easily made! Hence the results is a displacement field, instead of having the mesh move.
    In ParaView, we can use the filter "Warp by Vector" to morph the mesh accordingly to the field "D". Pretty neat!
Since I finally managed to figure out how to use this solver and example cases, and since I took the time to port the code and cases, I've made these available here: https://github.com/wyldckat/IcoStructFoam and will update the wiki shortly.


Regarding the toolkit at http://openfoamwiki.net/index.php/Ex...re_interaction - I haven't looked at it yet. I'll make another post when I've had a look into it.


Best regards,
Bruno
Attached Images
File Type: jpg Screenshot from 2015-01-02 20:37:39.jpg (65.3 KB, 13 views)
wyldckat is offline   Reply With Quote

Old   January 2, 2015, 20:05
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
OK, continuing my investigation regarding your questions, the only one missing was this:
Quote:
Originally Posted by danny261083 View Post
Additionally, I was attempting to compile the solver (http://openfoamwiki.net/index.php/Ex...re_interaction) in foam-extend-3.1. However, I was getting the error '/usr/bin/ld: cannot find -lfluidStructureInteraction'. I believe that the 'libfluidStructureInteraction.so' file is missing, hence the error. Any help on both these solvers would be greatly appreciated.
I don't understand what is the problem here, because I tested building it just now with foam-extend 3.1 and I did not have a single problem with it.
I simply followed the instructions presented here: http://openfoamwiki.net/index.php/Ex...re_interaction - namely after unpacking and going into the folder "FluidStructureInteraction", I ran:
Quote:
Code:
cd src/
./Allwmake
I then ran Allwmake again and there was no error message.
wyldckat is offline   Reply With Quote

Old   March 3, 2015, 12:42
Default
  #8
Senior Member
 
ok
Join Date: Oct 2013
Posts: 258
Rep Power: 4
Maimouna is on a distinguished road
Greeting to all,

I'd like to start using FluidStructureInteraction package in extend-bazaar for foam-extend-3.1 version. How could I run HronTurekFsi3 case, for example?

I went to the case path: foam-extend-3.1/extend-bazaar/FluidStructureInteraction/fsiFoam/HronTurekFsi3

Then, applied ./makeSerialLinks fluid solid, but gives the following error
bash: ./makeSerialLinks: /bin/tcsh: bad interpreter: No such file or directory.

What's missing? Is that error related to such missing steps during installation?

Guide me please to the right direction.

Regards
Maimouna
Maimouna is offline   Reply With Quote

Old   March 8, 2015, 09:32
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Maimouna,

Run the following command, to fix those scripts:
Code:
sed -i -e 's=tcsh=bash=' *Links
Although those scripts serve no purpose anymore, since these tutorial cases already seem prepared to be used.

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
error in installation openfoam 1.6ext mary mor OpenFOAM Installation 20 November 3, 2013 03:00
compiling icoStructFoam error using OF1.7 mhassani OpenFOAM Installation 7 June 11, 2012 09:22
postprocessing for icoStructFoam solver aut_iut OpenFOAM Post-Processing 8 July 28, 2010 05:05
Forces in icoStructFoam yukeone OpenFOAM 0 January 18, 2010 03:45
Error icoStructFoam pi06jl6 OpenFOAM Running, Solving & CFD 1 July 10, 2008 13:09


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