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

foamToTecplot360

Register Blogs Community New Posts Updated Threads Search

Like Tree36Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2016, 18:34
Default
  #101
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Laouche View Post
I want to install localtecplotToFoam for OpenFOAM version 3.0

Quick answer: Sorry, I did try fixing this today, but I didn't manage to figure out what exactly changed in OpenFOAM 3.0 that affected the building process for the "tecio" library I was switching between several tasks and I ended up not being able to focus on this one.

I have this on my to-do list and I'll try to fix this sometime this week or on the next weekend.
In the meantime, perhaps you should try using Tecplot's built-in loader? If you have a fairly recent version of Tecplot, you should be able to use the internal reader without the need for foamToTecplot360.
__________________
wyldckat is offline   Reply With Quote

Old   February 9, 2016, 04:13
Default l
  #102
New Member
 
laouche nassim
Join Date: Jan 2016
Posts: 3
Rep Power: 10
Laouche is on a distinguished road
THANK YOU FOR THE ANSWER
THERE IS A CHANGE IN CASE WHERE CANSTANT RAS PRO IS CHANGED BY turbulenceProperties AND IS blockMeshDict presented in FILE SYSTEM
Laouche is offline   Reply With Quote

Old   March 8, 2016, 01:40
Default
  #103
New Member
 
omid
Join Date: Oct 2013
Posts: 6
Rep Power: 12
omid_K is on a distinguished road
Dear Bruno Santos
I want to install foamtotecplot360 into openFoam30
and i complete read your forums,but there are just for openfoam version 1.6 until 2.3
how can you help me?
best regard
omid
omid_K is offline   Reply With Quote

Old   March 27, 2016, 12:47
Default
  #104
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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!
Quote:
Originally Posted by Laouche View Post
I want to install localtecplotToFoam for OpenFOAM version 3.0
Quote:
Originally Posted by omid_K View Post

I want to install foamtotecplot360 into openFoam30
and i complete read your forums,but there are just for openfoam version 1.6 until 2.3
I've finally managed to find the time and figured out how to fix the issue. The instructions on how to build foamToTecplot360 with OpenFOAM 3.0 is now available here: https://github.com/wyldckat/localFoamToTecplot360

Quote:
Originally Posted by Laouche View Post
THANK YOU FOR THE ANSWER
THERE IS A CHANGE IN CASE WHERE CANSTANT RAS PRO IS CHANGED BY turbulenceProperties AND IS blockMeshDict presented in FILE SYSTEM
Sorry, but:
  1. I didn't understand your question.
  2. You should ask about that in another discussion thread, given that it doesn't seem related to foamToTecplot360.
Best regards,
Bruno
yushiw likes this.
__________________
wyldckat is offline   Reply With Quote

Old   March 29, 2016, 01:43
Default
  #105
New Member
 
omid
Join Date: Oct 2013
Posts: 6
Rep Power: 12
omid_K is on a distinguished road
Dear Bruno Santos thanks for your answer,it was very helpful.now foamtotecplot360 work for me in openfoam30
wyldckat likes this.
omid_K is offline   Reply With Quote

Old   April 2, 2016, 15:47
Default
  #106
New Member
 
Abgail Pinheiro
Join Date: Feb 2013
Posts: 4
Rep Power: 13
abgail is on a distinguished road
I'm using a Windows installation version of OpenFOAM-3.0 and when I try to compile foamToTecplot360 I got the following error:

Quote:
[root@boot2docker foamToTecplot360]# ./Allwmake
/opt/OpenFOAM/OpenFOAM-v3.0+/applications/utilities/postProcessing/dataConversio
n/foamToTecplot360
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/opt/OpenFOAM/ThirdParty-v3.0+/tecio/
tecsrc/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/lagrangian/basic/lnInclude -
I/opt/OpenFOAM/OpenFOAM-v3.0+/src/finiteVolume/lnInclude -I/opt/OpenFOAM/OpenFOA
M-v3.0+/src/dynamicMesh/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/meshTools/l
nInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOAM/lnInclude -
I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OSspecific/POSIX/lnInclude -fPIC -Xlinker --
add-needed -Xlinker --no-as-needed /opt/OpenFOAM/OpenFOAM-v3.0+/platforms/linux6
4Gcc48DPInt32Opt/applications/utilities/postProcessing/dataConversion/foamToTecp
lot360/tecplotWriter.o /opt/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64Gcc48DPInt3
2Opt/applications/utilities/postProcessing/dataConversion/foamToTecplot360/vtkMe
sh.o /opt/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64Gcc48DPInt32Opt/applications/
utilities/postProcessing/dataConversion/foamToTecplot360/foamToTecplot360.o -L/o
pt/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64Gcc48DPInt32Opt/lib \
-llagrangian -lfiniteVolume -ldynamicMesh -lgenericPatchFields -lmes
hTools -L/opt/OpenFOAM/ThirdParty-v3.0+/platforms/linux64Gcc48DPInt32Opt/lib -lt
ecio -lOpenFOAM -ldl \
-lm -o /opt/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64Gcc48DPInt32Op
t/bin/foamToTecplot360
/usr/bin/ld: cannot find -ltecio
collect2: error: ld returned 1 exit status
make: *** [/opt/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64Gcc48DPInt32Opt/bin/foa
mToTecplot360] Error 1
I saw some guys with the same error but in other versions of OpenFOAM. I already downloaded the tecio library to /opt/OpenFOAM/ThirdParty-v3.0+/tecio, but somehow it isn't finding the library.

Any help on this?
abgail is offline   Reply With Quote

Old   April 2, 2016, 17:51
Default
  #107
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quick answer @abgail: I wrote the following in 2 posts above:
Quote:
Originally Posted by wyldckat View Post
The instructions on how to build foamToTecplot360 with OpenFOAM 3.0 is now available here: https://github.com/wyldckat/localFoamToTecplot360
Please try it with OpenfOAM 3.0+.
wyldckat is offline   Reply With Quote

Old   April 3, 2016, 13:55
Default
  #108
New Member
 
Abgail Pinheiro
Join Date: Feb 2013
Posts: 4
Rep Power: 13
abgail is on a distinguished road
Hi, Bruno! Thanks for the quick answer. Actually, I have already tried following the instructions from the posts above, but I didn't work.

The error was in this step of the installation process:

Making dependency list for source file vtkMesh.C
could not open file fvMeshSubset.H for source file vtkMesh.C due to No such file
or directory
could not open file C__BASE.h for source file tecplotWriter.C due to No such fil
e or directory
could not open file fvMeshSubset.H for source file foamToTecplot360.C due to No
such file or directory
could not open file C__BASE.h for source file foamToTecplot360.C due to No such
file or directory

vtkMesh.H:39:26: fatal error: fvMeshSubset.H: No such file or directory
#include "fvMeshSubset.H"

Do you have any idea of how I can fix it?
abgail is offline   Reply With Quote

Old   April 3, 2016, 18:08
Default
  #109
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Abgail,

Mmmm.... don't they have instructions somewhere on how to be able to build user-made custom code?... Here we go: http://www.openfoam.com/download/txt...adme_v3.0+.txt

And I quote:
Quote:
Code:
1) This OpenFOAM installation environment provides you with both a working and
   a development platform. 
   To compile modified source code, please do as follows;
   i) Login as "root" (su root) with password "0fuser2015
   ii)  Go to /opt/OpenFOAM/OpenFOAM-v3.0+
   iii) Run ./Allwmake (it will create the full dependency list and object files)
   iv)  Go to the folder with modified source code, and compile the changed files.
The step "iii" is very likely what's missing in your installation.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 3, 2016, 20:55
Default
  #110
New Member
 
Abgail Pinheiro
Join Date: Feb 2013
Posts: 4
Rep Power: 13
abgail is on a distinguished road
Bruno,

I've followed all the steps to compile modified source code, but I've got the same error.

Maybe there's something wrong with the foamToTecplot360 compilation. This is what I got when I tried to run ./Allwmake of foamToTecplot360

/usr/bin/ld: cannot find -ltecio
collect2: error: ld returned 1 exit status
make: *** [/opt/OpenFOAM/OpenFOAM-v3.0+/platforms/linux64Gcc48DPInt32Opt/bin/foa
mToTecplot360] Error 1

Thanks a lot for the help!

Best regards,
Abgail
abgail is offline   Reply With Quote

Old   April 5, 2016, 18:39
Default
  #111
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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 Abgail,

I did the following steps, using the Docker image on Ubuntu: http://www.openfoam.com/download/install-binary.php

  1. After going into the container, I ran these commands:
    Code:
    su -
    yum install wget unzip git
    foam
    wmakeLnIncludeAll
    exit
    Meaning:
    1. The "su -" command was for switching to root mode, where I simply used the same password as the one I have in my own machine.
    2. installed the packages that were missing.
    3. Went into the OpenFOAM+ source code and made sure all headers were in place.
    4. Exited root mode.
  2. Then I did the steps for getting the source code for the local installation:
    Code:
    mkdir -p $WM_PROJECT_USER_DIR
    cd $WM_PROJECT_USER_DIR
    wget "https://github.com/wyldckat/localFoamToTecplot360/archive/of30.tar.gz"
    tar -xf of30.tar.gz
    cd localFoamToTecplot360-of30
  3. Then fixed the broken details:
    Code:
    sed -i -e 's=\(meshTools/lnInclude\)=\1 -I$(LIB_SRC)/dynamicMesh/lnInclude=' foamToTecplot360/Make/options
    sed -i -e 's=\(\-lmeshTools\)=\1 -ldynamicMesh=' foamToTecplot360/Make/options
  4. And finally, ran Allwmake:
    Code:
    ./Allwmake
  5. Ran it a second time and I get the summary, something like this:
    Code:
    + wmake libso tecio/tecsrc/
    '/home/ofuser/OpenFOAM/ofuser-v3.0+/platforms/linux64Gcc48DPInt32Opt/lib/libtecio.so' is up to date.
    + wmake foamToTecplot360
    make: `/home/ofuser/OpenFOAM/ofuser-v3.0+/platforms/linux64Gcc48DPInt32Opt/bin/foamToTecplot360' is up to date.
Hopefully the same will work on Windows.


Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 5, 2016, 21:28
Default
  #112
New Member
 
Abgail Pinheiro
Join Date: Feb 2013
Posts: 4
Rep Power: 13
abgail is on a distinguished road
Hi Bruno,

Thank you so much for trying to help me. Unfortunately, it is still not working.
I've got the following errors:

[ofuser@boot2docker localFoamToTecplot360-of30]$ ./Allwmake
+ ./getTecIO

For more information about the TecIO library, visit:
http://www.tecplot.com/Downloads/TecIOLibrary.aspx

Press Enter to continue...

+ '[' '!' -e tecio/tecsrc/Make ']'
+ wmake libso tecio/tecsrc/
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 -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEEN
UM -DTHREED -U_WIN32 -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOA
M/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OSspecific/POSIX/lnInclude -fPI
C -c alloc.cpp -o Make/linux64Gcc48DPInt32Opt/alloc.o
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 -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEEN
UM -DTHREED -U_WIN32 -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOA
M/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OSspecific/POSIX/lnInclude -fPI
C -c arrlist.cpp -o Make/linux64Gcc48DPInt32Opt/arrlist.o
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 -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEEN
UM -DTHREED -U_WIN32 -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOA
M/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OSspecific/POSIX/lnInclude -fPI
C -c auxdata.cpp -o Make/linux64Gcc48DPInt32Opt/auxdata.o
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 -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEEN
UM -DTHREED -U_WIN32 -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OpenFOA
M/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OSspecific/POSIX/lnInclude -fPI
C -c dataio4.cpp -o Make/linux64Gcc48DPInt32Opt/dataio4.o
In file included from alloc.cpp:25:0:
MASTER.h:527:31: fatal error: X11/Intrinsic.h: No such file or directory
# include <X11/Intrinsic.h>
^
compilation terminated.
make: *** [Make/linux64Gcc48DPInt32Opt/alloc.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from auxdata.cpp:25:0:
MASTER.h:527:31: fatal error: X11/Intrinsic.h: No such file or directory
# include <X11/Intrinsic.h>
^
compilation terminated.
In file included from dataio4.cpp:25:0:
MASTER.h:527:31: fatal error: X11/Intrinsic.h: No such file or directory
# include <X11/Intrinsic.h>
^
compilation terminated.
In file included from arrlist.cpp:25:0:
MASTER.h:527:31: fatal error: X11/Intrinsic.h: No such file or directory
# include <X11/Intrinsic.h>
^
compilation terminated.
make: *** [Make/linux64Gcc48DPInt32Opt/auxdata.o] Error 1
make: *** [Make/linux64Gcc48DPInt32Opt/dataio4.o] Error 1
make: *** [Make/linux64Gcc48DPInt32Opt/arrlist.o] Error 1
+ wmake foamToTecplot360
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/ofuser/OpenFOAM/ofuser-v3.0+/lo
calFoamToTecplot360-of30/tecio/tecsrc/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/s
rc/lagrangian/basic/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/finiteVolume/ln
Include -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/meshTools/lnInclude -I/opt/OpenFOAM/O
penFOAM-v3.0+/src/dynamicMesh/lnInclude -IlnInclude -I. -I/opt/OpenFOAM/OpenFOAM
-v3.0+/src/OpenFOAM/lnInclude -I/opt/OpenFOAM/OpenFOAM-v3.0+/src/OSspecific/POSI
X/lnInclude -fPIC -Xlinker --add-needed -Xlinker --no-as-needed Make/linux64Gc
c48DPInt32Opt/tecplotWriter.o Make/linux64Gcc48DPInt32Opt/vtkMesh.o Make/linux64
Gcc48DPInt32Opt/foamToTecplot360.o -L/opt/OpenFOAM/OpenFOAM-v3.0+/platforms/linu
x64Gcc48DPInt32Opt/lib \
-llagrangian -lfiniteVolume -lgenericPatchFields -lmeshTools -ldynam
icMesh -L/home/ofuser/OpenFOAM/ofuser-v3.0+/platforms/linux64Gcc48DPInt32Opt/lib
-ltecio -lOpenFOAM -ldl \
-lm -o /home/ofuser/OpenFOAM/ofuser-v3.0+/platforms/linux64Gcc48DPI
nt32Opt/bin/foamToTecplot360
/usr/bin/ld: cannot find -ltecio
collect2: error: ld returned 1 exit status
make: *** [/home/ofuser/OpenFOAM/ofuser-v3.0+/platforms/linux64Gcc48DPInt32Opt/b
in/foamToTecplot360] Error 1

Best regards,
Abgail
abgail is offline   Reply With Quote

Old   September 26, 2016, 07:35
Default
  #113
New Member
 
...
Join Date: Jun 2013
Posts: 19
Rep Power: 12
manalis is on a distinguished road
Hello foamers,

Does anyone else have problems in compiling and activating foamToTecplot360 in OF v4.0 (linux)? The older "localfoamToTecplot360" doesn't seem to work anymore. Any ideas?

Regards
manalis is offline   Reply With Quote

Old   October 7, 2016, 03:56
Default foamToTecplot360 for OF v4.0
  #114
New Member
 
...
Join Date: Jun 2013
Posts: 19
Rep Power: 12
manalis is on a distinguished road
Quote:
Originally Posted by manalis View Post
Hello foamers,

Does anyone else have problems in compiling and activating foamToTecplot360 in OF v4.0 (linux)? The older "localfoamToTecplot360" doesn't seem to work anymore. Any ideas?

Regards
I haven't been able to compile foamToTecplot360 in OF v4.0 yet, so if anyone has succeeded in this, I would love to hear the proposed solution.

Regards,
manalis is offline   Reply With Quote

Old   October 8, 2016, 15:30
Default
  #115
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
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
Quick answer @manalis: I've updated the repository https://github.com/wyldckat/localFoamToTecplot360/ and added a new branch "of4". It works with OpenFOAM 4.0 and 4.x.

In a few minutes, I'll also have the branch ofdev for the OpenFOAM-dev repository and respective Deb packs.


edit: @Abgail: Sorry, but I didn't manage to find the time to try and reproduce the same error that you had I hope you managed to solve it in the meantime.
__________________

Last edited by wyldckat; October 8, 2016 at 15:53. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   October 11, 2016, 12:21
Default
  #116
New Member
 
...
Join Date: Jun 2013
Posts: 19
Rep Power: 12
manalis is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer @manalis: I've updated the repository https://github.com/wyldckat/localFoamToTecplot360/ and added a new branch "of4". It works with OpenFOAM 4.0 and 4.x.

In a few minutes, I'll also have the branch ofdev for the OpenFOAM-dev repository and respective Deb packs.


edit: @Abgail: Sorry, but I didn't manage to find the time to try and reproduce the same error that you had I hope you managed to solve it in the meantime.
Thank you very much for your help and the updated versions of foamToTecplot360 files. I am curious to see why the older versions didn't work since the "make" files seem to be unchanged at a first glance!

Thanks again.

Regards,
manalis is offline   Reply With Quote

Old   August 12, 2018, 19:04
Default
  #117
New Member
 
Taihang Zhu
Join Date: May 2018
Location: London
Posts: 6
Rep Power: 7
zhutaihang is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Quick answer @manalis: I've updated the repository https://github.com/wyldckat/localFoamToTecplot360/ and added a new branch "of4". It works with OpenFOAM 4.0 and 4.x.

In a few minutes, I'll also have the branch ofdev for the OpenFOAM-dev repository and respective Deb packs.


edit: @Abgail: Sorry, but I didn't manage to find the time to try and reproduce the same error that you had I hope you managed to solve it in the meantime.
Hey Bruno,

You have done an amazing job! It still works for OpenFOAM 5.0. I really appreciate it.
wyldckat likes this.
zhutaihang is offline   Reply With Quote

Old   March 3, 2019, 22:59
Default
  #118
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
Quote:
Originally Posted by zhutaihang View Post
Hey Bruno,

You have done an amazing job! It still works for OpenFOAM 5.0. I really appreciate it.
Hi,


I have OpenFOAM-2.3.1 as well as OpenFOAM-dev. I try to install foamToTecplot360 which is not successful yet with the following error:


Code:
foamToTecplot360.C: In function ‘int main(int, char**)’:
foamToTecplot360.C:1215:17: error: ‘DIRECTORY’ is not a member of ‘Foam::fileName’
                 fileName::DIRECTORY
                 ^
In file included from tecplotWriter.H:170:0,
                 from foamToTecplot360.C:87:
tecplotWriterTemplates.C: In instantiation of ‘Foam::tmp<Foam::Field<Type> > Foam::tecplotWriter::getFaceField(const Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>&, const labelList&) const [with Type = double; Foam::labelList = Foam::List<int>]’:
foamToTecplot360.C:832:21:   required from here
tecplotWriterTemplates.C:96:29: error: binding ‘const Foam::Field<double>’ to reference of type ‘Foam::Field<double>&’ discards qualifiers
     Field<Type>& fld = tfld();
                             ^
tecplotWriterTemplates.C: In instantiation of ‘Foam::tmp<Foam::Field<Type> > Foam::tecplotWriter::getFaceField(const Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>&, const labelList&) const [with Type = Foam::Vector<double>; Foam::labelList = Foam::List<int>]’:
foamToTecplot360.C:843:21:   required from here
tecplotWriterTemplates.C:96:29: error: binding ‘const Foam::Field<Foam::Vector<double> >’ to reference of type ‘Foam::Field<Foam::Vector<double> >&’ discards qualifiers

Although, there are still other erros. Whenever I try to go to the working directory of OpenFOAM-2.3.1 I am just directed to OpenFOAM-dev working directory, instead. I am in doubt that this is the problem causing the errors.


Regards,
Elham
Elham is offline   Reply With Quote

Old   March 4, 2019, 04:46
Default
  #119
Senior Member
 
Daniel
Join Date: Mar 2013
Location: Noshahr, Iran
Posts: 348
Rep Power: 21
Daniel_Khazaei will become famous soon enough
Quote:
Originally Posted by Elham View Post
Hi,

I have OpenFOAM-2.3.1 as well as OpenFOAM-dev. I try to install foamToTecplot360 which is not successful yet with the following error:

Code:
foamToTecplot360.C: In function ‘int main(int, char**)’:
foamToTecplot360.C:1215:17: error: ‘DIRECTORY’ is not a member of ‘Foam::fileName’
                 fileName::DIRECTORY
                 ^
In file included from tecplotWriter.H:170:0,
                 from foamToTecplot360.C:87:
tecplotWriterTemplates.C: In instantiation of ‘Foam::tmp<Foam::Field<Type> > Foam::tecplotWriter::getFaceField(const Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>&, const labelList&) const [with Type = double; Foam::labelList = Foam::List<int>]’:
foamToTecplot360.C:832:21:   required from here
tecplotWriterTemplates.C:96:29: error: binding ‘const Foam::Field<double>’ to reference of type ‘Foam::Field<double>&’ discards qualifiers
     Field<Type>& fld = tfld();
                             ^
tecplotWriterTemplates.C: In instantiation of ‘Foam::tmp<Foam::Field<Type> > Foam::tecplotWriter::getFaceField(const Foam::GeometricField<Type, Foam::fvsPatchField, Foam::surfaceMesh>&, const labelList&) const [with Type = Foam::Vector<double>; Foam::labelList = Foam::List<int>]’:
foamToTecplot360.C:843:21:   required from here
tecplotWriterTemplates.C:96:29: error: binding ‘const Foam::Field<Foam::Vector<double> >’ to reference of type ‘Foam::Field<Foam::Vector<double> >&’ discards qualifiers
The first error is probably due to the changes in the "enum class fileType", try using the lower case:
Code:
fileName::directory
for the second error you should consider using a non-const reference due to the changes in the recent OpenFOAM version:
Code:
      Field<Type>& fld = tfld.ref();
Quote:
Originally Posted by Elham View Post
Hi,
Although, there are still other erros. Whenever I try to go to the working directory of OpenFOAM-2.3.1 I am just directed to OpenFOAM-dev working directory, instead. I am in doubt that this is the problem causing the errors.

Regards,
Elham
Can you tell us how do you source different OpenFOAM versions?
What I guess is that you are not using aliases in your .bashrc file...
Daniel_Khazaei is offline   Reply With Quote

Old   March 4, 2019, 22:28
Default
  #120
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
Quote:
Originally Posted by Daniel_Khazaei View Post
The first error is probably due to the changes in the "enum class fileType", try using the lower case:
Code:
fileName::directory
for the second error you should consider using a non-const reference due to the changes in the recent OpenFOAM version:
Code:
      Field<Type>& fld = tfld.ref();
Can you tell us how do you source different OpenFOAM versions?
What I guess is that you are not using aliases in your .bashrc file...
Dear Daniel,


I just forgot to do the"git checkout of23" in step 3 and now it is installed. Thanks for your comment, anyway.

Thanks and regards,

Elham
Elham 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



All times are GMT -4. The time now is 22:07.