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 Tree7Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2021, 11:05
Default
  #21
New Member
 
Filippo Azzini
Join Date: Apr 2020
Posts: 3
Rep Power: 4
Filippo_azz is on a distinguished road
Hi everybody, i have the same error while compiling solid4Foam:
Code:
 /usr/bin/ld: impossibile trovare -lgfortran
i have already installed gfortran, gcc and g++ and all are at the same version:


Code:
GNU Fortran (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
.


I'm working on Ubuntu 20.04, with foam extended 4.0


Thanks a lot for your help



Filippo
<lorentz< likes this.
Filippo_azz is offline   Reply With Quote

Old   September 22, 2021, 12:55
Default
  #22
Senior Member
 
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 117
Rep Power: 8
dewey is on a distinguished road
Hi Filippo,


Fe40 works with gcc-5 and g++-5, so you have to install gfortran-5.


I am working with fe41 and I have to install gfortran-7 in order to install solids4Foam, because fe41 works with gcc-7 and g++-7.


Regards.
bigphil likes this.

Last edited by dewey; September 22, 2021 at 14:56.
dewey is offline   Reply With Quote

Old   September 22, 2021, 14:54
Default
  #23
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,026
Rep Power: 32
bigphil will become famous soon enoughbigphil will become famous soon enough
To add to dewey's answer:

Even though gcc-9 is the default version on Ubuntu 20.04, I suspect that foam-extend-4.0 is using gcc-5 or similar as I don't think foam-extend will compile with gcc-9 (at least without many changes).

Philip
bigphil is offline   Reply With Quote

Old   September 23, 2021, 11:06
Default
  #24
New Member
 
Filippo Azzini
Join Date: Apr 2020
Posts: 3
Rep Power: 4
Filippo_azz is on a distinguished road
thank you so much dewey and philip, now i have compiled solids4Foam


All the best

Filippo
dewey likes this.
Filippo_azz is offline   Reply With Quote

Old   October 11, 2021, 11:00
Default solids4Foam: command not found
  #25
New Member
 
anaspauzi's Avatar
 
Anas Muhamad Pauzi
Join Date: Nov 2019
Posts: 16
Rep Power: 5
anaspauzi is on a distinguished road
Hi

Did you manage to solve your problem?

I had the same problem too when installing in my new laptop, the FE40 was installed and running perfectly.

But couldn't type in solids4Foam

"solids4Foam: command not found"

Please help

Tq
ANAS


Quote:
Originally Posted by ajelahe74 View Post
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.
anaspauzi is offline   Reply With Quote

Old   October 11, 2021, 13:03
Default
  #26
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,026
Rep Power: 32
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by anaspauzi View Post
Hi

Did you manage to solve your problem?

I had the same problem too when installing in my new laptop, the FE40 was installed and running perfectly.

But couldn't type in solids4Foam

"solids4Foam: command not found"

Please help

Tq
ANAS
Please attach the log from running this:
Code:
./Allwmake &> log.Allwmake
in the main solids4foam directory.

Philip
anaspauzi likes this.
bigphil is offline   Reply With Quote

Old   October 11, 2021, 19:50
Default
  #27
New Member
 
anaspauzi's Avatar
 
Anas Muhamad Pauzi
Join Date: Nov 2019
Posts: 16
Rep Power: 5
anaspauzi is on a distinguished road
Thank you Phillip for the answer, just realized the solution already mentioned above.

I'm installing solids4Foam on Foam-Extend-4.0 and Ubuntu-20.04

sudo apt install gfortran-5
sudo apt-get update
./Allclean
./Allwmake
anaspauzi is offline   Reply With Quote

Old   November 5, 2021, 10:25
Default
  #28
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 3
MFWilliams is on a distinguished road
Quote:
Originally Posted by Deep1994 View Post
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!

I am also unsure as to which directory I should download solids4foam into. Could someone please advise me?


Best regards
Merlin
MFWilliams is offline   Reply With Quote

Old   November 5, 2021, 11:37
Default
  #29
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 3
MFWilliams is on a distinguished road
Quote:
Originally Posted by Filippo_azz View Post
Hi everybody, i have the same error while compiling solid4Foam:
Code:
 /usr/bin/ld: impossibile trovare -lgfortran
i have already installed gfortran, gcc and g++ and all are at the same version:


Code:
GNU Fortran (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
.


I'm working on Ubuntu 20.04, with foam extended 4.0


Thanks a lot for your help



Filippo





Hi,


I've noticed that you succesfully installed and compiled foam extend 4.0 on ubuntu 20.04. I have had great trouble in doing this. Could you please provide me with the exact steps that you took and any modifications you made to the code to install it successfully?


Best regards
Merlin
MFWilliams is offline   Reply With Quote

Old   November 5, 2021, 12:43
Default
  #30
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,026
Rep Power: 32
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by MFWilliams View Post
I am also unsure as to which directory I should download solids4foam into. Could someone please advise me?


Best regards
Merlin
Hi Merlin,

You can try follow the (limited) documentation here: https://bitbucket.org/philip_cardiff...documentation/.

You can download solids4foam to anywhere you like; I place it in $FOAM_RUN/..
bigphil is offline   Reply With Quote

Old   November 5, 2021, 12:45
Default
  #31
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,026
Rep Power: 32
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by MFWilliams View Post
Hi,


I've noticed that you succesfully installed and compiled foam extend 4.0 on ubuntu 20.04. I have had great trouble in doing this. Could you please provide me with the exact steps that you took and any modifications you made to the code to install it successfully?


Best regards
Merlin
You can try the steps on the Wiki for installing foam-extend-4.0 on Ubuntu-20.04: https://openfoamwiki.net/index.php/I...u#Ubuntu_20.04. There they mention to use gcc5 which should be fine, but in my experience you can also use gcc6 and gcc7 (maybe even gcc8, but FE40 does not compile with gcc9).
bigphil is offline   Reply With Quote

Old   November 6, 2021, 06:17
Default
  #32
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 3
MFWilliams is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Hi Merlin,

You can try follow the (limited) documentation here: https://bitbucket.org/philip_cardiff...documentation/.

You can download solids4foam to anywhere you like; I place it in $FOAM_RUN/..

Ok thank you very much
MFWilliams is offline   Reply With Quote

Old   December 15, 2021, 07:48
Default Is it possible to set different properties in two domains?
  #33
Senior Member
 
kimy
Join Date: Mar 2019
Posts: 164
Rep Power: 5
qi.yang@polimi.it is on a distinguished road
Dear Prof. Cardiff,

I now need to set different soil properties (those in constant dictionary) in two regions. I tried to set them by using setFileds but it is not allowed. Do you have any ideas? Thanks.
qi.yang@polimi.it is offline   Reply With Quote

Old   December 15, 2021, 08:19
Default
  #34
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,026
Rep Power: 32
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by qi.yang@polimi.it View Post
Dear Prof. Cardiff,

I now need to set different soil properties (those in constant dictionary) in two regions. I tried to set them by using setFileds but it is not allowed. Do you have any ideas? Thanks.
This can be done in the mechanicalProperties using two (or more) material definitions, e.g. see solids4foam-release/tutorials/solids/multiMaterial.

For each material, it is expected that a cellZone exists with the same name, to designate the different material regions.
bigphil is offline   Reply With Quote

Old   December 15, 2021, 12:40
Default
  #35
Senior Member
 
kimy
Join Date: Mar 2019
Posts: 164
Rep Power: 5
qi.yang@polimi.it is on a distinguished road
Quote:
Originally Posted by bigphil View Post
This can be done in the mechanicalProperties using two (or more) material definitions, e.g. see solids4foam-release/tutorials/solids/multiMaterial.

For each material, it is expected that a cellZone exists with the same name, to designate the different material regions.
Thanks, Prof. But I did not see any case under multiMaterial. Only some blank files. In fact, what I want is to set different soil properties, such as hydraulicConductivity, etc.
Attached Images
File Type: jpg multiMaterial.jpg (54.7 KB, 2 views)
qi.yang@polimi.it is offline   Reply With Quote

Old   December 15, 2021, 12:48
Default
  #36
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,026
Rep Power: 32
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by qi.yang@polimi.it View Post
Thanks, Prof. But I did not see any case under multiMaterial. Only some blank files. In fact, what I want is to set different soil properties, such as hydraulicConductivity, etc.
These are symbolic links; if you click on one via bitbucket it will show you where it points.
As an example mechanicalProperties, see here: https://bitbucket.org/philip_cardiff...icalProperties, which is:
Code:
mechanical
(
    steel
    {
        type            linearElastic;
        rho             rho [1 -3 0 0 0 0 0] 7854;
        E               E [1 -1 -2 0 0 0 0] 200e+9;
        nu              nu [0 0 0 0 0 0 0] 0.3;
    }
    aluminium
    {
        type            linearElastic;
        rho             rho [1 -3 0 0 0 0 0] 7854;
        E               E [1 -1 -2 0 0 0 0] 2e+9;
        nu              nu [0 0 0 0 0 0 0] 0.2;
    }
);

However, for the porosity related properties used by the poro-elastic solid model, many parameters are currently only implemented as uniform scalars, for example the properties given in solidProperties:
Code:
    hydraulicConductivity  hydraulicConductivity [0 1 -1 0 0 0 0] 1e-3;
    porosity               porosity [0 0 0 0 0 0 0] 0.2;
    waterSpecificWeight    waterSpecificWeight [1 -2 -2 0 0 0 0] 9.807e+03;
    degreeOfSaturation     degreeOfSaturation [0 0 0 0 0 0 0] 0.9;
    waterBulkModulus       waterBulkModulus [1 -1 -2 0 0 0 0] 2.15e+09;
It should not be too difficult to add these as fields that are directly read by an appropriate mechanical law, e.g. poroAnisotropicBiot. You can create an feature request here: https://bitbucket.org/philip_cardiff...ew&status=open and/or you are welcome to add this feature yourself!
bigphil is offline   Reply With Quote

Old   March 25, 2022, 01:23
Default Issues installing solids4foam with FE41 and gcc@9.3.0
  #37
New Member
 
Juan Salazar
Join Date: Jun 2019
Posts: 19
Rep Power: 5
saladbowl is on a distinguished road
I was able to compile FE41 with gcc@9.3.0. However, I am not able to compile the development branch of solids4foam. Attached is my log.Allwmake file. The summary of errors is as follows:

Code:
error: call of overloaded ‘pow(int, int)’ is ambiguous
in GentElastic.C:138, GentElastic.C:149, GentElastic.C:186, GentElastic.C:197

Code:
error: no matching function for call to ‘distance(int&, int&)’
in foam-extend-4.1/src/foam/lnInclude/List.C:182:39 (included)

Code:
error: no type named ‘difference_type’ in ‘struct std::iterator_traits<int>’
in gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator_base_funcs.h:138:5 (included).

Link to log file since it exceeds the permitted size limit.

https://www.dropbox.com/s/l1rex248wysc0g3/log.Allwmake.gz?dl=0

Any help is greatly appreciated!

MPI=openmpi-4.0.4
gcc=9.3.0
OS=CentOS Stream 8
make=GNU Make 4.2.1
Eigen=3.3.7 (installed with gcc@9.3.0)

Last edited by saladbowl; March 25, 2022 at 01:25. Reason: Forgot to include Eigen version
saladbowl is offline   Reply With Quote

Old   March 28, 2022, 07:12
Default
  #38
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,026
Rep Power: 32
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by saladbowl View Post
I was able to compile FE41 with gcc@9.3.0. However, I am not able to compile the development branch of solids4foam. Attached is my log.Allwmake file. The summary of errors is as follows:

Code:
error: call of overloaded ‘pow(int, int)’ is ambiguous
in GentElastic.C:138, GentElastic.C:149, GentElastic.C:186, GentElastic.C:197

Code:
error: no matching function for call to ‘distance(int&, int&)’
in foam-extend-4.1/src/foam/lnInclude/List.C:182:39 (included)

Code:
error: no type named ‘difference_type’ in ‘struct std::iterator_traits<int>’
in gcc/9.3.0/include/c++/9.3.0/bits/stl_iterator_base_funcs.h:138:5 (included).

Link to log file since it exceeds the permitted size limit.

https://www.dropbox.com/s/l1rex248wysc0g3/log.Allwmake.gz?dl=0

Any help is greatly appreciated!

MPI=openmpi-4.0.4
gcc=9.3.0
OS=CentOS Stream 8
make=GNU Make 4.2.1
Eigen=3.3.7 (installed with gcc@9.3.0)
See https://bitbucket.org/philip_cardiff...extend-41-with
saladbowl likes this.
bigphil 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 10 June 16, 2021 19:31
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


All times are GMT -4. The time now is 22:58.