CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   OF 1.6-ext Repository offline? (https://www.cfd-online.com/Forums/openfoam-installation/111630-1-6-ext-repository-offline.html)

andreia February 18, 2013 14:04

1 Attachment(s)
Hi, I tried to install OF-1.6-ext following instructions above (download from this source https://github.com/ogoe/OpenFOAM-1.6-ext and compilation instructions for Ubuntu 12.04 64 bits, as recomended above, but I had some errors related to .rpm files from Qt in Stage4. My log file is attached, but the main errors are:

Code:

erro: Arquivo /home/andreia/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/SOURCES/qt-everywhere-opensource-src-4.7.4.tar.gz: file not found
Code:

erro: falha ao abrir /home/andreia/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/RPMS/x86_64/qt-everywhere-opensource-src-4.7.4-linux64Gcc46DPOpt.x86_64.rpm: file not found

wyldckat February 18, 2013 15:06

Greetings Andreia,

The Qt project has changed addresses. Do the following steps:
  1. Edit the file "ThirdParty/rpmBuild/SPECS/qt-everywhere-opensource-src-4.7.4.spec".
  2. Find this line:
    Code:

    URL:                    http://get.qt.nokia.com/qt/source/qt-everywhere-opensource-src
  3. Replace the line with this one:
    Code:

    URL:                    ftp://ftp.qt-project.org/qt/source/qt-everywhere-opensource-src
Best regards,
Bruno

andreia February 19, 2013 11:17

Hi Bruno, thanks for your help. I made the changes in .spec file, but I got the same problem again. I don't know why, it keeps searching at Nokia URL. Log file is exactly the same.

wyldckat February 19, 2013 15:19

Hi Andreia,

That's strange... OK, try downloading the file manually and placing it at "ThirdParty/rpmBuild/SOURCES/qt-everywhere-opensource-src-4.7.4.tar.gz":
Code:

cd $WM_THIRD_PARTY_DIR/rpmBuild/SOURCES
wget "ftp://ftp.qt-project.org/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz"

Best regards,
Bruno

andreia February 20, 2013 14:09

Now it works, thank you Bruno!

novakm March 6, 2013 02:58

1 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 408133)
Hi Ehsan,

You've got a link at post #7 and in the Github page (from post #4) you've got a button that says "ZIP", which gives this download link: https://github.com/ogoe/OpenFOAM-1.6.../sf/master.zip

Best regards,
Bruno

Hi Bruno,

Is it possible to compile debug version of op from the source posted above?
I already compiled the Opt version. And I run in some difficulties and the debug messages will be helpful.

So I have tried to compile the Debug version just by replacing Opt with Debug on the relevant line in ...op/bashrc. But the compilation was not successfully done viz attached log

wyldckat March 6, 2013 05:23

Hi Martin,

Try running the following before running Allwmake once again:
Code:

cd $FOAM_SRC/decompositionMethods
wclean all

Best regards,
Bruno

novakm March 6, 2013 05:45

2 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 411905)
Hi Martin,

Try running the following before running Allwmake once again:
Code:

cd $FOAM_SRC/decompositionMethods
wclean all

Best regards,
Bruno


Thanks for the reply.

I did what you posted but it did not work :confused:
First error in the log shows up, when it cannot open scotch.h (log 3)
so I change the rights. That shows up that is not the main problem :/
The compilation was also unsuccessful (log 4).

Could you please tell me other ideas to resolve this problem?

novakm March 6, 2013 06:29

Bruno,

Do you have some version (branch) of OF-1.6-ext that you have compiled in debug mode? Maybe there is a possibility of bad OF file, since the repository are offline.

andreia March 6, 2013 11:41

Hi Bruno,

I have successfully compiled OpenFoam-1.6-ext following your instructions and ParaView works fine, execpt if I try some Paraview/Python scripting. In this case, when I try to import paraview.simple module I got the following message:

Code:

>>> from paraview.simple import *
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/paraview/simple.py", line 39, in <module>
    import servermanager
  File "/usr/lib/python2.7/dist-packages/paraview/servermanager.py", line 50, in <module>
    from vtkPVClientServerCorePython import *
ImportError:  /usr/lib/paraview/libQVTK.so.pv3.14: undefined symbol:  _ZN19QAbstractProxyModel11setItemDataERK11QModelIndexRK4QMapIi8QVariantE


wyldckat March 6, 2013 16:46

OK, I'll answer one at a time...

@Martin:
Quote:

Originally Posted by novakm (Post 411932)
Do you have some version (branch) of OF-1.6-ext that you have compiled in debug mode? Maybe there is a possibility of bad OF file, since the repository are offline.

There is a big space in the lines for building the decomposition libraries.
Quote:

Code:

-ftemplate-depth-40 -I    -I../decompositionMethods/lnInclude

This seems to indicate that you haven't built the ThirdParty stuff in debug mode! Go into the "ThirdParty" folder and run AllMake. ;)


@Andreia:
Quote:

Originally Posted by andreia (Post 412031)
I have successfully compiled OpenFoam-1.6-ext following your instructions and ParaView works fine, execpt if I try some Paraview/Python scripting. In this case, when I try to import paraview.simple module I got the following message:

Strange... which Linux distribution and architecture are you using?

Best regards,
Bruno

andreia March 6, 2013 21:58

Hi Bruno,

I realized that i was setting as PYTHONPATH "/usr/lib/paraview", which is the path to Python modules of system installed version of Paraview. Instead of this, I set as PYTHONPATH "/home/andreia/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.12.0/Utilities/VTKPythonWrapping", which I thought that was the right path, but I still can not import simple.py module. I am using Ubuntu 12.04 64bits.

novakm March 7, 2013 04:30

2 Attachment(s)
Quote:

Originally Posted by wyldckat (Post 412104)
OK, I'll answer one at a time...

@Martin:

There is a big space in the lines for building the decomposition libraries.
This seems to indicate that you haven't built the ThirdParty stuff in debug mode! Go into the "ThirdParty" folder and run AllMake. ;)
Best regards,
Bruno

Strange, I thought that I have had compiled ThirdParty. However, after compiling ThirdParty (successful viz log.), I have recompiled the OF. A lot of errors "disappeared", but still there are some present. First error, which I noticed, appears, when the compiler attempts to compile XiFoam. Do I replace the XiFoam libraries?

wyldckat March 7, 2013 08:26

@Martin: Strange... there is a recurring error in your log:
Code:

OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/setDeltaT.H:50:42: error: ‘class Foam::Time’ has no member named ‘deltaTheta’
I'll only be able to look into this at the end of today.

@Andreia: I'll try to check your problem at the end of today as well.

novakm March 7, 2013 09:38

Quote:

Originally Posted by wyldckat (Post 412291)
@Martin: Strange... there is a recurring error in your log:
Code:

OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/setDeltaT.H:50:42: error: ‘class Foam::Time’ has no member named ‘deltaTheta’
I'll only be able to look into this at the end of today.

Great, I'll be waiting.

Is the member deltaTheta actually a member of Foam::engineTime? :confused:
For clearness here is the main part of setDeltaT.H
Code:

if (adjustTimeStep)
{
    scalar maxDeltaTFact = maxCo/(CoNum + SMALL);
    scalar deltaTFact = min(min(maxDeltaTFact, 1.0 + 0.1*maxDeltaTFact), 1.2);

    runTime.setDeltaT
    (
        min
        (
            deltaTFact*runTime.deltaT().value(),
            maxDeltaT
        )
    );

    Info<< "deltaT = " <<  runTime.deltaT().value() << endl;
    Info<< "deltaT_theta = " <<  runTime.deltaTheta() << endl;
}


RicMat March 7, 2013 13:23

Gosh how long will the SVN be down? It is ridiculous that ANSYS can cause so mush disruption to all OpenFOAM users over a claim that some "non essential file" infringes their copyright. Who is to say who copied who? Why are thease files not just simply removed from the repository until the dispute is sorted out, Instead of closing down the whole thing?

Anyway can anyone point me to a mirror of

trunk/Breeder_1.6/shipHydrodynamicIG

as i cant seem to find that on the other mirrors given here

all the best

Ric

wyldckat March 7, 2013 17:11

@Martin:
Quote:

Originally Posted by novakm (Post 412310)
Great, I'll be waiting.

Is the member deltaTheta actually a member of Foam::engineTime? :confused:
For clearness here is the main part of setDeltaT.H
Code:

if (adjustTimeStep)
{
    scalar maxDeltaTFact = maxCo/(CoNum + SMALL);
    scalar deltaTFact = min(min(maxDeltaTFact, 1.0 + 0.1*maxDeltaTFact), 1.2);

    runTime.setDeltaT
    (
        min
        (
            deltaTFact*runTime.deltaT().value(),
            maxDeltaT
        )
    );

    Info<< "deltaT = " <<  runTime.deltaT().value() << endl;
    Info<< "deltaT_theta = " <<  runTime.deltaTheta() << endl;
}


I didn't have time earlier to look at the code... but apparently you've got a very strange installation going on there... Compare that file with this one:https://github.com/ogoe/OpenFOAM-1.6...de/setDeltaT.H
I say this because for the error I showed earlier, the relevant file gives the following symbolic link information:
Code:

#by running:
ls -l $FOAM_SRC/finiteVolume/lnInclude/setDeltaT.H

#this appears for me
lrwxrwxrwx 1 user user 39 2012-10-20 13:22 /home/user/OpenFOAM/OpenFOAM-1.6-ext/src/finiteVolume/lnInclude/setDeltaT.H -> ../cfdTools/general/include/setDeltaT.H

Best regards,
Bruno

wyldckat March 7, 2013 17:21

@andreia:
Quote:

Originally Posted by andreia (Post 412157)
I realized that i was setting as PYTHONPATH "/usr/lib/paraview", which is the path to Python modules of system installed version of Paraview. Instead of this, I set as PYTHONPATH "/home/andreia/OpenFOAM/OpenFOAM-1.6-ext/ThirdParty/rpmBuild/BUILD/ParaView-3.12.0/Utilities/VTKPythonWrapping", which I thought that was the right path, but I still can not import simple.py module. I am using Ubuntu 12.04 64bits.

OK, I've taken a look at some of the 1.6-ext installations I've got in some virtual machines and none of them have ParaView built with Python support.
So, my guess is that you either:
  • Aren't using the ParaView version built with 1.6-ext.
  • Or there is a collision between the version built with 1.6-ext versus the version that is installed on Ubuntu.
To figure out which is which, run:
Code:

which paraview
Best regards,
Bruno

wyldckat March 7, 2013 17:32

Greetings Richard and welcome to the forum!

Quote:

Originally Posted by RicMat (Post 412366)
Gosh how long will the SVN be down? It is ridiculous that ANSYS can cause so mush disruption to all OpenFOAM users over a claim that some "non essential file" infringes their copyright. Who is to say who copied who? Why are thease files not just simply removed from the repository until the dispute is sorted out, Instead of closing down the whole thing?

Anyway can anyone point me to a mirror of

trunk/Breeder_1.6/shipHydrodynamicIG

as i cant seem to find that on the other mirrors given here

all the best

Ric

When legal lawsuits come into play, all hell breaks loose and it's almost like nuclear winter :( .... maybe it should be called "legal winter" :D

But try contacting the people at the respective (related?) group: http://www.cfd-online.com/Forums/gro...mechanics.html

Best regards,
Bruno

RicMat March 8, 2013 04:14

Well I have posted there too now, though the forum looks pretty dead, wee will see.

Dose the OpenFOAM GPL not afford some kind of protection against this sort of thing? Its a bit troubling for the project if one of OF's rivals can inflict such disruption merely with a claim of infringement without it yet being tested in the courts.


All times are GMT -4. The time now is 13:38.