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

foamToTecplot360

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree29Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   November 22, 2011, 20:29
Default
  #41
Member
 
Peter
Join Date: Nov 2011
Posts: 45
Rep Power: 5
palmerlee is on a distinguished road
Thank you, Bruno. After I failed, I did try the new version of Tecplot 360. And it works well so far.
palmerlee is offline   Reply With Quote

Old   September 17, 2012, 10:06
Default How to build tecio library if you installed deb pack
  #42
New Member
 
Join Date: Sep 2012
Posts: 2
Rep Power: 0
Talin is on a distinguished road
Hi,
I've just installed deb package of OpenFOAM, I ran the cavity tutorial. Everything seems to work fine - I had bit of a problem with paraview but thanks to previous forums I got over that as well. Unfortunately couldn't get foamToTecplot360 command work. I have Ubuntu 11.10 (i686) and OpenFOAM 2.1.1. Could you please send me some instructions on how to build tecio library and get command 'foamToTecplot360' working? Thank you.
Talin is offline   Reply With Quote

Old   September 17, 2012, 16:12
Default
  #43
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Talin and welcome to the forum.

It's simple:
  1. Follow the instructions from post #17: foamToTecplot360
  2. Take into account these two details:
    1. The one mentioned in post #40: foamToTecplot360
    2. And that you're using 2.1.1 instead of 2.0.1 and 2.1.x instead of 2.0.x.
Best regards,
Bruno
kiddmax, Yann and Sylvar like this.
wyldckat is offline   Reply With Quote

Old   September 18, 2012, 06:14
Thumbs up
  #44
New Member
 
Join Date: Sep 2012
Posts: 2
Rep Power: 0
Talin is on a distinguished road
It worked! Thanks a lot Bruno!
Talin is offline   Reply With Quote

Old   November 9, 2012, 06:09
Thumbs up Really good job
  #45
New Member
 
Sylvain R.
Join Date: Nov 2012
Posts: 4
Rep Power: 4
Sylvar is on a distinguished road
Good morning all of you.
I am just writing something to highlight the fact that this thread is very very useful, and that thanks to your job, I am finally able to use the FoamToTecplot command (with Openfoam 2.1.0).

I strictly followed your post n43, I applied the changes you describe (with post 40 and 17 and it really works well.
So thank you Bruno for all these useful posts.

Sylvain
Sylvar is offline   Reply With Quote

Old   November 23, 2012, 09:34
Default
  #46
New Member
 
solOF
Join Date: Mar 2012
Posts: 26
Rep Power: 5
ofslcm is on a distinguished road
Hi,

very useful information. I've already completed parts 1 and 2 of post #17. Then I try to compile foamToTecplot with wmake and I get the following error:


ld: library not found for -ltecio
collect2: ld returned 1 exit status
make: *** [/Users/xxxxxx/Software/OpenFOAM_2.0.0/OF-Org-2.0/OpenFOAM-2.0.0/platforms/darwinIntel64Gcc45DPOpt/bin/foamToTecplot360] Error 1


I tried to follow the third step, but it was not working neither...

Could you help me, please?

Thank you
ofslcm is offline   Reply With Quote

Old   November 23, 2012, 19:50
Default
  #47
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi ofslcm,

Quote:
Originally Posted by ofslcm View Post
... /platforms/darwinIntel64Gcc45DPOpt/bin/foamToTecplot360] ...
You could have indicated that you're using Mac OS X, which is why the previous instructions aren't enough...

Anyway, I've just finished just now preparing a repository that should address that issue on Mac OS X (but I haven't tested), as well as making it easier for people to follow a single set of instructions

Said repository and respective instructions are available here: https://github.com/wyldckat/localFoamToTecplot360

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   November 25, 2012, 02:20
Default
  #48
New Member
 
Hyung Min Kim
Join Date: Mar 2011
Posts: 5
Rep Power: 6
pius is on a distinguished road
You have to copy all the tecplot io files in "$WM_THIRD_PARTY_DIR/tecio/"
and you have to modify the options in the FoamToTecplot360 application as shown below

EXE_INC = \
-I$(WM_THIRD_PARTY_DIR)/tecio/tecsrc/lnInclude \
-I$(LIB_SRC)/lagrangian/basic/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude

EXE_LIBS = \
-llagrangian \
-lfiniteVolume \
-lgenericPatchFields \
-lmeshTools \
-L$(FOAM_EXT_LIBBIN) -ltecio

good luck

pius
pius is offline   Reply With Quote

Old   December 3, 2012, 13:34
Default
  #49
New Member
 
solOF
Join Date: Mar 2012
Posts: 26
Rep Power: 5
ofslcm is on a distinguished road
Hi,

I've tried what you told me but I get this error message:


+ ./getTecIO

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

Press Enter to continue...

+ wmake libso tecio/tecsrc/tecioMake/
mkdir: darwinIntel64Gcc45DPOpt: Permission denied
/bin/sh: darwinIntel64Gcc45DPOpt/options: No such file or directory
In file included from options:2:0:
tecioOptions:19:5: error: #error architecture not supported for compiling tecio.
make: *** [darwinIntel64Gcc45DPOpt/options] Error 1
/Users/xxxxxx/Software/OpenFOAM_2.0.0/OF-Org-2.0/OpenFOAM-2.0.0/wmake/MakefileFiles:40: darwinIntel64Gcc45DPOpt/options: No such file or directory
make: *** No rule to make target `darwinIntel64Gcc45DPOpt/options'. Stop.
wmake error: file '../../tecioMake//darwinIntel64Gcc45DPOpt/objectFiles' could not be created in //OpenFOAM/xxxxxx-2.0.0/localFoamToTecplot360-of20/tecio/tecsrc
+ wmake foamToTecplot360
mkdir: darwinIntel64Gcc45DPOpt: Permission denied
/bin/sh: darwinIntel64Gcc45DPOpt/options: No such file or directory
make: *** [darwinIntel64Gcc45DPOpt/options] Error 1
/Users/xxxxxx/Software/OpenFOAM_2.0.0/OF-Org-2.0/OpenFOAM-2.0.0/wmake/MakefileFiles:40: darwinIntel64Gcc45DPOpt/options: No such file or directory
make: *** No rule to make target `darwinIntel64Gcc45DPOpt/options'. Stop.
wmake error: file 'Make/darwinIntel64Gcc45DPOpt/objectFiles' could not be created in //OpenFOAM/xxxxxx-2.0.0/localFoamToTecplot360-of20/foamToTecplot360

Could you help me, please?
ofslcm is offline   Reply With Quote

Old   December 3, 2012, 17:17
Default
  #50
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi solOF,

Did you do any modifications to the file "Allwmake"? The command I placed in Allwmake is:
Code:
wmake libso tecio/tecsrc/ ../../tecioMake/
And not the one you got:
Code:
wmake libso tecio/tecsrc/tecioMake/
If you did that modification, then it's not correct . The correct modification would be for you to:
  1. Create the folder "tecio/tecsrc/Make".
  2. Copy the contents of the folder "tecioMake" into that new folder.
  3. Then run:
    Code:
    wmake libso tecio/tecsrc




edit: Additionally, all of those "permission denied" messages indicate that for some strange reason, you're unable to create files inside the folder "localFoamToTecplot360-of20".



Best regards,
Bruno

Last edited by wyldckat; December 3, 2012 at 17:19. Reason: see "edit:"
wyldckat is offline   Reply With Quote

Old   December 3, 2012, 21:30
Default
  #51
New Member
 
Hyung Min Kim
Join Date: Mar 2011
Posts: 5
Rep Power: 6
pius is on a distinguished road
Why don't you check you have "files", "options" and "tecioOptions" files in "tecsrc/Make" folder.

"files" contains such as shown below

alloc.cpp
arrlist.cpp
auxdata.cpp
dataio4.cpp
dataio.cpp
dataset0.cpp
dataset.cpp
datautil.cpp
filestream.cpp
geom2.cpp
q_msg.cpp
q_unicode.cpp
set.cpp
strlist.cpp
strutil.cpp
tassert.cpp
tecxxx.cpp
TranslatedString.cpp
LIB = $(FOAM_EXT_LIBBIN)/libtecio

"options" file contains such as
/* NOTE: make any changes to this file in etc/wmakeFiles/ */
#include "tecioOptions"
EXE_INC = \
$(TECIO_FLAGS) $(TECIO_INC)
LIB_LIBS = \
$(TECIO_LIBS)
pius is offline   Reply With Quote

Old   January 15, 2013, 06:49
Default
  #52
New Member
 
solOF
Join Date: Mar 2012
Posts: 26
Rep Power: 5
ofslcm is on a distinguished road
Hi, I am still having this problem when I compile. Could yo help me please?


+ ./getTecIO

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

Press Enter to continue...

+ wmake libso tecio/tecsrc/tecioMake/
Making dependency list for source file geom2.cpp
could not open file C__BASE.h for source file geom2.cpp
Making dependency list for source file filestream.cpp
could not open file C__BASE.h for source file filestream.cpp
Making dependency list for source file datautil.cpp
could not open file C__BASE.h for source file datautil.cpp
Making dependency list for source file dataset.cpp
could not open file C__BASE.h for source file dataset.cpp
Making dependency list for source file dataset0.cpp
could not open file C__BASE.h for source file dataset0.cpp
Making dependency list for source file dataio.cpp
could not open file C__BASE.h for source file dataio.cpp
Making dependency list for source file dataio4.cpp
could not open file C__BASE.h for source file dataio4.cpp
Making dependency list for source file auxdata.cpp
could not open file C__BASE.h for source file auxdata.cpp
Making dependency list for source file arrlist.cpp
could not open file C__BASE.h for source file arrlist.cpp
Making dependency list for source file alloc.cpp
could not open file C__BASE.h for source file alloc.cpp
SOURCE=alloc.cpp ; g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IlnInclude -I. -I/Users/XXX/Software/OpenFOAM_2.0.0/OF-Org-2.0/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/Users/XXX/Software/OpenFOAM_2.0.0/OF-Org-2.0/OpenFOAM-2.0.0/src/OSspecific/POSIX/tecioMake//darwinIntel64Gcc45DPOpt/alloc.o
In file included from alloc.cpp:40:0:
GLOBAL.h:5038:46: warning: use of old-style cast
GLOBAL.h:5057:41: warning: use of old-style cast
GLOBAL.h:5071:47: warning: use of old-style cast
GLOBAL.h:5085:47: warning: use of old-style cast
In file included from alloc.cpp:41:0:
ALLOC.h: In function 'void nonExceptionDelete(T*&)':
ALLOC.h:175:22: warning: use of old-style cast
ALLOC.h:175:22: warning: use of old-style cast
SOURCE=arrlist.cpp ; g++-mp-4.5 -m64 -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2 -DNoRepository -ftemplate-depth-100 -IlnInclude -I. -I/Users/XXX/Software/OpenFOAM_2.0.0/OF-Org-2.0/OpenFOAM-2.0.0/src/OpenFOAM/lnInclude -I/Users/XXX/Software/OpenFOAM_2.0.0/OF-Org-2.0/OpenFOAM-2.0.0/src/OSspecific/POSIX/tecioMake//darwinIntel64Gcc45DPOpt/arrlist.o
In file included from arrlist.cpp:40:0:
GLOBAL.h:5038:46: warning: use of old-style cast
GLOBAL.h:5057:41: warning: use of old-style cast
GLOBAL.h:5071:47: warning: use of old-style cast
GLOBAL.h:5085:47: warning: use of old-style cast
In file included from arrlist.cpp:42:0:
ALLOC.h: In function 'void nonExceptionDelete(T*&)':
ALLOC.h:175:22: warning: use of old-style cast
ALLOC.h:175:22: warning: use of old-style cast
arrlist.cpp: In function 'void CopyArrayItems(char*, LgIndex_t, char*, LgIndex_t, LgIndex_t, SmInteger_t)':
arrlist.cpp:103:5: error: 'VALID_REF' was not declared in this scope
arrlist.cpp:109:5: warning: use of old-style cast
arrlist.cpp:113:44: warning: use of old-style cast
arrlist.cpp: In function 'SmInteger_t GetElementSize(ArrayListType_e)':
arrlist.cpp:186:55: warning: use of old-style cast
arrlist.cpp:189:56: warning: use of old-style cast
arrlist.cpp:192:54: warning: use of old-style cast
arrlist.cpp:195:55: warning: use of old-style cast
arrlist.cpp:198:49: warning: use of old-style cast
arrlist.cpp:201:46: warning: use of old-style cast
arrlist.cpp:204:47: warning: use of old-style cast
arrlist.cpp:207:45: warning: use of old-style cast
arrlist.cpp:210:46: warning: use of old-style cast
arrlist.cpp:213:47: warning: use of old-style cast
arrlist.cpp:216:48: warning: use of old-style cast
arrlist.cpp:219:51: warning: use of old-style cast
arrlist.cpp:222:52: warning: use of old-style cast
arrlist.cpp:225:53: warning: use of old-style cast
arrlist.cpp:228:51: warning: use of old-style cast
arrlist.cpp:231:52: warning: use of old-style cast
arrlist.cpp:235:57: warning: use of old-style cast
arrlist.cpp:238:58: warning: use of old-style cast
arrlist.cpp:241:56: warning: use of old-style cast
arrlist.cpp:244:57: warning: use of old-style cast
arrlist.cpp:247:51: warning: use of old-style cast
arrlist.cpp:250:48: warning: use of old-style cast
arrlist.cpp:253:49: warning: use of old-style cast
arrlist.cpp:256:47: warning: use of old-style cast
arrlist.cpp:259:48: warning: use of old-style cast
arrlist.cpp:262:49: warning: use of old-style cast
arrlist.cpp:265:50: warning: use of old-style cast
arrlist.cpp:268:53: warning: use of old-style cast
arrlist.cpp:271:54: warning: use of old-style cast
arrlist.cpp:274:55: warning: use of old-style cast
arrlist.cpp:277:53: warning: use of old-style cast
arrlist.cpp:280:54: warning: use of old-style cast
arrlist.cpp:284:48: warning: use of old-style cast
arrlist.cpp:287:52: warning: use of old-style cast
arrlist.cpp:290:57: warning: use of old-style cast
arrlist.cpp:295:13: warning: use of old-style cast
arrlist.cpp:299:5: warning: use of old-style cast
arrlist.cpp: In function 'void DestroyItems(_ArrayList_s*, LgIndex_t, SmInteger_t, LgIndex_t, Boolean_t (*)(void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:332:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp:340:84: warning: use of old-style cast
arrlist.cpp: In function 'Boolean_t DuplicateItems(char*, LgIndex_t, char*, LgIndex_t, SmInteger_t, LgIndex_t, Boolean_t (*)(void*, void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:382:22: warning: use of old-style cast
arrlist.cpp:385:5: error: 'VALID_REF' was not declared in this scope
arrlist.cpp:389:5: warning: use of old-style cast
arrlist.cpp:392:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp:400:69: warning: use of old-style cast
arrlist.cpp:401:69: warning: use of old-style cast
arrlist.cpp:405:5: warning: use of old-style cast
arrlist.cpp:405:5: warning: use of old-style cast
arrlist.cpp: In function 'Boolean_t ArrayListIsValid(_ArrayList_s*)':
arrlist.cpp:426:35: error: 'VALID_REF' was not declared in this scope
arrlist.cpp:429:75: warning: use of old-style cast
arrlist.cpp:433:5: warning: use of old-style cast
arrlist.cpp:433:5: warning: use of old-style cast
arrlist.cpp: In function 'Boolean_t ArrayListEnlargeCapacity(_ArrayList_s*, LgIndex_t)':
arrlist.cpp:540:16: warning: use of old-style cast
arrlist.cpp:544:5: warning: use of old-style cast
arrlist.cpp:544:5: warning: use of old-style cast
arrlist.cpp: In function '_ArrayList_s* ArrayListAlloc(LgIndex_t, ArrayListType_e, LgIndex_t (*)(_ArrayList_s*, LgIndex_t, LgIndex_t, ArbParam_t), ArbParam_t)':
arrlist.cpp:587:35: warning: use of old-style cast
arrlist.cpp: In function 'void ArrayListDealloc(_ArrayList_s**, Boolean_t (*)(void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:627:5: error: 'VALID_REF' was not declared in this scope
arrlist.cpp:629:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp: In function 'void ArrayListDeleteAllItems(_ArrayList_s*, Boolean_t (*)(void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:691:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp: In function 'void ArrayListDeleteItems(_ArrayList_s*, LgIndex_t, LgIndex_t, Boolean_t (*)(void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:737:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp: In function 'void ArrayListDeleteItem(_ArrayList_s*, LgIndex_t, Boolean_t (*)(void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:787:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp: In function 'ArrayListItem_u ArrayListRemoveItem(_ArrayList_s*, LgIndex_t)':
arrlist.cpp:855:29: warning: use of old-style cast
arrlist.cpp: In function 'Boolean_t ArrayListInsert(_ArrayList_s*, LgIndex_t, _ArrayList_s*)':
arrlist.cpp:886:22: warning: use of old-style cast
arrlist.cpp:937:5: warning: use of old-style cast
arrlist.cpp:937:5: warning: use of old-style cast
arrlist.cpp: In function 'Boolean_t ArrayListInsertItem(_ArrayList_s*, LgIndex_t, ArrayListItem_u)':
arrlist.cpp:963:22: warning: use of old-style cast
arrlist.cpp:1001:33: warning: use of old-style cast
arrlist.cpp:1006:5: warning: use of old-style cast
arrlist.cpp:1006:5: warning: use of old-style cast
arrlist.cpp: In function 'Boolean_t ArrayListVisitItems(_ArrayList_s*, LgIndex_t, LgIndex_t, Boolean_t (*)(void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:1035:30: warning: use of old-style cast
arrlist.cpp:1041:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp:1044:34: warning: use of old-style cast
arrlist.cpp:1051:71: warning: use of old-style cast
arrlist.cpp:1057:5: warning: use of old-style cast
arrlist.cpp:1057:5: warning: use of old-style cast
arrlist.cpp: In function 'ArrayListItem_u ArrayListGetItem(_ArrayList_s*, LgIndex_t)':
arrlist.cpp:1125:29: warning: use of old-style cast
arrlist.cpp: In function 'const void* ArrayListGetItemInternalRef_FUNC(_ArrayList_s*, LgIndex_t)':
arrlist.cpp:1159:26: warning: use of old-style cast
arrlist.cpp:1160:5: error: 'VALID_REF' was not declared in this scope
arrlist.cpp: In function 'Boolean_t ArrayListSetItem(_ArrayList_s*, LgIndex_t, ArrayListItem_u, Boolean_t (*)(void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:1193:22: warning: use of old-style cast
arrlist.cpp:1197:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp:1215:33: warning: use of old-style cast
arrlist.cpp:1220:5: warning: use of old-style cast
arrlist.cpp:1220:5: warning: use of old-style cast
arrlist.cpp: In function 'Boolean_t ArrayListAppendItem(_ArrayList_s*, ArrayListItem_u)':
arrlist.cpp:1248:5: warning: use of old-style cast
arrlist.cpp:1248:5: warning: use of old-style cast
arrlist.cpp: In function 'Boolean_t ArrayListAppend(_ArrayList_s*, _ArrayList_s*)':
arrlist.cpp:1279:5: warning: use of old-style cast
arrlist.cpp:1279:5: warning: use of old-style cast
arrlist.cpp: In function '_ArrayList_s* ArrayListCopy(_ArrayList_s*, Boolean_t (*)(void*, void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:1307:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp:1314:26: warning: use of old-style cast
arrlist.cpp: In function 'void* ArrayListToArray(_ArrayList_s*, Boolean_t (*)(void*, void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:1366:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp:1369:26: warning: use of old-style cast
arrlist.cpp:1376:26: warning: use of old-style cast
arrlist.cpp:1379:42: warning: use of old-style cast
arrlist.cpp:1385:36: warning: use of old-style cast
arrlist.cpp:1392:33: warning: use of old-style cast
arrlist.cpp:1397:5: error: 'VALID_REF' was not declared in this scope
arrlist.cpp: In function '_ArrayList_s* ArrayListFromArray(void*, LgIndex_t, ArrayListType_e, Boolean_t (*)(void*, void*, ArbParam_t), ArbParam_t)':
arrlist.cpp:1432:5: error: 'VALID_REF' was not declared in this scope
arrlist.cpp:1435:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp:1440:26: warning: use of old-style cast
arrlist.cpp:1444:42: warning: use of old-style cast
arrlist.cpp:1450:36: warning: use of old-style cast
arrlist.cpp: In function 'int QSortCompareItemsAdapter(const void*, const void*)':
arrlist.cpp:1507:29: warning: use of old-style cast
arrlist.cpp:1508:28: warning: use of old-style cast
arrlist.cpp:1510:29: warning: use of old-style cast
arrlist.cpp:1511:28: warning: use of old-style cast
arrlist.cpp: In function 'void ArrayListQSort(_ArrayList_s*, int (*)(ArrayListItem_u, ArrayListItem_u, ArbParam_t), ArbParam_t)':
arrlist.cpp:1555:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp: In function 'Boolean_t ArrayListBSearch(_ArrayList_s*, ArrayListItem_u, int (*)(ArrayListItem_u, ArrayListItem_u, ArbParam_t), ArbParam_t, LgIndex_t*)':
arrlist.cpp:1608:5: error: 'VALID_FN_REF' was not declared in this scope
arrlist.cpp:1609:5: error: 'VALID_REF' was not declared in this scope
arrlist.cpp:1615:23: warning: use of old-style cast
arrlist.cpp:1627:21: warning: use of old-style cast
arrlist.cpp:1640:5: warning: use of old-style cast
arrlist.cpp:1640:5: warning: use of old-style cast
arrlist.cpp: In function 'const void* ArrayListGetInternalRef_FUNC(_ArrayList_s*)':
arrlist.cpp:1667:26: warning: use of old-style cast
arrlist.cpp:1668:5: error: 'VALID_REF' was not declared in this scope
In file included from arrlist.cpp:42:0:
ALLOC.h: In function 'T* nonExceptionNew(size_t) [with T = char, size_t = long unsigned int]':
arrlist.cpp:500:29: instantiated from here
ALLOC.h:140:5: error: 'VALID_REF' was not declared in this scope
ALLOC.h: In function 'T* nonExceptionNew(size_t) [with T = _ArrayList_s, size_t = long unsigned int]':
arrlist.cpp:579:14: instantiated from here
ALLOC.h:140:5: error: 'VALID_REF' was not declared in this scope
make: *** [../../tecioMake//darwinIntel64Gcc45DPOpt/arrlist.o] Error 1
+ wmake foamToTecplot360
make: *** No rule to make target `/Users/xxxx/OpenFoam/xxxx-2.0.0/localFoamToTecplot360-of20/tecio/tecsrc/lnInclude/face.H', needed by `foamToTecplot360.dep'. Stop.
ofslcm is offline   Reply With Quote

Old   January 19, 2013, 17:38
Default
  #53
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi ofslcm,

Looks like you're not following my instructions properly. And something very strange is happening, because the paths similar to this one:
Quote:
Originally Posted by ofslcm View Post
/Users/XXX/Software/OpenFOAM_2.0.0/OF-Org-2.0/OpenFOAM-2.0.0/src/OSspecific/POSIX/tecioMake//darwinIntel64Gcc45DPOpt/arrlist.o
do not make any sense. Either you replaced text and removed stuff that shouldn't have been removed, or... I simply don't know what's wrong

Either properly follow the instructions from here: https://github.com/wyldckat/localFoa...t360/tree/of20 - or at least ask what you're not understanding!

And please wrap this type of code like this:
HTML Code:
[CODE]
your code or output goes into here
[/CODE]
Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   February 4, 2013, 13:43
Default
  #54
Member
 
R. P.
Join Date: Jul 2010
Location: Brazil
Posts: 63
Rep Power: 6
Rophys is on a distinguished road
Hi all,

Just a question. Is it possible to convert a tecPlot mesh to an OpenFOAM mesh?
How can I do this ?

Cheers.
Rophys is offline   Reply With Quote

Old   March 8, 2013, 12:13
Default
  #55
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 7
nik is on a distinguished road
Hi,

I am trying to install foamToTecplot360 on my Mac (Mountain Lion 10.8.2). I am using OpenFOAM 2.1.1, and I followed the instructions available here https://github.com/wyldckat/localFoamToTecplot360.

However, I get the following Error.

Code:
g++-4.6 -m64 -fsignaling-nans  -ftrapping-math -DdarwinIntel64 -DWM_DP -Wall -Wextra -Wno-unused-parameter -Wold-style-cast -Wnon-virtual-dtor -O2  -DNoRepository -ftemplate-depth-100 -I/Volumes/OpenFOAM-v2.1/nicolas-2.1.1/localFoamToTecplot360/tecio/tecsrc/lnInclude -I/Users/nicolas/OpenFOAM/OpenFOAM-2.1.1/src/lagrangian/basic/lnInclude -I/Users/nicolas/OpenFOAM/OpenFOAM-2.1.1/src/finiteVolume/lnInclude -I/Users/nicolas/OpenFOAM/OpenFOAM-2.1.1/src/meshTools/lnInclude -IlnInclude -I. -I/Users/nicolas/OpenFOAM/OpenFOAM-2.1.1/src/OpenFOAM/lnInclude -I/Users/nicolas/OpenFOAM/OpenFOAM-2.1.1/src/OSspecific/POSIX/lnInclude   -fPIC -Ddarwin -lpthread -L/Users/nicolas/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib/openmpi-1.5.3 -lPstream Make/darwinIntel64Gcc46DPOpt/tecplotWriter.o Make/darwinIntel64Gcc46DPOpt/vtkMesh.o Make/darwinIntel64Gcc46DPOpt/foamToTecplot360.o -L/Users/nicolas/OpenFOAM/OpenFOAM-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib \
       -llagrangian -lfiniteVolume -lgenericPatchFields -lmeshTools -L/Users/nicolas/OpenFOAM/nicolas-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib -ltecio -lOpenFOAM -ldl   -lpthread -lm -o /Users/nicolas/OpenFOAM/nicolas-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/foamToTecplot360
ld: warning: directory not found for option '-L/Users/nicolas/OpenFOAM/nicolas-2.1.1/platforms/darwinIntel64Gcc46DPOpt/lib'
ld: library not found for -ltecio
collect2: ld returned 1 exit status
make: *** [/Users/nicolas/OpenFOAM/nicolas-2.1.1/platforms/darwinIntel64Gcc46DPOpt/bin/foamToTecplot360] Error 1
I also attached the resulting log file from ./Allwmake.

Any help would be really appreciated.

Thanks
Nicolas
Attached Files
File Type: gz makeFoamToTec360.log.tar.gz (13.0 KB, 4 views)
nik is offline   Reply With Quote

Old   March 8, 2013, 19:08
Default
  #56
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Nicolas,

OK, with this output I can work with!
Please do the following steps:
  1. Edit the file "tecioMake/tecioOptions".
  2. Find this line:
    Code:
    #elif defined(darwin)
    and replace it with this one:
    Code:
    #elif defined(darwin) || defined(DARWIN)
  3. Save and close the file.
  4. Run Allwmake in "localFoamToTecplot360" once again.
  5. If it still doesn't work, edit the file once again and replace the previous line with this one:
    Code:
    #elif defined(darwin) || defined(DARWIN) || defined(__MACOSX__) || defined(__APPLE__)
    Save and try again.
Do let me know which one works for you, so that I can update the repository!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 9, 2013, 10:29
Default
  #57
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 7
nik is on a distinguished road
Dear Bruno,

thank you very much for your reply. However, I tried both options and none of them worked. They produce different errors. I didn't notice before the first error that occures.

First Error produced with first option:
Code:
...
dataio.cpp:413:45: warning: use of old-style cast [-Wold-style-cast]
dataio.cpp:432:39: warning: use of old-style cast [-Wold-style-cast]
make: *** [../../tecioMake//darwinIntel64Gcc46DPOpt/dataset.o] Error 1
make: *** Waiting for unfinished jobs....
dataio.cpp:441:44: warning: use of old-style cast [-Wold-style-cast]
...
First error with second option:
Code:
...
In file included from datautil.cpp:25:0:
MASTER.h:527:31: fatal error: X11/Intrinsic.h: No such file or directory
compilation terminated.
make: *** [../../tecioMake//darwinIntel64Gcc46DPOpt/alloc.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [../../tecioMake//darwinIntel64Gcc46DPOpt/dataio4.o] Error 1
make: *** [../../tecioMake//darwinIntel64Gcc46DPOpt/dataset0.o] Error 1
make: *** [../../tecioMake//darwinIntel64Gcc46DPOpt/auxdata.o] Error 1
make: *** [../../tecioMake//darwinIntel64Gcc46DPOpt/dataio.o] Error 1
make: *** [../../tecioMake//darwinIntel64Gcc46DPOpt/datautil.o] Error 1
...
I have attached the output files of "./Allwmake" from each option.

Regards,
Nicolas
Attached Files
File Type: gz makeOption1.log.tar.gz (11.8 KB, 1 views)
File Type: gz makeOption2.log.tar.gz (2.1 KB, 1 views)
nik is offline   Reply With Quote

Old   March 9, 2013, 18:12
Default
  #58
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Nicolas,

The second modification got us closer to the solution. In the line below that one, you'll find this:
Code:
TECIO_FLAGS = -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEENUM -DTHREED -U_WIN32 -DLONGIS64 -DDARWIN
Add to the end of it the entry "-DENGINE":
Code:
TECIO_FLAGS = -DMAKEARCHIVE -DLINUX -DLINUX64 -DUSEENUM -DTHREED -U_WIN32 -DLONGIS64 -DDARWIN -DENGINE
and try again!

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 10, 2013, 03:02
Default
  #59
nik
New Member
 
nicolas
Join Date: Oct 2009
Posts: 24
Rep Power: 7
nik is on a distinguished road
Hi Bruno,

This time it worked!!! I really appreciate your help. Thank you again very much.

I have attached the tecioMake/tecioOptions file that worked.

Best regards,
Nicolas
Attached Files
File Type: gz tecioOptions.tar.gz (373 Bytes, 8 views)
nik is offline   Reply With Quote

Old   March 10, 2013, 07:31
Default
  #60
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,258
Blog Entries: 34
Rep Power: 84
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Nicolas,

You're welcome and thank you for the feedback! I've updated the git repository: https://github.com/wyldckat/localFoamToTecplot360

If it weren't for you Nicolas, this would probably stay like as it was for a few more months or even years

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

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:56.