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

[FSI] solids4Foam vs icoFsiElasticNonLinULSolidFoam on HPC server

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes
  • 3 Post By wyldckat
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 31, 2019, 15:51
Default [FSI] solids4Foam vs icoFsiElasticNonLinULSolidFoam on HPC server
  #1
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Dear all,

Although I have access to solids4Foam, but, when I use an hpc server, I can not install it there, because I hava no sudo permission. Therefore I have to use icoFsiElasticNonLinULSolidFoam, because foam-extend-3.1 is installed on the server (And yes, again I can not install fsi toolkit, because I'm not sudoer). So, there are two questions:

1- Is there a solution for a non-sudo user on a hpc server to use solids4Foam?
2- To validate the solver for an elastic cylinder fsi problem, I want to start from the problem of flow around rigid cylinder, using the same solver as in fsi problem. In solids4Foam, it is easy to turn-off fsi and turn-on only flow simulatoin. Assuming we use icoFsiElasticNonLinULSolidFoam, is turning off fsi in couplingProperties dictionary gives the same result? [As I investigated the code, this solver indeed solves the solid region an it is not possible to turn it off... ] ?
amuzeshi is offline   Reply With Quote

Old   August 3, 2019, 21:51
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick answer: You can build a more recent version of foam-extend and solids4Foam as a normal user.
Either way, you don't need sudo/root/admin permissions to install solids4Foam, it's mostly designed to be built as a normal user.

However, the HPC system administrators might not like that people compile a complete installation of foam-extend in the user's own account... but if they don't like it, then ask them nicely to install the foam-extend version that you need.
On the login node, you should have access to all compilation tools needed to build foam-extend, if they have foam-extend 3.1 installed there.
__________________
wyldckat is offline   Reply With Quote

Old   August 10, 2019, 16:32
Default
  #3
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: You can build a more recent version of foam-extend and solids4Foam as a normal user.
Either way, you don't need sudo/root/admin permissions to install solids4Foam, it's mostly designed to be built as a normal user.

However, the HPC system administrators might not like that people compile a complete installation of foam-extend in the user's own account... but if they don't like it, then ask them nicely to install the foam-extend version that you need.
On the login node, you should have access to all compilation tools needed to build foam-extend, if they have foam-extend 3.1 installed there.
Thank you. After I tried to compile foam-extend-4.0 on an HPC server using this help, I received a lot of errors of the kind I mentioned in the following. As I checked, environment variables like FOAM_RUN etc are known, but blockMesh, icoFoam, etc are not known to the terminal.
Code:
-ldynamicMesh     -lmeshTools     -llagrangian -lfoam -ldl   -lrt -lm -o /home/user/foam/foam-extend-4.0/applications/bin/linux64GccDPOpt/autoRefineMesh
/usr/bin/ld: cannot find -lfoam
collect2: ld returned 1 exit status
make[3]: *** [/home/user/foam/foam-extend-4.0/applications/bin/linux64GccDPOpt/autoRefineMesh] Error 1
make[2]: *** [autoRefineMesh] Error 2
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-200 -I/home/user/foam/foam-extend-4.0/src/meshTools/lnInclude -IlnInclude -I. -I/home/user/foam/foam-extend-4.0/src/foam/lnInclude -I/home/user/foam/foam-extend-4.0/src/OSspecific/POSIX/lnInclude   -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/surfaceInvertNormal.o -L/home/user/foam/foam-extend-4.0/lib/linux64GccDPOpt \
amuzeshi is offline   Reply With Quote

Old   August 17, 2019, 10:02
Default
  #4
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: You can build a more recent version of foam-extend and solids4Foam as a normal user.
Either way, you don't need sudo/root/admin permissions to install solids4Foam, it's mostly designed to be built as a normal user.

However, the HPC system administrators might not like that people compile a complete installation of foam-extend in the user's own account... but if they don't like it, then ask them nicely to install the foam-extend version that you need.
On the login node, you should have access to all compilation tools needed to build foam-extend, if they have foam-extend 3.1 installed there.
Doing these preparations that are documented in OpenfoamWiki, requires me to be a sudoer. However I mounted my own account on the hpc server to a directory in my laptop using "sshfs". Then I tried to go thru preparation steps and compilation using my local compiler. Untill now, It has returned no error, but it is very very slow !
amuzeshi is offline   Reply With Quote

Old   August 25, 2019, 07:39
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by amuzeshi View Post
However I mounted my own account on the hpc server to a directory in my laptop using "sshfs". Then I tried to go thru preparation steps and compilation using my local compiler. Untill now, It has returned no error, but it is very very slow !
Quick answer: You were almost there... you don't need to use sshfs, you can clone your laptop installation of foam-extend to your account on the HPC server.

  1. Deactivate the "sshfs" connection.
  2. You can follow the instructions given here: https://openfoamwiki.net/index.php/I..._3.0_and_newer - to remove the intermediate files that were used to build foam-extend in your machine.
  3. Then you can use the following commands in your laptop to package the installation:
    Code:
    foam
    cd ..
    tar -czf foam-extend-4.0_full.tar.gz foam-extend-4.0
  4. Then transfer the file "foam-extend-4.0_full.tar.gz" into your home folder at the HPC server.
  5. Then you can unpack it with this command:
    Code:
    tar -xzf foam-extend-4.0_full.tar.gz
    Make sure you run it in a way that it will unpack into the correct location, for example, place this file at "~/foam/" and then the command from within that folder.
amuzeshi likes this.
__________________
wyldckat is offline   Reply With Quote

Old   August 28, 2019, 01:25
Default
  #6
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer: You were almost there... you don't need to use sshfs, you can clone your laptop installation of foam-extend to your account on the HPC server....
Great!
I went thru the steps that you've mentioned;
1- While Executing 'fe40' as alias, makes environment variables like 'run' or '$FOAM_TUTORIALS' known, but it returns:
Code:
mpicc: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/maneshian.sharif/foam/foam-extend-4.0/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPOpt/lib/libopen-pal.so.6)
2- Executing 'icoFoam' returns:
Code:
icoFoam: /usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by /home/ali/foam/foam-extend-4.0/lib/linux64GccDPOpt/liblagrangian.so)
icoFoam: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /home/ali/foam/foam-extend-4.0/ThirdParty/packages/openmpi-1.8.8/platforms/linux64GccDPOpt/lib/libopen-rte.so.7)
amuzeshi is offline   Reply With Quote

Old   August 28, 2019, 18:29
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quick question: Wait, then how did you make it work via sshfs? Did you add any additional paths via sshfs?
wyldckat is offline   Reply With Quote

Old   August 31, 2019, 05:26
Unhappy
  #8
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 130
Rep Power: 10
amuzeshi is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick question: Wait, then how did you make it work via sshfs? Did you add any additional paths via sshfs?
Note: For clarification, I use '~' as my laptop home directory and '$HOME' as my HPC account home directory.

1- My own method:
  • a-
    Code:
    sshfs ali@<address> ~/ali/server/
  • b- In ~/ali/home/.bashrc file, I add:
    Code:
    source ~/ali/server/foam/foam-extend-4.0/etc/bashrc
  • c- It takes too ( ) long for the compilation to complete.
2- Following your method step-by-step, ends up with the errors I've mentioned in the previous post. Additionally, icoFoam, for example, is known to my terminal (typing 'icoF', then pressing 'TAB' completes the word as 'icoFoam'). But solids4Foam is not known !
  • It should be mentioned that I added the following to $/HOME/ali/.bashrc file:
    Code:
    source $HOME/foam/foam-extend-4.0/etc/bashrc
amuzeshi 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
HPC: Linux vs Windows server 2016 for STAR-CCM+ trampoCFD STAR-CCM+ 0 April 12, 2017 20:37
HPC: Linux vs Windows server 2016 for STAR-CCM+ trampoCFD Hardware 0 April 12, 2017 20:12
running fluent in HPC server Ad.Al.Qads FLUENT 1 November 4, 2016 10:11
SU^2 v2.0 compilation with MSMPI on Windows HPC Server 2008R2 AEMD SU2 Installation 2 March 25, 2013 08:59
CFD Online Back on Main Server pete Site News & Announcements 0 March 31, 2011 18:14


All times are GMT -4. The time now is 12:33.