|
[Sponsors] |
March 1, 2021, 10:04 |
solids4Foam installation
|
#1 |
New Member
Join Date: Mar 2021
Posts: 9
Rep Power: 5 |
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! |
|
March 1, 2021, 12:03 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
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 |
|
March 2, 2021, 03:48 |
|
#3 |
New Member
Join Date: Mar 2021
Posts: 9
Rep Power: 5 |
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]* * |
|
March 2, 2021, 06:23 |
|
#4 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
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 07:35. Reason: Typo: changed soldis4foam to solids4foam |
|
March 2, 2021, 06:44 |
|
#5 |
New Member
Join Date: Mar 2021
Posts: 9
Rep Power: 5 |
Sure, thanks Philip.
|
|
April 7, 2021, 10:15 |
|
#6 |
New Member
Ugur
Join Date: May 2018
Posts: 5
Rep Power: 8 |
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. |
|
April 7, 2021, 10:55 |
|
#7 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
Quote:
The compilation seems fine, but you just get an error when the binaries are installed, even though the two libraries were installed correctly. Philip |
||
April 13, 2021, 12:05 |
|
#8 | |
New Member
Ugur
Join Date: May 2018
Posts: 5
Rep Power: 8 |
Quote:
Uğur |
||
April 13, 2021, 13:19 |
|
#9 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
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 |
|
April 13, 2021, 17:25 |
|
#10 | |
New Member
Ugur
Join Date: May 2018
Posts: 5
Rep Power: 8 |
Quote:
Yes, I sourced only one version (4.1). The full output from the Allwmake command is attached now. Uğur |
||
April 15, 2021, 05:06 |
|
#11 |
New Member
Ugur
Join Date: May 2018
Posts: 5
Rep Power: 8 |
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 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 Uğur |
|
June 17, 2021, 19:08 |
solids4Foam command not found.
|
#12 |
New Member
Alejandra Hernández Escobar
Join Date: Jun 2021
Posts: 4
Rep Power: 5 |
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. |
|
June 30, 2021, 15:20 |
Problem installation
|
#13 |
Senior Member
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 119
Rep Power: 10 |
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. |
|
July 12, 2021, 09:52 |
|
#14 | |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
Quote:
Code:
sudo apt install gfortran 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 |
||
July 23, 2021, 08:31 |
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: 5 |
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 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 |
|
July 23, 2021, 08:37 |
|
#16 |
Senior Member
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 119
Rep Power: 10 |
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. |
|
July 23, 2021, 08:52 |
|
#17 |
New Member
Philipp Conen
Join Date: Jul 2021
Location: Germany, NRW
Posts: 22
Rep Power: 5 |
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 Code:
g++ --version g++ (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 Code:
gcc --version gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0 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 |
|
July 23, 2021, 09:05 |
|
#18 |
Senior Member
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 119
Rep Power: 10 |
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. |
|
July 23, 2021, 13:20 |
|
#19 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34 |
Yep I also suspect that the gcc/g++ and gfortran versions are not the same.
|
|
July 26, 2021, 03:13 |
|
#20 |
New Member
Philipp Conen
Join Date: Jul 2021
Location: Germany, NRW
Posts: 22
Rep Power: 5 |
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. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ansys Installation on Docker Container | mohsen.shiea | ANSYS | 11 | March 14, 2024 12:18 |
how do i fix installation error of ansys 19.0 on ubuntu 18.04 | rid_taki | ANSYS | 15 | June 7, 2021 07: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 12:22 |
CFX11 + Fortran compiler ? | Mohan | CFX | 20 | March 30, 2011 19:56 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |