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] solids4Foam installation

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

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 1, 2021, 09:04
Default solids4Foam installation
  #1
New Member
 
Join Date: Mar 2021
Posts: 9
Rep Power: 5
Deep1994 is on a distinguished road
I have installed the foamextend-4.0 and also downloaded solids4Foam. However, I have not been able to install solids4Foam properly, and this has resulted in errors every time (although foamextend-4.0 is installed correctly). I get errors.

Could you please tell me where to download the solids4Foam release (in which directory I mean - ~/.. OR ~/foam/.. OR ~/foam/foamextend-4.0/..) and then how to proceed with the installation and the proper way to solve FSI problems? If there is any detailed documentation on that, it would be great of you if you could kindly share the same! Thank you in advance!
Deep1994 is offline   Reply With Quote

Old   March 1, 2021, 11:03
Default
  #2
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
Hi,

Can you post the full log file from Allwmake here? i.e. run the following command in the solids4foam-release directory and upload log.Allwmake when it is done:
Code:
$> ./Allwmake &> log.Allwmake
Philip
bigphil is offline   Reply With Quote

Old   March 2, 2021, 02:48
Default
  #3
New Member
 
Join Date: Mar 2021
Posts: 9
Rep Power: 5
Deep1994 is on a distinguished road
Dear Philip,

I have done as you suggested:*./Allwmake &> log.Allwmake

And then I types:*$> solids4Foam -help

And I see that it gives this output:

Usage: solids4Foam [-DebugSwitches key1=val1,key2=val2,...] [-DimensionedConstants key1=val1,key2=val2,...] [-InfoSwitcheskey1=val1,key2=val2,...] [-OptimisationSwitcheskey1=val1,key2=val2,...] [-Tolerances key1=val1,key2=val2,...] [-case dir] [-dumpControlSwitches] [-noFunctionObjects] [-parallel][-help] [-doc] [-srcDoc]* *
Deep1994 is offline   Reply With Quote

Old   March 2, 2021, 05:23
Default
  #4
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
If the solids4Foam command works (which is does from the output you have shown) then solids4foam is installed. Next step is to follow one of the tutorials.

Philip

Last edited by bigphil; March 2, 2021 at 06:35. Reason: Typo: changed soldis4foam to solids4foam
bigphil is offline   Reply With Quote

Old   March 2, 2021, 05:44
Default
  #5
New Member
 
Join Date: Mar 2021
Posts: 9
Rep Power: 5
Deep1994 is on a distinguished road
Sure, thanks Philip.
Deep1994 is offline   Reply With Quote

Old   April 7, 2021, 09:15
Default
  #6
New Member
 
Ugur
Join Date: May 2018
Posts: 5
Rep Power: 7
ugurcan is on a distinguished road
Dear all,

I am trying to compile solids4foam with foam-extend 4.1 but I have a problem. I have compiled solids4foam successfully in version: 4.0 of foam-extend. However, errors occurred when I was trying to compile it in version 4.1 of foam-extend and compilation was interrupted.

Log file of my second try of compilation process after errors occurred is attached. How can I solve this problem?

Any help would be appreciated.
Attached Files
File Type: txt log-compiling.txt (23.1 KB, 26 views)
ugurcan is offline   Reply With Quote

Old   April 7, 2021, 09:55
Default
  #7
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 ugurcan View Post
Dear all,

I am trying to compile solids4foam with foam-extend 4.1 but I have a problem. I have compiled solids4foam successfully in version: 4.0 of foam-extend. However, errors occurred when I was trying to compile it in version 4.1 of foam-extend and compilation was interrupted.

Log file of my second try of compilation process after errors occurred is attached. How can I solve this problem?

Any help would be appreciated.
Is it possible that you have run out of disk space? Or maybe you don't have write permission to /home/ugurbuntu/foam/ugurbuntu-4.1/applications/bin/linux64GccDPInt32Opt?

The compilation seems fine, but you just get an error when the binaries are installed, even though the two libraries were installed correctly.

Philip
bigphil is offline   Reply With Quote

Old   April 13, 2021, 11:05
Default
  #8
New Member
 
Ugur
Join Date: May 2018
Posts: 5
Rep Power: 7
ugurcan is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Is it possible that you have run out of disk space? Or maybe you don't have write permission to /home/ugurbuntu/foam/ugurbuntu-4.1/applications/bin/linux64GccDPInt32Opt?

The compilation seems fine, but you just get an error when the binaries are installed, even though the two libraries were installed correctly.

Philip
Hello Philip, it is not related to disk space or permissions. I try to execute Allwclean and Allwmake again for solids4foam but it didn't work. I have installed the solids4foam with foam-extend 4.0 in the same way that I try now. Could conflict between the versions be the cause of the problem?

Uğur
ugurcan is offline   Reply With Quote

Old   April 13, 2021, 12:19
Default
  #9
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
Hi Uğur,

Assuming you have only one version of OpenFOAM/foam sourced at any one time then it should not be a conflict between versions. Can you attached the full output from the Allwmake script? e.g. log.Allwmake from the command Allwmake &> log.Allwmake

Philip
bigphil is offline   Reply With Quote

Old   April 13, 2021, 16:25
Default
  #10
New Member
 
Ugur
Join Date: May 2018
Posts: 5
Rep Power: 7
ugurcan is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Hi Uğur,

Assuming you have only one version of OpenFOAM/foam sourced at any one time then it should not be a conflict between versions. Can you attached the full output from the Allwmake script? e.g. log.Allwmake from the command Allwmake &> log.Allwmake

Philip
Hi Philip,

Yes, I sourced only one version (4.1). The full output from the Allwmake command is attached now.

Uğur
Attached Files
File Type: zip log.zip (22.9 KB, 7 views)
ugurcan is offline   Reply With Quote

Old   April 15, 2021, 04:06
Default
  #11
New Member
 
Ugur
Join Date: May 2018
Posts: 5
Rep Power: 7
ugurcan is on a distinguished road
My installation problem of solids4foam was solved. The reason is that foam-extend 4.1 was not successfully compiled because of missing some dependencies so the compilation of solids4foam was also interrupted. There is a typo in the below wiki web-site for installation of foam-extend 4.1 on ubuntu 18.04:

https://openfoamwiki.net/index.php/I...end-4.1/Ubuntu

The command line to install required packages is like follows:
Code:
sudo apt-get install git-core build-essential binutils-dev cmake flex \
zlib1g-dev  libncurses5-dev curl bison gnuplot gnuplot-qt gnuiplot-data \
libxt-dev rpm mercurial graphviz python python-dev python3 python3-dev
but, it should be:
Code:
sudo apt-get install git-core build-essential binutils-dev cmake flex \
zlib1g-dev  libncurses5-dev curl bison gnuplot gnuplot-qt gnuplot-data \
libxt-dev rpm mercurial graphviz python python-dev python3 python3-dev
It would be nice to make a correction. Thanks for help.

Uğur
bigphil likes this.
ugurcan is offline   Reply With Quote

Old   June 17, 2021, 18:08
Default solids4Foam command not found.
  #12
New Member
 
Alejandra Hernández Escobar
Join Date: Jun 2021
Posts: 4
Rep Power: 4
ajelahe74 is on a distinguished road
Hello!

I'm having some trouble installing solids4Foam. The thing is, I installed foam-extended 4.1 successfully, and then I follow the steps to compile solids4Foam... The compilation seems fine to me, but for some reason when I go "solids4Foam -help" says: Command not found.

I tried to run the punch tutorial and in the log files, and Paraview I see the process is conducted until the solids4Foam part. On screen even, seems to run fine:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~
| solids4Foam::convertCaseFormat start |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~

foam-extend-4.1 loaded
Running cartesianMesh on /home/alejandra/foam/alejandra-4.1/run/punch
Running cartesianMesh on /home/alejandra/foam/alejandra-4.1/run/punch
Running mergeSubMeshesNew on /home/alejandra/foam/alejandra-4.1/run/punch
Running transformPoints
Running autoPatch on /home/alejandra/foam/alejandra-4.1/run/punch
Running createPatch on /home/alejandra/foam/alejandra-4.1/run/punch
Running splitPatch on /home/alejandra/foam/alejandra-4.1/run/punch
Running solids4Foam on /home/alejandra/foam/alejandra-4.1/run/punch

but then the log.solids4Foam says /home/alejandra/foam/foam-extend-4.1/bin/tools/RunFunctions: línea 57: solids4Foam: Command not found.

Here you'll find attached the log files I mention.
Attached Files
File Type: txt solids4Foam.txt (2.9 KB, 4 views)
File Type: zip Allwmakelog.zip (28.9 KB, 1 views)
ajelahe74 is offline   Reply With Quote

Old   June 30, 2021, 14:20
Default Problem installation
  #13
Senior Member
 
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 117
Rep Power: 10
dewey is on a distinguished road
Hi, I have the next problem when I try to install solids4Foam with fe41,


/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make[1]: *** [/home/magikarp/foam/foam-extend-4.1/wmake/Makefile:160: /home/magikarp/foam/magikarp-4.1/applications/bin/linux64GccDPInt32Opt/solids4Foam] Error 1
make: *** [/home/magikarp/foam/foam-extend-4.1/wmake/MakefileApps:39: solids4Foam] Error 2
make: Target 'application' not remade because of errors.



Do you know how to fix it?


Regards.
Attached Files
File Type: txt log.txt (6.0 KB, 0 views)
dewey is offline   Reply With Quote

Old   July 12, 2021, 08:52
Default
  #14
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 dewey View Post
Hi, I have the next problem when I try to install solids4Foam with fe41,


/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
make[1]: *** [/home/magikarp/foam/foam-extend-4.1/wmake/Makefile:160: /home/magikarp/foam/magikarp-4.1/applications/bin/linux64GccDPInt32Opt/solids4Foam] Error 1
make: *** [/home/magikarp/foam/foam-extend-4.1/wmake/MakefileApps:39: solids4Foam] Error 2
make: Target 'application' not remade because of errors.



Do you know how to fix it?


Regards.
If you install the gfortran library it will fix the problem, e.g. on Ubuntu:
Code:
sudo apt install gfortran
This requirement allows linking to Abaqus UMAT (which are written in fortran).

I recently pushed this feature but I am now wondering if it would be better to disable it by default, since most will not have gfortran by default...

Philip
bigphil is offline   Reply With Quote

Old   July 23, 2021, 07:31
Default Solids4Foam - Compilation Error on OpenFOAM-7 and Foam-Exent-4.0
  #15
New Member
 
Philipp Conen
Join Date: Jul 2021
Location: Germany, NRW
Posts: 22
Rep Power: 4
philippconen is on a distinguished road
Dear Philip,

taking research on Fluid-Structure-Interaction (FSI) package for my master thesis, I found your package "Solids4Foam".

First I compiled OpenFOAM V7 (Following: https://openfoamwiki.net/index.php/I...7/Ubuntu/18.04)

Following the steps mentioned in your presentation:
https://www.researchgate.net/profile...am-toolbox.pdf
(Nice work by the way!)
I got the message of missing "gfortran" package.

I installed it via:
Code:
sudo apt update 
sudo apt install gfortran
Unfortunately, I ended up with new errors (see attachments).

Also I tried to compile it in Foam-Extend-4.0, but I also get the same error like dewey:
Code:
philipp-4.0/applications/bin/linux64GccDPOpt/solids4Foam
/usr/bin/ld: cannot find -lgfortran
collect2: error: ld returned 1 exit status
/home/philipp/foam/foam-extend-4.0/wmake/Makefile:159: recipe for target   '/home/philipp/foam/philipp-4.0/applications/bin/linux64GccDPOpt/solids4Foam'  failed
make[1]: *** [/home/philipp/foam/philipp-4.0/applications/bin/linux64GccDPOpt/solids4Foam] Error 1
/home/philipp/foam/foam-extend-4.0/wmake/MakefileApps:39: recipe for target 'solids4Foam' failed
make: *** [solids4Foam] Error 2
make: Target 'application' not remade because of errors.


Like I said, gfortran is installed. I am using Ubuntu 18.04.
Actually, I also try to get it working with Foam-Extend-4.1.
Trying out the docker solution worked for me after some fixes.

Do you or somebody else can help me out fixing the errors for the FE-4.0 or OF-V7, please?

Greetings

Philipp
Attached Files
File Type: gz log.Allwmake_Solid4Foam.gz (5.7 KB, 1 views)
philippconen is offline   Reply With Quote

Old   July 23, 2021, 07:37
Default
  #16
Senior Member
 
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 117
Rep Power: 10
dewey is on a distinguished road
Hi Phiilip, try to install the version of gfortran-7 with

sudo apt install gfortran-7

First clean the installation and then install it.

That works with fe41 in Ubuntu 20.04.

I hope that helps You.
bigphil likes this.
dewey is offline   Reply With Quote

Old   July 23, 2021, 07:52
Default
  #17
New Member
 
Philipp Conen
Join Date: Jul 2021
Location: Germany, NRW
Posts: 22
Rep Power: 4
philippconen is on a distinguished road
Dear Alberto,


first, thanks for your quick answer!


Rechecking the installed version of gfortran I figured out that everything is up-to-date.

Code:
gfortran --version
GNU Fortran (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
Also g++
Code:
g++ --version
g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
and gcc
Code:
gcc --version
gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
match.


With cleaning the installation you mean the installation of Solids4Foam and not the whole OpenFOAM/ Foam-Extend-X.X, correct?
If so, I already did it for the options OF7 and FE4.0.



I will wait until Foam-Extend-4.1 is compiled and give you all feedback if it works.


Greetings


Philipp
philippconen is offline   Reply With Quote

Old   July 23, 2021, 08:05
Default
  #18
Senior Member
 
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 117
Rep Power: 10
dewey is on a distinguished road
Yes, I mean the solids4foam installation.

You are using Ubuntu 18.04 and if I don't mistake, fe40 in 18.04 uses gcc-5 g++-5, so, I think in that case you have to install gfortran-5.

In Ubuntu 20.04 the newest versión is 9, but fe41 uses 7, so that fix my problem.

Try it and if works will be nice to share.
dewey is offline   Reply With Quote

Old   July 23, 2021, 12:20
Default
  #19
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
Yep I also suspect that the gcc/g++ and gfortran versions are not the same.
bigphil is offline   Reply With Quote

Old   July 26, 2021, 02:13
Default
  #20
New Member
 
Philipp Conen
Join Date: Jul 2021
Location: Germany, NRW
Posts: 22
Rep Power: 4
philippconen is on a distinguished road
Foam-Extend-4.1 is compiled and it seems to work now with the above mentioned versions of g++, gcc and gfortran.


Many thanks for your help!


Btw, I did not actually tried to switch g++-, gcc- and gfortran-versions to get Foam-Extend-4.0 running.
philippconen is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ansys Installation on Docker Container mohsen.shiea ANSYS 11 March 14, 2024 11:18
how do i fix installation error of ansys 19.0 on ubuntu 18.04 rid_taki ANSYS 15 June 7, 2021 06:32
[foam-extend.org] A smooth installation of foam-3.0-extend on OpenSUSE 13.1 64-bits cookcaptain OpenFOAM Installation 7 May 26, 2015 11:22
CFX11 + Fortran compiler ? Mohan CFX 20 March 30, 2011 18:56
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07


All times are GMT -4. The time now is 16:04.