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   September 8, 2018, 10:19
Default Problem when complie fluentDataToFoam in OFV3.0+
  #21
Member
 
王莹
Join Date: May 2017
Posts: 51
Rep Power: 9
Alisa_W is on a distinguished road
Hello, everyone!

Seen that there are so many users about fluentDataToFoam, I put my problem here. I downloaded fluentDataToFoam-v4.1.zip and compiled it in my computer.

1. First I compiled it in ofv3.0+, it failed and gave info below:


/home/fp/OpenFOAM/OpenFOAM-v3.0+/applications/utilities/preProcessing/fluentDataToFoam
g++ -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/fp/OpenFOAM/OpenFOAM-v3.0+/src/meshTools/lnInclude -I/home/fp/OpenFOAM/OpenFOAM-v3.0+/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/fp/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude -I/home/fp/OpenFOAM/OpenFOAM-v3.0+/src/OSspecific/POSIX/lnInclude -fPIC -c fluentDataConverter.C -o /home/fp/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Opt/applications/utilities/preProcessing/fluentDataToFoam/fluentDataConverter.o
fluentDataConverter.C: In member function ‘Foam::volScalarField Foam::fluentDataConverter::convertField(const Foam::word&, Foam::label, const dimensionedScalar&) const’:
fluentDataConverter.C:133:92: error: ‘Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::InternalField {aka class Foam::Field<double>}’ has no member named ‘field’
ield & resultInt = const_cast<scalarField&> (result.internalField().field());
^
/home/fp/OpenFOAM/OpenFOAM-v3.0+/wmake/rules/General/transform:8: recipe for target '/home/fp/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Opt/applications/utilities/preProcessing/fluentDataToFoam/fluentDataConverter.o' failed
make: *** [/home/fp/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64GccDPInt32Opt/applications/utilities/preProcessing/fluentDataToFoam/fluentDataConverter.o] Error 1

I thought it may be caused by of version, but I really had no idea how to solve it .

2.Then, I compiled it in of 4.1, it seemed successful but gave two warnings.

fluentDataToFoam.L: In member function ‘virtual int yyFlexLexer::yylex()’:
fluentDataToFoam.L:193:11: warning: variable ‘nTimeLevels’ set but not used [-Wunused-but-set-variable]
label nTimeLevels;
^
fluentDataToFoam.L:194:11: warning: variable ‘nPhases’ set but not used [-Wunused-but-set-variable]
label nPhases;
^
/home/fp/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/preProcessing/fluentDataToFoam/fluentDataToFoam.L.C: In member function ‘int yyFlexLexer::yy_get_next_buffer()’:
/home/fp/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/preProcessing/fluentDataToFoam/fluentDataToFoam.L.C:8181:44: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if ((int) ((yy_n_chars) + number_to_move) > YY_CURRENT_BUFFER_LVALUE->yy_buf_s
^
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3 -DNoRepository -ftemplate-depth-100 -I/home/fp/OpenFOAM/OpenFOAM-4.1/src/meshTools/lnInclude -I/home/fp/OpenFOAM/OpenFOAM-4.1/src/finiteVolume/lnInclude -IlnInclude -I. -I/home/fp/OpenFOAM/OpenFOAM-4.1/src/OpenFOAM/lnInclude -I/home/fp/OpenFOAM/OpenFOAM-4.1/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed /home/fp/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/preProcessing/fluentDataToFoam/fluentDataConverter.o /home/fp/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/applications/utilities/preProcessing/fluentDataToFoam/fluentDataToFoam.o -L/home/fp/OpenFOAM/OpenFOAM-4.1/platforms/linux64GccDPInt32Opt/lib \
-lfiniteVolume -lOpenFOAM -ldl \
-lm -o /home/fp/OpenFOAM/fp-4.1/platforms/linux64GccDPInt32Opt/bin/fluentDataToFoam

3.If I can't solve problem in ofv3.0+, I want to do as follow: convert the fluent dat. file to foam in of 4.1 and then copy it to ofv3.0+. Will this way works?

Hope that someone can help me! Thank you~
Alisa_W 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 14:56.