CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   can not complie fluentDataToFoam in OF2.1.1 (https://www.cfd-online.com/Forums/openfoam-pre-processing/108597-can-not-complie-fluentdatatofoam-of2-1-1-a.html)

hewei October 27, 2012 17:49

can not complie fluentDataToFoam in OF2.1.1
 
hi
Now I followed the instruction

http://openfoam-extend.git.sourcefor...ToFoam;hb=HEAD

to compile fluentDataToFoam ultily in OF2.1.1 for 64bit, but it didn't work and gave me such information.
~/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/preProcessing/fluentDataToFoam $ wmake

g++ -c -o fluentDataConverter.o fluentDataConverter.C
In file included from fluentDataConverter.C:27:0:
fluentDataConverter.H:42:19: fatal error: fvCFD.H: No such file or directory
compilation terminated.
make: *** [fluentDataConverter.o] Error 1

can somebody tell me what should I do? thank you very much in advance!

wyldckat October 28, 2012 12:48

Greetings hewei,

Something is not right in the output you've given. After you run wmake, it should output something like this:
Code:

user@machine:~/OpenFOAM/user-2.1.x/foamDataToFluent21x$ wmake
Making dependency list for source file writeFluentScalarField.C
Making dependency list for source file writeFluentVectorField.C
Making dependency list for source file foamDataToFluent.C
SOURCE=writeFluentScalarField.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/writeFluentScalarField.o
SOURCE=writeFluentVectorField.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/writeFluentVectorField.o
SOURCE=foamDataToFluent.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/foamDataToFluent.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/writeFluentScalarField.o Make/linux64GccDPOpt/writeFluentVectorField.o Make/linux64GccDPOpt/foamDataToFluent.o -L/home/user/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib \
        -lfiniteVolume -lOpenFOAM -ldl  -lm -o /home/user/OpenFOAM/user-2.1.x/platforms/linux64GccDPOpt/bin/foamDataToFluent

Anyway, the file the compiler is looking for can be located with the following command:
Code:

ls -l $FOAM_SRC/finiteVolume/lnInclude/fvCFD.H
It would help to know which installation of OpenFOAM 2.1.1 you're using, since the output you're getting is very different from the one above.

Best regards,
Bruno

hewei November 6, 2012 18:53

Quote:

Originally Posted by wyldckat (Post 388958)
Greetings hewei,

Something is not right in the output you've given. After you run wmake, it should output something like this:
Code:

user@machine:~/OpenFOAM/user-2.1.x/foamDataToFluent21x$ wmake
Making dependency list for source file writeFluentScalarField.C
Making dependency list for source file writeFluentVectorField.C
Making dependency list for source file foamDataToFluent.C
SOURCE=writeFluentScalarField.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/writeFluentScalarField.o
SOURCE=writeFluentVectorField.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/writeFluentVectorField.o
SOURCE=foamDataToFluent.C ;  g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -c $SOURCE -o Make/linux64GccDPOpt/foamDataToFluent.o
g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OpenFOAM/lnInclude -I/home/user/OpenFOAM/OpenFOAM-2.1.x/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/writeFluentScalarField.o Make/linux64GccDPOpt/writeFluentVectorField.o Make/linux64GccDPOpt/foamDataToFluent.o -L/home/user/OpenFOAM/OpenFOAM-2.1.x/platforms/linux64GccDPOpt/lib \
        -lfiniteVolume -lOpenFOAM -ldl  -lm -o /home/user/OpenFOAM/user-2.1.x/platforms/linux64GccDPOpt/bin/foamDataToFluent

Anyway, the file the compiler is looking for can be located with the following command:
Code:

ls -l $FOAM_SRC/finiteVolume/lnInclude/fvCFD.H
It would help to know which installation of OpenFOAM 2.1.1 you're using, since the output you're getting is very different from the one above.

Best regards,
Bruno


Hi Bruno,thanks for your help. I followed your advice,but it still not succeed.

wei@weihe ~/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/preProcessing/fluentDataToFoam $ ls -l $FOAM_SRC/finiteVolume/lnInclude/fvCFD.H
lrwxrwxrwx 1 wei wei 35 May 25 06:45 /home/wei/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude/fvCFD.H -> ../cfdTools/general/include/fvCFD.H
wei@weihe ~/OpenFOAM/OpenFOAM-2.1.1/applications/utilities/preProcessing/fluentDataToFoam $ wmake
SOURCE=fluentDataConverter.C ; g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3 -DNoRepository -ftemplate-depth-100 -I/home/wei/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/wei/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/home/wei/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/fluentDataConverter.o
In file included from fluentDataConverter.C:27:0:
fluentDataConverter.H:43:24: fatal error: wordIOList.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/fluentDataConverter.o] Error 1

yours,
wei.

wyldckat November 7, 2012 07:59

Hi Wei,

:confused: I've got a feeling that something strange is happening in your machine... namely that files aren't being properly picked up by the compiler!?

You can try the following pseudo-trick for forcing a folder refresh, so that the compiler can access to a fresh list of files:
Code:

find $FOAM_SRC -name wordIOList.H
Whenever it can't find a certain file, use the command above to search for that new file. With any luck, things will end up working as intended.

The only reason I can remember for this issue to be occurring is if you are either sharing the OpenFOAM folder inside a virtual machine or if the folder is located at a remote file-system. Any of those cases would lead to a stale list of files, leading to the issue you're having.

Best regards,
Bruno

blacksquirrel November 7, 2012 08:17

Hello Wei,

The link you provided, is to a utility for OpenFOAM-1.6-ext.
So it is not a utility for OpenFOAM 2.1.1.

The error you encountered, means, that the compiler can't find one of the files (here wordIOList.H).

I looked in my OF2.1.1 and there is no such file. To use the code in OF211 you need to substitute the wordIOList class in the code with a class provided from OF211. So more or less you need to rewrite the utility for OF211, which means you need knowledge in programming.

Sorry, that I can't help you any further.

wyldckat November 7, 2012 15:24

Greetings to all!

@blacksquirrel: Good catch! I had replied without checking with any OpenFOAM installation and assumed the error was related to the previous one :(.

My first mistake was that I misread the application name... I thought it was "foamDataToFluent", which is already provided with the original OpenFOAM, while Wei wants "fluentDataToFoam".

@Wei: the trick here is to copy the file "src/OpenFOAM/primitives/Lists/wordIOList.C" and "wordIOList.H" from 1.6-ext into your custom folder for "fluentDataToFoam", then edit the file "Make/files" and add "wordIOList.C" to the file list. Then it should work!

Best regards,
Bruno

hewei November 7, 2012 18:42

Quote:

Originally Posted by wyldckat (Post 390876)
Greetings to all!

@blacksquirrel: Good catch! I had replied without checking with any OpenFOAM installation and assumed the error was related to the previous one :(.

My first mistake was that I misread the application name... I thought it was "foamDataToFluent", which is already provided with the original OpenFOAM, while Wei wants "fluentDataToFoam".

@Wei: the trick here is to copy the file "src/OpenFOAM/primitives/Lists/wordIOList.C" and "wordIOList.H" from 1.6-ext into your custom folder for "fluentDataToFoam", then edit the file "Make/files" and add "wordIOList.C" to the file list. Then it should work!

Best regards,
Bruno

Hi Bruno and blacksquirrel, followed your guidance and your endeavor help, it compiled successfully! thank you very much!! Later I will test if it can convert the data from fluent to openfoam perfectly.:D

yours,
Wei

solefire February 11, 2013 12:00

Thanks for all the information shared above.

Indeed it compiled successfully, while when I converted data, it gives error:

"file: /vsc-mounts/OpenFOAM/vsc30-2.1.x/run/cases/ENT/test/constant/polyMesh/zoneToPatchName at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.
From "fluentDataToFoam.C", object:" zoneToPatchName" must be read, any one has this file? Or some other advice to solve the problem.

Thanks a lot in advance!


Quote:

Originally Posted by wyldckat (Post 390876)
Greetings to all!

@blacksquirrel: Good catch! I had replied without checking with any OpenFOAM installation and assumed the error was related to the previous one :(.

My first mistake was that I misread the application name... I thought it was "foamDataToFluent", which is already provided with the original OpenFOAM, while Wei wants "fluentDataToFoam".

@Wei: the trick here is to copy the file "src/OpenFOAM/primitives/Lists/wordIOList.C" and "wordIOList.H" from 1.6-ext into your custom folder for "fluentDataToFoam", then edit the file "Make/files" and add "wordIOList.C" to the file list. Then it should work!

Best regards,
Bruno


DDB March 8, 2013 18:03

Hi,

I found that the link did not work :-(

So I downloaded the entire iso for OF-1.6-ext and copied the openfoam folder with src code etc.

Then I edited the Make/files
Quote:

@Wei: the trick here is to copy the file "src/OpenFOAM/primitives/Lists/wordIOList.C" and "wordIOList.H" from 1.6-ext into your custom folder for "fluentDataToFoam", then edit the file "Make/files" and add "wordIOList.C" to the file list.
I am currently running version 2.1.1 installed from the Fedora 18 rpm if that makes any difference..?

When I ran wmake I got
Code:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/fluentDataConverter.o Make/linux64GccDPOpt/fluentDataToFoam.o Make/linux64GccDPOpt/wordIOList.o -L/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib \
    -lfiniteVolume -lOpenFOAM -ldl  -lm -o /opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/fluentDataToFoam
/usr/bin/ld: cannot open output file /opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/fluentDataToFoam: Permission denied
collect2: error: ld returned 1 exit status
make: *** [/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/fluentDataToFoam] Error 1

So I changed to su & re-run wmake
Code:

g++ -m64 -Dlinux64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O3  -DNoRepository -ftemplate-depth-100 -I/opt/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/opt/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/opt/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude  -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64GccDPOpt/fluentDataConverter.o Make/linux64GccDPOpt/fluentDataToFoam.o Make/linux64GccDPOpt/wordIOList.o -L/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib \
    -lfiniteVolume -lOpenFOAM -ldl  -lm -o /opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/fluentDataToFoam
/usr/bin/ld: warning: libtriSurface.so, needed by /opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libmeshTools.so, needed by /opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libPstream.so, needed by /opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so, not found (try using -rpath or -rpath-link)
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::NamedEnum<Foam::mappedPatchBase::sampleMode, 4>::names'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::pointToPointPlanarInterpolation::findTime(Foam::List<Foam::instant> const&, int, double, int&, int&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::~coordinateSystem()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::reduce(double&, Foam::sumOp<double> const&, int)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UIPstream::read(Foam::UPstream::commsTypes, int, char*, long, int)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellSet::~cellSet()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryFaceCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UIPstream::UIPstream(Foam::UPstream::commsTypes, int, Foam::DynamicList<char, 0u, 2u, 1u>&, int&, int, bool, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `vtable for Foam::cyclicAMILduInterfaceField'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::calcMapping() const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::mappedPatchBase'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::cyclicAMILduInterfaceField'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::~faceSet()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::calcAMI() const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, int, Foam::IOobject::writeOption)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterfaceField::~cyclicAMILduInterfaceField()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::waitRequests(int)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::samplePoints() const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::abort()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::pointToPointPlanarInterpolation::timeNames(Foam::List<Foam::instant> const&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::faceSet::faceSet(Foam::polyMesh const&, Foam::word const&, Foam::HashSet<int, Foam::Hash<int> > const&, Foam::IOobject::writeOption)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellSet::cellSet(Foam::polyMesh const&, Foam::word const&, Foam::IOobject::readOption, Foam::IOobject::writeOption)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::patchWave::patchWave(Foam::polyMesh const&, Foam::HashSet<int, Foam::Hash<int> > const&, bool)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::getPointNeighbours(Foam::PrimitivePatch<Foam::face, Foam::SubList, Foam::Field<Foam::Vector<double> > const&, Foam::Vector<double> > const&, int, Foam::List<int>&) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::cyclicAMILduInterface'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMIPolyPatch::AMI() const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::operator<<(Foam::Ostream&, Foam::wallPoint const&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::init(int&, char**&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::sampleMesh() const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UIPstream::UIPstream(int, Foam::PstreamBuffers&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMIPolyPatch::typeName'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::~mappedPatchBase()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UPstream::nRequests()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam::polyPatch const&, Foam::dictionary const&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam::polyPatch const&, Foam::mappedPatchBase const&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::samplePolyPatch() const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::maxPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::correctBoundaryPointCells(Foam::HashSet<int, Foam::Hash<int> > const&, Foam::Field<double>&, Foam::Map<int>&) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::typeName'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `typeinfo for Foam::cyclicAMIPolyPatch'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::sumPatchSize(Foam::HashSet<int, Foam::Hash<int> > const&) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterface::~cyclicAMILduInterface()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::addValidParOptions(Foam::HashTable<Foam::string, Foam::word, Foam::string::hash>&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libOpenFOAM.so: undefined reference to `Foam::UPstream::exit(int)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::smallestDist(Foam::Vector<double> const&, Foam::polyPatch const&, int, Foam::List<int> const&, int&) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::writeDict(Foam::Ostream&, bool) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::mappedPatchBase(Foam::polyPatch const&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::patchWave::~patchWave()'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::operator>>(Foam::Istream&, Foam::wallPoint&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::mappedPatchBase::write(Foam::Ostream&) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::UOPstream::write(Foam::UPstream::commsTypes, int, char const*, long, int)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cellDistFuncs::cellDistFuncs(Foam::polyMesh const&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::coordinateSystem::coordinateSystem(Foam::dictionary const&, Foam::objectRegistry const&)'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::cyclicAMILduInterfaceField::transformCoupleField(Foam::Field<double>&, unsigned char) const'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::FaceCellWaveName::debug'
/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/lib/libfiniteVolume.so: undefined reference to `Foam::pointToPointPlanarInterpolation::pointToPointPlanarInterpolation(Foam::Field<Foam::Vector<double> > const&, Foam::Field<Foam::Vector<double> > const&, double)'
collect2: error: ld returned 1 exit status
make: *** [/opt/OpenFOAM-2.1.1/platforms/linux64GccDPOpt/bin/fluentDataToFoam] Error 1

I think it is fair to say that I have no idea what I am doing & am way out of my depth!

If anyone could help me then I would be really grateful....!

Thanks in advance :-)

wyldckat March 8, 2013 18:14

Hi DDB,
  1. Edit the file "Make/files" and change "FOAM_APPBIN" to "FOAM_USER_APPBIN".
  2. Then run wmake without root powers.
And for reference, the 1.6-ext repository is down due to legal issues: http://www.cfd-online.com/Forums/ope...y-offline.html

Best regards,
Bruno

DDB March 9, 2013 07:27

Thank you very much wyldckat, it worked a treat :-)

DDB March 9, 2013 07:32

Quote:

Originally Posted by solefire (Post 407189)
Thanks for all the information shared above.

Indeed it compiled successfully, while when I converted data, it gives error:

"file: /vsc-mounts/OpenFOAM/vsc30-2.1.x/run/cases/ENT/test/constant/polyMesh/zoneToPatchName at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 73.
From "fluentDataToFoam.C", object:" zoneToPatchName" must be read, any one has this file? Or some other advice to solve the problem.

Thanks a lot in advance!

Solefire, did you ever solve this? I am having the same problem with the
Code:

constant/polyMesh/zoneToPatchName at line 0

wyldckat March 10, 2013 10:43

Quote:

Originally Posted by DDB (Post 412714)
Solefire, did you ever solve this? I am having the same problem with the
Code:

constant/polyMesh/zoneToPatchName at line 0

For future reference, this has been answered here: http://www.cfd-online.com/Forums/ope...tml#post412947 post #4

hz283 March 18, 2013 16:06

Hello,

since the link is down, where can I get the utility fluentDataToFoam? I searched but did not found the place. Thank you so much.

best
H

Quote:

Originally Posted by wyldckat (Post 412646)
Hi DDB,
  1. Edit the file "Make/files" and change "FOAM_APPBIN" to "FOAM_USER_APPBIN".
  2. Then run wmake without root powers.
And for reference, the 1.6-ext repository is down due to legal issues: http://www.cfd-online.com/Forums/ope...y-offline.html

Best regards,
Bruno


wyldckat March 18, 2013 16:40

Greetings hz283,

Did you see post #4 on the link in the quote you've given?
Quote:

Originally Posted by wyldckat (Post 404465)
Here is one: https://github.com/ogoe/OpenFOAM-1.6-ext
But it's not complete... it only has the main branch.

edit on 2013-03-08: found another mirror, this one seems to be complete: http://repo.or.cz/w/OpenFOAM-1.6-ext.git

Then browse to the folder "applications/utilities/preProcessing/fluentDataToFoam".

Best regards,
Bruno

hz283 March 19, 2013 09:04

Hi Bruno,

Thank you so much for your reply.

Yes I found that, but I did not find the source package of FluentDataToFoam. You mentioned the folder: "applications/utilities/preProcessing/fluentDataToFoam". Is this in the OF1.6-ext ? I am using OF211, but there is no such package in the applications/utilities/preProcessing/.

Thank you again.

Quote:

Originally Posted by wyldckat (Post 414803)
Greetings hz283,

Did you see post #4 on the link in the quote you've given?

Then browse to the folder "applications/utilities/preProcessing/fluentDataToFoam".

Best regards,
Bruno


wyldckat March 24, 2013 12:03

Hi hz283,

The application is located at: http://repo.or.cz/w/OpenFOAM-1.6-ext...uentDataToFoam

You can use the links on the top of the page for getting a snapshot of the complete source code:
Quote:

"snapshot (tar.gz zip)"
Then unpack the downloaded package, go to said folder and follow the instructions that are around somewhere on this forum :D ;)

Best regards,
Bruno

babala April 1, 2014 02:24

Hi Bruno,
Thank you for your advices about the topic:D. I wish to know if the method can be used in OpenFOAM-2.2.2?:confused:

Quote:

Originally Posted by wyldckat (Post 412948)
For future reference, this has been answered here: http://www.cfd-online.com/Forums/ope...tml#post412947 post #4

best regards
Zhiyuan

wyldckat April 1, 2014 15:12

Quote:

Originally Posted by babala (Post 483135)
I wish to know if the method can be used in OpenFOAM-2.2.2?:confused:

Quick answer: Have you tried it yourself? I don't have time to test this :(

babala April 1, 2014 20:51

Quote:

Originally Posted by wyldckat (Post 483292)
Quick answer: Have you tried it yourself? I don't have time to test this :(

All right. Thank you for your answer.:)

best regards
zhiyuan


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