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

solids4Foam twoElasticBeams tutorial: multiple FSI interfaces

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By Daniel_Khazaei
  • 2 Post By Daniel_Khazaei

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2019, 09:15
Default solids4Foam Problem with running twoElasticBeams tutorial: multiple FSI interfaces
  #1
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Dear Philip
I look at to solids4Foam code and twoElasticBeams tutorial. As seen, the new solver can solve multiple elastic interfaces. Also I saw in code, it can define multi material, that is true? do you have any sample about it?
Thanks
Hojatollah

Last edited by Hgholami; December 18, 2019 at 14:29.
Hgholami is offline   Reply With Quote

Old   December 15, 2019, 09:36
Default
  #2
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Hi

Another question about twoElasticBeams, twoElasticBeams tutorial introduced in development branch. in development branch the fluidSolidInterface.C changed by
Quote:
// Read interface patches names for regions
// To maintain backwards compatibility, we will first check if a single
// interface pair are defined, then we will check for multiple interface
// pairs

if
(
fsiProperties_.found("solidPatch")
&& fsiProperties_.found("fluidPatch")
&& !fsiProperties_.found("solidPatches")
&& !fsiProperties_.found("fluidPatches")
)
{
solidPatchNames_.setSize(1, word(fsiProperties_.lookup("solidPatch")));
fluidPatchNames_.setSize(1, word(fsiProperties_.lookup("fluidPatch")));
}
else if
(
!fsiProperties_.found("solidPatch")
&& !fsiProperties_.found("fluidPatch")
&& fsiProperties_.found("solidPatches")
&& fsiProperties_.found("fluidPatches")
)
{
solidPatchNames_ = wordList(fsiProperties_.lookup("solidPatches"));
fluidPatchNames_ = wordList(fsiProperties_.lookup("fluidPatches"));

if (solidPatchNames_.size() != fluidPatchNames_.size())
{
FatalErrorIn("fluidSolidInterface::fluidSolidInter face(...)")
<< "Defined number of coupled fluid and solid patches "
<< "must be equal!" << nl
<< "Currently, there are " << solidPatchNames_.size()
<< " solid interface patches and " << fluidPatchNames_.size()
<< " patches!" << abort(FatalError);
}
}
else
{
FatalErrorIn("fluidSolidInterface::fluidSolidInter face(...)")
<< "Either 'solidPatch' and 'fluidPatch' should be defined OR "
<< "'solidPatches' and 'fluidPatches' but not both or neither!"
<< abort(FatalError);
}

solidPatchIndices_.setSize(solidPatchNames_.size() , label(-1));
fluidPatchIndices_.setSize(fluidPatchNames_.size() , label(-1));
In tutorial uses solid/fluidPatches, so the solver should go to elseIf, but in running solids4Foam it take error about keyword solidPatch is not defined in dictionary. Why?
may it due to solidPatch keyword of
Quote:
// loop over all coupled patches
forAll(solidPatchNames_, interfaceI)
{
// Solid patch index
const polyPatchID solidPatch
(
solidPatchNames_[interfaceI],
solidMesh().boundaryMesh()
);

Last edited by Hgholami; December 17, 2019 at 14:49.
Hgholami is offline   Reply With Quote

Old   December 18, 2019, 06:54
Default
  #3
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi,

The twoElasticBeams tutorial should work in the master branch. Please pull the latest master branch and check it. If you get an error, please give details of the error.

Philip
bigphil is offline   Reply With Quote

Old   December 18, 2019, 08:16
Default
  #4
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Hi
I also checked master branch of solids4Foam

the error again is
Quote:
--> FOAM FATAL IO ERROR:
keyword solidPatch is undefined in dictionary "/home/itp/foam/solids4foam/tutorials/fluidSolidInteraction/beamInCrossFlow/twoElasticBeams/constant/fsiProperties::fixedRelaxationCoeffs|AitkenCoeffs| ISNILSCoeffs"

file: /home/itp/foam/solids4foam/tutorials/fluidSolidInteraction/beamInCrossFlow/twoElasticBeams/constant/fsiProperties::fixedRelaxationCoeffs|AitkenCoeffs| ISNILSCoeffs from line 24 to line 49.

From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 395.

FOAM exiting



A note: In overall tutorial, I think a typing mistake "ISNILSCoeffs" exist in fsiProperties that not essential and unrelated to this topic.

Last edited by Hgholami; December 18, 2019 at 10:47.
Hgholami is offline   Reply With Quote

Old   December 18, 2019, 09:22
Default
  #5
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
Just checked out the development branch and the tutorial is working properly.

I have checked the log files you send and it seems that the toolkit doesn't compile on your system.

I guess that your system is sill using the old libraries from the last successful compile process which is why the tutorial is not working for you!
This also describes why you can't run any of the feature-coupledTemperatureField's tutorials.

Please report the following:

1- operating system
2- gcc version
3- Does foam-extend itself compile without any error?
bigphil likes this.
Daniel_Khazaei is offline   Reply With Quote

Old   December 18, 2019, 10:29
Default
  #6
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Dear Daniel
OS:
lsb_release -a
Quote:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 18.04.3 LTS
Release: 18.04
Codename: bionic
gcc --version
Quote:
gcc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0
Copyright (C) 2017 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Installation of foam-extend was done by instructions of https://openfoamwiki.net/index.php/I...oam-extend-4.0
and https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04
maybe some feature not compiled in all. But it run correctly those tutorials.
Hgholami is offline   Reply With Quote

Old   December 18, 2019, 11:00
Default
  #7
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
Quote:
Originally Posted by Hgholami View Post
gcc --version
No problem with OS, but can you show me which guide you followed to compile foam-extend-4.0?
Because if I remember correctly, foam-extend-4.0 is not compatible with gcc-7.

Although I have personally tested solids4Foam with gcc-5 and gcc-8,
I think that Dr. Cardiff have already resolved issues regrading gcc-7 compatibility.

But you need to be consistent to avoid any ABI compatibility issues, try the following:
  • Start clean and fresh
  • compile foam-extend-4.0 using this guide and gcc-5: https://openfoamwiki.net/index.php/I...u#Ubuntu_18.04
  • The modification in above guide ensures that gcc version is selected correctly when foam-extend environment is sourced.
  • Check the log file for any possible error during compile.
  • Now start from cleaning solids4Foam directory using Allwclean script and try compiling again.
  • It should compile without any issues.
bigphil and Hgholami like this.

Last edited by Daniel_Khazaei; December 18, 2019 at 16:32.
Daniel_Khazaei is offline   Reply With Quote

Old   December 18, 2019, 14:14
Default
  #8
Senior Member
 
Hojatollah Gholami
Join Date: Jan 2019
Posts: 171
Rep Power: 7
Hgholami is on a distinguished road
Yes. The problem it seen was due to compiler and gcc.
Now I success to run twoElasticbeams tutorial with master branch of solids4Foam.
Thanks
Hgholami 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
[DesignModeler] FSI tutorial model nghiabinh ANSYS Meshing & Geometry 0 April 4, 2013 05:19
FSI Tutorial ashtonJ CFX 0 November 17, 2011 21:38
FSI fluid structure interaction tutorial chapter 23 davedave121 CFX 4 February 5, 2010 02:40
MFX , FSI, tutorial? example? Tom CFX 1 May 17, 2006 10:58
Gambit tutorial for Multiple Fluid Zones ? bete FLUENT 1 July 9, 2001 04:32


All times are GMT -4. The time now is 23:48.