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 Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 22, 2021, 10:05
Default
  #21
New Member
 
Filippo Azzini
Join Date: Apr 2020
Posts: 10
Rep Power: 6
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, 11:55
Default
  #22
Senior Member
 
alberto
Join Date: Apr 2016
Location: Mexico
Posts: 119
Rep Power: 10
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 13:56.
dewey is offline   Reply With Quote

Old   September 22, 2021, 13:54
Default
  #23
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34
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, 10:06
Default
  #24
New Member
 
Filippo Azzini
Join Date: Apr 2020
Posts: 10
Rep Power: 6
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, 10:00
Default solids4Foam: command not found
  #25
New Member
 
anaspauzi's Avatar
 
Anas Muhamad Pauzi
Join Date: Nov 2019
Posts: 16
Rep Power: 6
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, 12:03
Default
  #26
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34
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, 18:50
Default
  #27
New Member
 
anaspauzi's Avatar
 
Anas Muhamad Pauzi
Join Date: Nov 2019
Posts: 16
Rep Power: 6
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, 09:25
Default
  #28
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4
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, 10:37
Default
  #29
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4
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, 11:43
Default
  #30
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34
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, 11:45
Default
  #31
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34
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, 05:17
Default
  #32
Member
 
Merlin Williams
Join Date: Nov 2021
Posts: 71
Rep Power: 4
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, 06:48
Default Is it possible to set different properties in two domains?
  #33
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
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, 07:19
Default
  #34
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34
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, 11:40
Default
  #35
Senior Member
 
kimy
Join Date: Mar 2019
Location: https://t.me/pump_upp
Posts: 164
Rep Power: 7
qi.yang@polimi.it is on a distinguished road
Send a message via ICQ to qi.yang@polimi.it Send a message via AIM to qi.yang@polimi.it Send a message via Yahoo to qi.yang@polimi.it
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, 5 views)
qi.yang@polimi.it is offline   Reply With Quote

Old   December 15, 2021, 11:48
Default
  #36
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34
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, 00: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: 7
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 00:25. Reason: Forgot to include Eigen version
saladbowl is offline   Reply With Quote

Old   March 28, 2022, 06:12
Default
  #38
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34
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

Old   February 22, 2023, 10:06
Default compile solids4foam with foam-extend 4.1
  #39
y99
New Member
 
ysh
Join Date: Nov 2022
Posts: 5
Rep Power: 3
y99 is on a distinguished road
Dear all,

I am trying to compile solids4foam with foam-extend 4.1 but I have problems.I don't know what to do to solve these problems. Hope to get some help here. Log file of my try of compilation process after errors occurred is attached.

Any help would be appreciated.
Attached Files
File Type: txt log.txt (5.8 KB, 5 views)
y99 is offline   Reply With Quote

Old   April 25, 2023, 16:59
Default
  #40
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,091
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by y99 View Post
Dear all,

I am trying to compile solids4foam with foam-extend 4.1 but I have problems.I don't know what to do to solve these problems. Hope to get some help here. Log file of my try of compilation process after errors occurred is attached.

Any help would be appreciated.
Hi,

There seems to be a compatibility issue between the MPI used by your PETSc installation and the MPI used by your OpenFOAM installation.

One solution is to install solids4foam without PETSc support. To do this, unset the PETSC_DIR variable, i.e.
Code:
> unset PETSC_DIR
> ./Allwclean
> ./Allwmake
Or, if you do want to use solids4foam with PETSc then I suggest installing OpenFOAM using the system MPI (set in foam-extend-4.1/etc/bashrc), and similarly ensure PETSc was installed using the system MPI.

Philip

Last edited by bigphil; April 28, 2023 at 05:30. Reason: Change "with" to "without"
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
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 20:12.