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] compiling error

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2024, 13:03
Default compiling error
  #1
New Member
 
Join Date: Mar 2024
Posts: 18
Rep Power: 2
panda007 is on a distinguished road
Hello,

I'm trying to compile solids4foam in linux cluster and local windows sub linux system (WSL), but I got some errors, I wonder if anyone has any ideas what it could be. Thanks in advance!!

I was able to follow the installation guide and install all the dependencies in WSL for local desktop, and compiled solids4foam with no errors. But when I ran Alltest, there were cases failed. See attached WSL_1, WSL_2 screenshots.

If I try to compile it in cluster, the compiler throw me errors, and Alltest failed many cases too. See attached cluster_1, cluster_2. I have loaded all the dependency modules, but I'm not sure what happened.

The OpenFOAM I'm using is OpenFOAM-v2312, which is the latest that is supported by solids4Foam. The main problem I have right now is to compile solids4Foam to the cluster so I can run simulation from there.
Attached Images
File Type: png WSL_1.png (131.3 KB, 2 views)
File Type: jpg WSL_2.jpg (118.8 KB, 2 views)
File Type: jpg cluster_1.jpg (78.1 KB, 3 views)
File Type: png cluster_2.png (117.9 KB, 0 views)
panda007 is offline   Reply With Quote

Old   December 4, 2024, 08:20
Default
  #2
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
The compilation error comes from linking with the finite volume library; it looks like you are compiling solids4foam with a different compiler or compiler version than was used to compile OpenFOAM.

Maybe you need to load a specific version of GCC?
bigphil is offline   Reply With Quote

Old   December 8, 2024, 03:35
Default
  #3
New Member
 
Join Date: Mar 2024
Posts: 18
Rep Power: 2
panda007 is on a distinguished road
Quote:
Originally Posted by bigphil View Post
The compilation error comes from linking with the finite volume library; it looks like you are compiling solids4foam with a different compiler or compiler version than was used to compile OpenFOAM.

Maybe you need to load a specific version of GCC?
Hi Philip,

Thanks for your response! Which GCC version should I use?

I was able to compile in the cluster with no error, but I'm not sure if it's correctly compiled.

I tried to run the allTest inside tutorial, everything looks good, and I didn't see any errors.

But when I tried to run the HronTurekFsi3 case, it always goes unstable and stops at around 2.02s, which is shortly after when the fluid-structure coupling turned on. I tried to reduce the time step, or add relaxation factor into fvSolutions, or change to another diffusivity method, nothing really helped much. But this problem doesn't show up when I ran the same case with local desktop. I don't know why it happens that way. I wonder if you have any suggestions for this issue. I attached the compiling log and test report, as well as the case log.

Another issue is, when I tried to refine the HronTurekFsi3 mesh for a more refined grid level. I tested with local desktop. But it went unstable after about 5s, or 8s. I tried many ways to stabilize it, (including reduce time step to 2e-4, increase nOutCorrector under fvSolution, switch to uniform diffusivity, increase iteration # in mechnicalproperties, and more) same issue, nothing seems helpful. Coarser grid worked well, but refining the grid turned to make it unstable.

I'm desperate needing some insight on these instability issues, thanks for any help!!
panda007 is offline   Reply With Quote

Old   December 9, 2024, 13:26
Default
  #4
New Member
 
Join Date: Mar 2024
Posts: 18
Rep Power: 2
panda007 is on a distinguished road
Quote:
Originally Posted by bigphil View Post
The compilation error comes from linking with the finite volume library; it looks like you are compiling solids4foam with a different compiler or compiler version than was used to compile OpenFOAM.

Maybe you need to load a specific version of GCC?


I found that from both the local desktop linux and cluster compile log file, there are a bunch of 'could not open (some files) for source file' showing up. Does this impact the solver? How should I fix it?
Attached Images
File Type: jpg Screenshot 2024-12-09 121713.jpg (123.8 KB, 2 views)
panda007 is offline   Reply With Quote

Old   December 17, 2024, 05:55
Default
  #5
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
This should not be a problem, assuming the code compilation completed.
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
Building OpenFOAM1.7.0 from source ata OpenFOAM Installation 46 March 6, 2022 14:21
long error when using make-install SU2_AD. tomp1993 SU2 Installation 3 March 17, 2018 07:25
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh gschaider OpenFOAM Community Contributions 300 October 29, 2014 19:00
How to get the max value of the whole field waynezw0618 OpenFOAM Running, Solving & CFD 4 June 17, 2008 06:07
Compiling problems with hello worldC fw407 OpenFOAM Installation 21 January 6, 2008 18:38


All times are GMT -4. The time now is 14:18.