Problems installing swak4Foam in foam-extend-4.0 on Ubuntu 16.04
Hi
I installed foam-extend-4.0 for ubuntu-16.04, but swak4foam failed to install. What should I do to solve it? I also refresh install it acordding to openfoamwki,but i failed again. thank you jack |
Quick answer: Please do the following steps:
|
Thank you very much ,wyldckat
|
1 Attachment(s)
Quote:
I'm attaching log.swak4foam file. Help would be greatly appreciated. |
Quick questions:
|
Quote:
g++ (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0 gcc (Ubuntu 7.4.0-1ubuntu1~18.04) 7.4.0 I followed these instructions and I ended up with foam-extend in Home folder. When I ran "source etc/bashrc" I had errors because Terminal was searching for bashrc in /opt instead of Home. I tried changing many things but I wasn't able to direct it to correct folder. So I moved foam-extend-4.0 folder to /opt. After that, installation of foam-extend went well. I tried running one simulation from tutorials and it finished successfully. If the problem is that I manually moved foam-extend folder to /opt and then install it there, do I need to unistall foam-extend first? How do I do that? |
I solved my problem. I'm not exactly sure what fixed the problem but one thing I changed is that I added alias for OpenFOAM 6 as well.
In .bashrc file I had alias fe40 only for foam-extend but for OpenFOAM 6 I had without alias. So it seems that Terminal was trying to source OF6's /etc/bashrc all the time. So my .bashrc now contains: Code:
alias of6='source /opt/openfoam6/etc/bashrc' Code:
alias fe40='source $HOME/foam/foam-extend-4.0/etc/bashrc' Then I ran next 5 commands one after another: Code:
fe40 Code:
libs |
2 Attachment(s)
I am trying to simulate mi case using fe40 and swak4Foam and I get this error:
--> FOAM FATAL ERROR: gradientInternalCoeffs cannot be called for a genericFvPatchField (actual type groovyBC) on patch inlet of field U in file "/home/mapache/Documentos/aneurisma/coarse/0/U" You are probably trying to solve for a field with a generic boundary condition. those are my U and controlDict files Somebody can help me please. |
Quote:
The libs-entry should be on the root-level of controlDict (not inside of functions) |
Hello ,
(I'm running in fe40) I did what you said and i get this: Create time --> FOAM Warning : From function dlLibraryTable::open(const fileName& functionLibName) in file db/dlLibraryTable/dlLibraryTable.C at line 124 could not load libgroovyBC.so: cannot open shared object file: No such file or directory Create mesh for time = 0 And when I check mi log.make I got this: Code:
Current OpenFOAM version is 4.0. |
Quote:
This is a problem with an older compiler. Those have problems with the >> at the end of a nested template (because this might be mistaken with the input-stream-operator). Do as the compiler message suggests: go to line 144 in groovyBCFvPatchField.H and insert a space between the > Hope that fixes it |
Thank you very much.
Modifying the groovyBCFvPatchField.H line 144 and groovyBCFvPatchField.C line 223 ">>" into "> >" solves the problem. |
Quote:
I will make the change in the development version |
All times are GMT -4. The time now is 03:18. |