|
[Sponsors] |
November 28, 2024, 13:03 |
compiling error
|
#1 |
New Member
Join Date: Mar 2024
Posts: 18
Rep Power: 2 |
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. |
|
December 4, 2024, 08:20 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
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? |
|
December 8, 2024, 03:35 |
|
#3 | |
New Member
Join Date: Mar 2024
Posts: 18
Rep Power: 2 |
Quote:
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!! |
||
December 9, 2024, 13:26 |
|
#4 | |
New Member
Join Date: Mar 2024
Posts: 18
Rep Power: 2 |
Quote:
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? |
||
December 17, 2024, 05:55 |
|
#5 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
This should not be a problem, assuming the code compilation completed.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |