CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

can not complie fluentDataToFoam in OF2.1.1

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 27, 2012, 18:49
Default can not complie fluentDataToFoam in OF2.1.1
  #1
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
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!
hewei is offline   Reply With Quote

Old   October 28, 2012, 13:48
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
__________________
wyldckat is offline   Reply With Quote

Old   November 6, 2012, 19:53
Default
  #3
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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.
hewei is offline   Reply With Quote

Old   November 7, 2012, 08:59
Default
  #4
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi Wei,

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
__________________
wyldckat is offline   Reply With Quote

Old   November 7, 2012, 09:17
Default
  #5
Member
 
Join Date: Jun 2011
Posts: 53
Rep Power: 15
blacksquirrel is on a distinguished road
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.
blacksquirrel is offline   Reply With Quote

Old   November 7, 2012, 16:24
Default
  #6
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
solefire and babala like this.
__________________
wyldckat is offline   Reply With Quote

Old   November 7, 2012, 19:42
Default
  #7
Member
 
Join Date: May 2010
Posts: 74
Rep Power: 16
hewei is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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.

yours,
Wei
hewei is offline   Reply With Quote

Old   February 11, 2013, 13:00
Default
  #8
Member
 
CJ
Join Date: Jun 2009
Posts: 34
Rep Power: 17
solefire is on a distinguished road
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 View Post
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
solefire is offline   Reply With Quote

Old   March 8, 2013, 19:03
Default
  #9
DDB
New Member
 
DDB
Join Date: Jan 2013
Posts: 12
Rep Power: 13
DDB is on a distinguished road
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 :-)
DDB is offline   Reply With Quote

Old   March 8, 2013, 19:14
Default
  #10
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 and Alisa_W like this.
__________________
wyldckat is offline   Reply With Quote

Old   March 9, 2013, 08:27
Default
  #11
DDB
New Member
 
DDB
Join Date: Jan 2013
Posts: 12
Rep Power: 13
DDB is on a distinguished road
Thank you very much wyldckat, it worked a treat :-)
DDB is offline   Reply With Quote

Old   March 9, 2013, 08:32
Default
  #12
DDB
New Member
 
DDB
Join Date: Jan 2013
Posts: 12
Rep Power: 13
DDB is on a distinguished road
Quote:
Originally Posted by solefire View Post
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
DDB is offline   Reply With Quote

Old   March 10, 2013, 11:43
Default
  #13
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by DDB View Post
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
__________________
wyldckat is offline   Reply With Quote

Old   March 18, 2013, 17:06
Default
  #14
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 14
hz283 is on a distinguished road
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 View Post
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
hz283 is offline   Reply With Quote

Old   March 18, 2013, 17:40
Default
  #15
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Greetings hz283,

Did you see post #4 on the link in the quote you've given?
Quote:
Originally Posted by wyldckat View Post
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
__________________
wyldckat is offline   Reply With Quote

Old   March 19, 2013, 10:04
Default
  #16
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 14
hz283 is on a distinguished road
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 View Post
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
hz283 is offline   Reply With Quote

Old   March 24, 2013, 13:03
Default
  #17
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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

Best regards,
Bruno
babala likes this.
__________________
wyldckat is offline   Reply With Quote

Old   April 1, 2014, 03:24
Question
  #18
New Member
 
Zhiyuan Li
Join Date: Aug 2013
Location: Beijing
Posts: 9
Rep Power: 13
babala is on a distinguished road
Hi Bruno,
Thank you for your advices about the topic. I wish to know if the method can be used in OpenFOAM-2.2.2?

Quote:
Originally Posted by wyldckat View Post
For future reference, this has been answered here: http://www.cfd-online.com/Forums/ope...tml#post412947 post #4
best regards
Zhiyuan
babala is offline   Reply With Quote

Old   April 1, 2014, 16:12
Default
  #19
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by babala View Post
I wish to know if the method can be used in OpenFOAM-2.2.2?
Quick answer: Have you tried it yourself? I don't have time to test this
wyldckat is offline   Reply With Quote

Old   April 1, 2014, 21:51
Smile
  #20
New Member
 
Zhiyuan Li
Join Date: Aug 2013
Location: Beijing
Posts: 9
Rep Power: 13
babala is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
babala is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Can't find files when install OF2.1.1 on Mac hewei OpenFOAM Installation 10 June 3, 2016 07:50
I am beginner to complie udf. Help me , please T.T Ukxang Fluent UDF and Scheme Programming 4 July 2, 2013 02:53
conjugateheatfoam complie on OF1.7 kamkari OpenFOAM 0 March 10, 2011 13:11
about complie define_adjust() shuqin FLUENT 3 December 26, 2005 08:08
FluentDataToFoam utility ali OpenFOAM Post-Processing 1 November 24, 2005 14:44


All times are GMT -4. The time now is 23:48.