CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] how does install swak4foam with OpenFOAM 3.0? (https://www.cfd-online.com/Forums/openfoam-community-contributions/163749-how-does-install-swak4foam-openfoam-3-0-a.html)

lllshahablll December 11, 2015 04:52

Hi Bruno

I used Official OpenFoam website's instruction to install OF3.0. but downloaded the deb pack separately and then tried to install it. during installation I used a proxy server since sorceforge wasn't accessible from my location.

2. No modification has been applied.
3.the command gives:

Code:

ldd $(which blockMesh)
        linux-gate.so.1 =>  (0xb7782000)
        libblockMesh.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libblockMesh.so (0xb773b000)
        libmeshTools.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libmeshTools.so (0xb73c0000)
        libdynamicMesh.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libdynamicMesh.so (0xb7060000)
        libOpenFOAM.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libOpenFOAM.so (0xb6927000)
        libdl.so.2 => /lib/i386-linux-gnu/libdl.so.2 (0xb690a000)
        libstdc++.so.6 => /usr/lib/i386-linux-gnu/libstdc++.so.6 (0xb6792000)
        libm.so.6 => /lib/i386-linux-gnu/libm.so.6 (0xb6745000)
        libgcc_s.so.1 => /lib/i386-linux-gnu/libgcc_s.so.1 (0xb6727000)
        libc.so.6 => /lib/i386-linux-gnu/libc.so.6 (0xb656c000)
        libtriSurface.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libtriSurface.so (0xb64df000)
        libsurfMesh.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libsurfMesh.so (0xb63e9000)
        libfileFormats.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libfileFormats.so (0xb6364000)
        libfiniteVolume.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libfiniteVolume.so (0xb5014000)
        libextrudeModel.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/libextrudeModel.so (0xb4ffa000)
        libPstream.so => /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/openmpi-system/libPstream.so (0xb4fec000)
        libz.so.1 => /lib/i386-linux-gnu/libz.so.1 (0xb4fd0000)
        /lib/ld-linux.so.2 (0x80086000)
        libmpi.so.1 => /usr/lib/libmpi.so.1 (0xb4e36000)
        libhwloc.so.5 => /usr/lib/i386-linux-gnu/libhwloc.so.5 (0xb4df3000)
        libpthread.so.0 => /lib/i386-linux-gnu/libpthread.so.0 (0xb4dd6000)
        libutil.so.1 => /lib/i386-linux-gnu/libutil.so.1 (0xb4dd1000)
        libltdl.so.7 => /usr/lib/i386-linux-gnu/libltdl.so.7 (0xb4dc5000)
        libnuma.so.1 => /usr/lib/i386-linux-gnu/libnuma.so.1 (0xb4db8000)


4. And this one gives:

Code:

ls -l $FOAM_LIBBIN/$FOAM_MPI
total 128
-rw-r--r-- 1 root root 60933 نوامب  1 22:33 libPstream.so
-rw-r--r-- 1 root root 69513 نوامب  1 22:47 libptscotchDecomp.so

*نوامب=November

5.the last command results:
Code:

md5sum $FOAM_LIBBIN/$FOAM_MPI/*
147a90c44c02f769bf5a37126d91496b  /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/openmpi-system/libPstream.so
131a1a948b477403c25540b56f821141  /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/openmpi-system/libptscotchDecomp.so

really thanks for your continuous reply

lllshahablll December 11, 2015 07:18

Hi,

one other question Mr.Bruno

as you said you tested the swak4Foam on Ubuntu 15.10 and OF3.0, and maybe some files are missing during OF installation on my computer.

So, is there any way to remove all footprints of installing OpenFoam and then install it again?

or its better install the Ubuntu again and then go for OpenFoam installtion?

Or both these ways are not helpful? and the problem can be resolved without any reinstallation.


I have another computer which is running Ubuntu 14.04 and OpenFoam 2.4.0
I installed swak4Foam on it and its working But it cannot perform the blockMesh.


Thanks and regards
Shahabeddin

wyldckat December 12, 2015 15:22

Hi Shahabeddin,

Quote:

Originally Posted by lllshahablll (Post 577237)
as you said you tested the swak4Foam on Ubuntu 15.10 and OF3.0, and maybe some files are missing during OF installation on my computer.

So, is there any way to remove all footprints of installing OpenFoam and then install it again?

There is something definitely wrong with your installation, because those 2 files I asked the m5sum for are incorrect. The correct values should be these:
Code:

5bb6c6a192b8d806d02c2c92504d9aa5  /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/openmpi-system/libPstream.so
6c5c581b8afe3032ec4567a500d24343  /opt/openfoam30/platforms/linuxGccDPInt32Opt/lib/openmpi-system/libptscotchDecomp.so

Run md5sum with the ".deb" file you downloaded:
Code:

md5sum *.deb
It should give you this hash number for the "openfoam30" package:
Code:

9a42d626a64a233d2d338700d19aed78
As for uninstalling the current version, it depends on how you installed it. Either way, detailed instructions are given here: http://openfoamwiki.net/index.php/FA...ve_OpenFOAM.3F

Best regards,
Bruno

lllshahablll December 19, 2015 23:57

Dear Bruno

As per your instruction I reinstalled the OpenFOAM and the swak4Foam is installed without problem at first look.

Code:

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
swakVersion: 0.4.0 (Release date: Next release)
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


Thank you for helping me step by step.


Regards
Shahabeddin

milad653279 December 29, 2015 07:49

Dear wyldckat

I install swak4foam:
swak4Foam development version for OpenFOAM 2.x/3.x/dev and foam-extend 3.x

I think my problem is solved. thank you for your help.


All times are GMT -4. The time now is 20:24.