|
[Sponsors] |
[foam-extend.org] Problems on installing Foam-extend 4.0/ swak4Foam on ubuntu18.0.4 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 29, 2019, 16:43 |
Problems on installing Foam-extend 4.0/ swak4Foam on ubuntu18.0.4
|
#1 |
New Member
Xiangjie Wang
Join Date: Jul 2019
Posts: 26
Rep Power: 7 |
Hi all,
I have problems on installing foam-extend 4.0. I went through the forum and followed many solutions, but it can still not work now. I guess the installation got stuck at stage5. I also tried to install swak4Foam on my computer, which someone thought was a solution to this problem. But I also failed on installing swak4Foam The current system I am using is Ubuntu 18.04.3 LTS. I followed the installation guide: https://openfoamwiki.net/index.php/I...end-4.0/Ubuntu g++ version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 gcc version: (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0 my soure file looks like: alias of7=' source /opt/openfoam7/etc/bashrc' alias of301='source $HOME/OpenFOAM/OpenFOAM-3.0.1/etc/bashrc ' alias fe40='source $HOME/foam/foam-extend-4.0/etc/bashrc' I only attached the log file of stage5 because of the limitation of file size. If necessary I will upload the remaining parts. I have spent a lot of time on installing this foam-extend. I will really appreciate it if you can help me solve this problem! Sincerely, Xiangjie |
|
September 29, 2019, 19:31 |
|
#2 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
The remark that these are rather old versions of swak4Foam and foam-extend won't make you happy A quick fix would be to edit Libraries/swak4FoamParsers/namedEnums/NumericAccumulationNamedEnum.C in the swak4Foam sources and replace Code:
HUGE Code:
pTraits<scalar>::min
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
September 29, 2019, 21:36 |
|
#3 | |
New Member
Xiangjie Wang
Join Date: Jul 2019
Posts: 26
Rep Power: 7 |
Quote:
I change the NumericAccumulationNamedEnum.C file, but there are still some mistakes. Belowing is what I have done: cd:Libraries/swak4FoamParsers/namedEnums replace HUGE with 'pTraits<scalar>::min' go into the thirdparty folder and execute 'AllMake.Stage5' IN the log file there are still some errors about 'HUGE', I am wondering whether changing that one .C file is not enough, I should also change the header file. CommonValueExpressionDriver.C:2060:16: error: ‘HUGE’ was not declared in this scope. There are other errors: 'No file 'swakConfiguration'. Python etc won't work. See README for details' Requirements for Library not satisfied. I see no sense in going on I attached my log file. Last edited by XJ_Wang; September 30, 2019 at 18:45. |
||
October 1, 2019, 05:48 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
I only see one error and that can be fixed by replacing HUGE as well
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
October 1, 2019, 13:07 |
|
#5 | |
New Member
Xiangjie Wang
Join Date: Jul 2019
Posts: 26
Rep Power: 7 |
Quote:
I changed the 'HUGE' in that file, and execute 'AllMake.stage5' in the directory of ThirdParty, but more errors of 'HUGE' came up, as you can see in the attached file 'logfile'. THen I replaced the 'HUGE' again according to the 'logfile', then some other errors about 'HUGE' came up, as you can see in the file 'logfile2'. THen i did it again. this time it seemed good and no errors, as you can see in 'logfile3'. I don't know how to set the environment variable according to the last sentence of the logfile3. Code:
If you want to use swakCoded-function object or compile software based on swak set the environment variable SWAK4FOAM_SRC to /home/xiangjie/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/swak4Foam-0.4.0/Libraries (most people will be fine without setting that variable) THen i install the FSI according to the instructions in https://openfoamwiki.net/index.php/E...oam-extend-4.0 But there were many mistakes, as you can see in logfile4. Maybe I haven't install the foam-extend 4.0 correctly in my computer. Thanks for your help! I really appreciate it! Last edited by XJ_Wang; October 1, 2019 at 22:21. |
||
October 1, 2019, 15:12 |
|
#6 |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
When I execute AllMake.stage5 (small s) it traps the directory and a consecutive build after correction of the HUGE problem is not possible:
======================================== Starting ThirdParty AllMake: Stage5 ======================================== The source code for swak4Foam is already present under ./rpmBuild/BUILD/swak4Foam-0.4.0 Please remove this directory if you want to refresh your installation of swak4Foam |
|
October 1, 2019, 16:53 |
|
#7 | |
New Member
Xiangjie Wang
Join Date: Jul 2019
Posts: 26
Rep Power: 7 |
Quote:
I think i executed allwmake in the swak4Foam folder, Code:
~/foam/foam-extend-4.0/ThirdParty/rpmBuild/BUILD/swak4Foam-0.4.0 I am sorry I just didn't say it clearly. I think I have execute allwmake.stage5 once and the others are allwmake in this directory. Maybe I executed allwclean.stage5 first and then allwmake.stage5. Last edited by XJ_Wang; October 1, 2019 at 22:32. |
||
October 2, 2019, 14:34 |
foam-extend for OpenFPAM V6
|
#8 |
New Member
Angel Malaguera
Join Date: May 2016
Location: Florianópolis, SC, Brazil
Posts: 20
Rep Power: 10 |
Hello community
I need to simulate problems FSI (Fluid Structure Interaction). I have OpenFoam 6.0 installed on my computer. With Ubuntu 18.04. I understand that an extended version must be installed. I have 2 questions: (1) where I get this extended version. and (2) in the case of OpenFOAM V7 it also has this extended version. I appreciate any help Can I install foam-extend 4.0 in OpenFOAM 6? |
|
October 2, 2019, 15:30 |
|
#9 | |
New Member
Xiangjie Wang
Join Date: Jul 2019
Posts: 26
Rep Power: 7 |
Quote:
As a beginner of OpenFOAM, I think FSI is based on foam-extend, not OpenFoam. Belowing is the instruction I followed. https://openfoamwiki.net/index.php/I...end-4.0/Ubuntu Best wishes, Xiangjie |
||
October 2, 2019, 18:41 |
|
#10 | |
New Member
Angel Malaguera
Join Date: May 2016
Location: Florianópolis, SC, Brazil
Posts: 20
Rep Power: 10 |
Quote:
When run the ampFsiFoam tutorials, for example run/ampFsiFoam/3dTube/fluid$ I get the error: "--> FOAM FATAL IO ERROR: Essential entry 'value' missing file: /home/angel/OpenFOAM/angel-6/FluidSolidInteraction/run/ampFsiFoam/3dTube/fluid/0/p.boundaryField.inlet from line 38 to line 40. From function Foam::fvPatchField<Type>::fvPatchField(const Foam::fvPatch&, const Foam:imensionedField<Type, Foam::volMesh>&, const Foam::dictionary&, bool) [with Type = double] in file /home/ubuntu/OpenFOAM/OpenFOAM-6/src/finiteVolume/lnInclude/fvPatchField.C at line 131. FOAM exiting Segmentation fault (core dumped)" I checked the log (log.blockMesh, log.setSet and log.setstoZones) files and they were executed completely. When I see paraView, that error appears What could be the issue? Thank you! Angel |
||
October 3, 2019, 11:49 |
|
#11 | |
New Member
Xiangjie Wang
Join Date: Jul 2019
Posts: 26
Rep Power: 7 |
Quote:
I haven't installed foam-extend correctly on my computer, so I cannot try the fsi tutorials. Maybe your question need to be answered by others. I am sorry that I cannot offer any help. Xiangjie |
||
October 3, 2019, 12:15 |
ampFsiFoam tutorial under extend-4.0
|
#12 |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
||
October 3, 2019, 12:21 |
|
#13 | |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
Quote:
|
||
October 3, 2019, 16:05 |
|
#14 | |
New Member
Angel Malaguera
Join Date: May 2016
Location: Florianópolis, SC, Brazil
Posts: 20
Rep Power: 10 |
Quote:
When I installed foam-extend, 3 folders were installed: FluidSolidlnteraction, run and Fsi_40.tar.gz, the latter compressed. Within the FluidSolidlnteraction folder there are 2 folders: run and src. Within the run folder 5 solvers were installed: ampFsiFoam, fsiFoam, solidFoam, thermalStressFoam and weakFsiFoam. Inside the ampFsiFoam solver there are 2 cases: 3dTube and axisymmetricTube. I executed the 2 cases, but I'm sure I'm not doing well. I did the same with the other solvers. The thermalStressFoam solver has only one case: flange. With this case, I opened ParaView. That's why I think that in the other cases I am doing something wrong. Within the 3dTube case there are 2 folders: fluid and solid, in addition there are also 3 files: makeLinks, makaSerialLinks and removeSerialLinks. I am new to OpenFoam. Could someone guide me: Thank you Angel |
||
October 4, 2019, 08:26 |
|
#15 | |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
Quote:
|
||
October 5, 2019, 18:01 |
|
#16 |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
Just to mention that openSUSE Leap 15.0 (I had to use an old monitor becuase it does not support 4K for installation) - if one installs bison 2.7 from http://download.opensuse.org/distrib...rpm.mirrorlist - provides a flawless installation w/o the HUGE problem. OpenFOAM seems to have it w/ SUSE somehow
|
|
October 6, 2019, 13:45 |
|
#17 | |
New Member
Join Date: Jul 2012
Posts: 6
Rep Power: 14 |
Quote:
|
||
September 14, 2021, 14:01 |
issue installing swak4Foam for openFoam2012 on opensuse.
|
#18 |
New Member
MUGET
Join Date: May 2017
Location: toulouse
Posts: 6
Rep Power: 9 |
Hello
i am adding to this thread as it is the closest i found to my own problem, but i couldn't undesrtand how to apply the HUGE solution to my own files, in practice. I have the admins rights on my computer. Openfoam is installed on /usr/*, and i'm trying to figure out where i should ocpy and Allwmake the swak4Foam directory to resolve the issue it returns: Swak version is 202x.yy.0 hg info: 06fdbe848844 (develop) tip which: no bear in (/usr/lib/openfoam/openfoam2012/swak4Foam/privateRequirements/bin:/root/OpenFOAM/root-2012/platforms/linux64GccDPInt32Opt/bin:/usr/lib/openfoam/openfoam2012/site/2012/platforms/linux64GccDPInt32Opt/bin:/usr/lib/openfoam/openfoam2012/platforms/linux64GccDPInt32Opt/bin:/usr/lib/openfoam/openfoam2012/bin:/usr/lib/openfoam/openfoam2012/wmake:/usr/lib64/mpi/gcc/openmpi/bin:/sbin:/usr/sbin:/usr/local/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin) No 'bear' installed Bison: /usr/lib/openfoam/openfoam2012/swak4Foam/privateRequirements/bin/bison Flex: /usr/bin/flex Bison at /usr/lib/openfoam/openfoam2012/swak4Foam/privateRequirements/bin/bison is version 3.4 (Major 3 Minor 4) Flex is version 2.6.4 (Minor version: 4) OpenFOAM-version: Major 2012 Minor 0 Patch 0 (-1 == x / 0) Fork: com No swak4FoamParsers/foamVersion4swak.H. Generated And then: wmake libso swak4FoamParsers /usr/lib/openfoam/openfoam2012/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:72: /usr/lib/openfoam/openfoam2012/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory make: *** No rule to make target '/usr/lib/openfoam/openfoam2012/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop. /usr/lib/openfoam/openfoam2012/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/options:72: /usr/lib/openfoam/openfoam2012/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex: No such file or directory make: *** No rule to make target '/usr/lib/openfoam/openfoam2012/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/../myflex'. Stop. wmake error: file '/usr/lib/openfoam/openfoam2012/build/linux64GccDPInt32Opt/swak4Foam/Libraries/swak4FoamParsers/sourceFiles' could not be created in /usr/lib/openfoam/openfoam2012/swak4Foam/Libraries/swak4FoamParsers Parser library did not compile OK. No sense continuing as everything else depends on it myflex is in the swak4FOam libraries path, but i see it is looking for it in the openfoam/bluid directory path isntead. I've tried to put the swak4Foam as a directory above, like side by side with openfoam2012, but then it doesn't work either. What could i try ? Any suggestion, help, very very welcome!!! thank you so much. |
|
September 14, 2021, 14:02 |
idem
|
#19 |
New Member
MUGET
Join Date: May 2017
Location: toulouse
Posts: 6
Rep Power: 9 |
sorry i forgot to specify i'm on opensuse Leap15.1
|
|
September 14, 2021, 16:09 |
|
#20 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
Hm. The line that is failing is Code:
include $(OBJECTS_DIR)/../mybison So the problem is that OBJECTS_DIR (the directory where all the .so-files are supposed to go) is not set properly by wmake I remember seeing this problem but I can't remember how it was fixed How was your OF installed? Self-compiled or a binary? (I guess the second) Did you manage to compile ANY other OF software before (because the wrong OBJECTS_DIR should be a show-stopper)
__________________
Note: I don't use "Friend"-feature on this forum out of principle. Ah. And by the way: I'm not on Facebook either. So don't be offended if I don't accept your invitation/friend request |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
whats the cause of error? | immortality | OpenFOAM Running, Solving & CFD | 13 | March 24, 2021 08:15 |
Non physical force coefficients obtained in simulation using foam extend 4.0 (IBM) | Suya_94 | OpenFOAM Running, Solving & CFD | 0 | March 4, 2019 18:52 |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 05:20 |
[blockMesh] BlockMesh FOAM warning | gaottino | OpenFOAM Meshing & Mesh Conversion | 7 | July 19, 2010 15:11 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |