CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

[FSI] Installing FSI toolkit in foam-extend 4.0

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes
  • 2 Post By wyldckat
  • 3 Post By wyldckat
  • 3 Post By treem22

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2019, 09:30
Default Installing FSI toolkit in foam-extend 4.0
  #1
Member
 
Mike Tree
Join Date: Feb 2016
Location: Charlotte, NC
Posts: 37
Rep Power: 10
treem22 is on a distinguished road
Bruno,

You mind if I tack on an additional question?

With foam-extend-4.0 now installed correctly, I'm trying to add the Fluid-Structure Interaction toolkit. I'm following the instructions on the wiki (https://openfoamwiki.net/index.php/E...re_interaction), but am coming up with errors when compiling.

My log.make.gz file is attached.

Any help here?

[Moderator note: moved from foam-extend-4.0 install not as root ]
Attached Files
File Type: gz log.make.gz (7.2 KB, 30 views)

Last edited by wyldckat; March 1, 2019 at 19:31. Reason: see "Moderator note:"
treem22 is offline   Reply With Quote

Old   March 1, 2019, 20:40
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: It's the same issue as reported here: https://github.com/wyldckat/FluidStr...ction/issues/4

I've now taken a look into this and have reported the fix in a recent comment... and I quote:
Quote:
I've finally managed to look into this and the solution is apparently fairly simple... all that was missing is the addition of this line:
Code:
#include <vector>
next to the other includes in the file:
Code:
src/fluidSolidInteraction/fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C
A quick way to apply this fix is to run the following command before running Allwmake:
Code:
sed -i -e 's=\(using namespace\)=#include <vector>\n\1=' fluidSolidInteraction/fluidSolvers/finiteVolume/RBFMeshMotionSolver/RBFMeshMotionSolver.C
Daniel_Khazaei and treem22 like this.
__________________
wyldckat is offline   Reply With Quote

Old   March 2, 2019, 13:28
Default
  #3
Member
 
Mike Tree
Join Date: Feb 2016
Location: Charlotte, NC
Posts: 37
Rep Power: 10
treem22 is on a distinguished road
Bruno,

Thanks for the help! The saga continues...

Now I'm getting a complaint that libfluidSolidInteraction.so has some undefined references.

A new log.make.gz file is attached.

Also, I read the entirety of the gitHub issue and checked my compiler versions. Both gcc and g++ are version 5.4.0
Attached Files
File Type: gz log.make.gz (1.5 KB, 6 views)
treem22 is offline   Reply With Quote

Old   March 2, 2019, 17:08
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,974
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: Apparently I was lucky with GCC 5.5.0 on Ubuntu 18.04.

The error you've gotten is mostly of this type:
Code:
libfluidSolidInteraction.so: undefined reference to `Foam::debug::optimisationSwitchValues_[abi:cxx11]'
which seems to imply that the c++11 standard is required for everything that was built in foam-extend...

I'm too tired at the moment to look further into this... my best suggestion would be to contact Philip Cardiff - forum member bigphil - and ask for access to the solids4Foam toolkit. There are plans for a release soon, but there wasn't a set date yet.

You may need to install foam-extend 4.1 that is in development, namely from the branch "nextRelease" for that as well, but I'm not 100% certain about it.

This is because the FSI toolkit is being replaced by the solids4Foam toolkit. Furthermore, foam-extend 4.1 supports the c++11 standard that the FSI toolkit is already using, therefore things would match up properly.
wyldckat is offline   Reply With Quote

Old   March 5, 2019, 16:52
Default
  #5
Member
 
Mike Tree
Join Date: Feb 2016
Location: Charlotte, NC
Posts: 37
Rep Power: 10
treem22 is on a distinguished road
It worked!

First, I tried to install the solids4foam toolkit with foam-extend-4.0, but that resulted in the same "optimisationSwitchValues" type error as using extendBazaar FSI with foam-extend-4.0. So, I switched to foam-extend-4.1. Once I switched, solids4foam installed without any issues and I have the tutorials up and running.

Thanks!!!
wyldckat, Daniel_Khazaei and saatt like this.
treem22 is offline   Reply With Quote

Old   August 8, 2019, 06:06
Default
  #6
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,089
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by treem22 View Post
It worked!

First, I tried to install the solids4foam toolkit with foam-extend-4.0, but that resulted in the same "optimisationSwitchValues" type error as using extendBazaar FSI with foam-extend-4.0. So, I switched to foam-extend-4.1. Once I switched, solids4foam installed without any issues and I have the tutorials up and running.

Thanks!!!
Hi treem22,

Do you still have still compilation error with solids4foam and foam-extend-4.0?
It should compile with both foam-extend-4.0 and foam-extend-4.1.

Philip
bigphil is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Other] refineWallLayer Error Yuby OpenFOAM Meshing & Mesh Conversion 2 November 11, 2021 11:04
[Salome] Salome import "Cannot find file "points" in directory..." mismichael OpenFOAM Meshing & Mesh Conversion 5 June 22, 2019 02:56
[swak4Foam] Basic Error when installing swak4foam with foam extend 3.0 mnobrega OpenFOAM Community Contributions 6 April 1, 2014 01:47
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56
how to extend FSI 2D codes to 3D, need advises abouziar Main CFD Forum 1 May 30, 2008 04:08


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