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

DxFoam reader update

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 17, 2008, 09:30
Default you are wasting your time: to
  #61
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
you are wasting your time: to get this to work, you have to compile dx yourself with --enable-shared option
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 17, 2008, 14:03
Default Hi Hrvoje My question can b
  #62
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Hrvoje

My question can be a noobish one, but here it is...:

I extracted dx...tar.gz

inside dx folder i typed

alex@iskandhar:~/Desktop/dx-4.4.4$ ./configure --prefix=/home/alex/Desktop/dx --enable-shared

the final lines of the configure process are...

checking lex output file root... configure: error: cannot find output from :; giving up

What can i do here?

Thanks in advance

Alex
alexandrepereira is offline   Reply With Quote

Old   April 17, 2008, 18:53
Default Hi again, Just one more que
  #63
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi again,

Just one more question...

In case i do not get dx to work with OpenFOAM, what post processor would you advise me to use? Ensight or FieldView?

meaning which one is more robust in large/huge datasets (in the Gigs range ) ?

I'd really prefer to use Dx since it is more customizable, or Paraview, but paraview is not stable on large datasets, and i cannot get dx to work...

Alex
alexandrepereira is offline   Reply With Quote

Old   April 18, 2008, 01:37
Default Hi Alexandre, As Hrv said, th
  #64
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Alexandre,
As Hrv said, the best way is to compile OpenDX yourself.
However, you said that you were able to start dxFoam. So why don't you use it?
dxFoam simple
The above line will load the first case found in your current directory (check this thread for some more informations on postFoam.net and simple.net or send me an e-mail).

Dragos
dmoroian is offline   Reply With Quote

Old   April 18, 2008, 04:36
Default Hello Alex, Have a look at
  #65
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
Hello Alex,

Have a look at the end of your configure.log file. You are probably missing some tools (eg. flex) or some header files (eg. openmotif.devel, providing Xm.h). This is why your configure failed - the log file will tell you PRECISELY what happened.

Once you install all the missing tools and headers on your computer, ./configure will run smoothly... and you are half way there.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 18, 2008, 07:41
Default Dragos: Effectivly i can st
  #66
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Dragos:

Effectivly i can start dxFoam :

root@iskandhar:~/OpenFOAM/root-1.4.1-dev/run# dxFoam postFoam
Checking path to dx ...
Checking path to dxFoamExec executable ...
Starting dx with dxFoamExec executable ...
Starting DX user interface

But when i try to open a case in my ...root-1.4.1-dev/run directory, clicking "go" in the case selection panel openDx states that the connection to the server is broken... trying with simple.net yelds the same result...

I have quit openDx, if i try again in the shell

$dxFoam simple

Dx User inter face wont even load the case panel selection and will hang...

Thanx Dragos

Alex

Hrv : I will try again this afternoon to get dx compiled in my computer...

Just tell me, does OpenDX has the same querying capabilities ( to obtain values at points lines or
planes ) that Paraview, and to a greater extent Ensight has, or Fieldview? In case i should need some kind of full featured post Proc tool what would you advise me to use...?

Thanks for your time

Alex
alexandrepereira is offline   Reply With Quote

Old   April 19, 2008, 17:42
Default Hi Hrv, I followed your su
  #67
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Hrv,

I followed your suggestion... i installed flex package and ./configure --prefix=/home/alex/Desktop/dx --enable-shared proceeded like a charm...

Thing is that make aborted prematurely before compilation of all dx package programs...

the error message is...

creating libLIBDX.la
(cd .libs && rm -f libLIBDX.la && ln -s ../libLIBDX.la libLIBDX.la)
sh ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -D_GNU_SOURCE -c -o callm_xinit.lo callm_xinit.c
gcc -DHAVE_CONFIG_H -I. -I. -I../../../include -I../../../include -Dlinux -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -D_GNU_SOURCE -c callm_xinit.c -fPIC -DPIC -o .libs/callm_xinit.o
callm_xinit.c:18:19: error: Xm/Xm.h: No such file or directory
callm_xinit.c:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'appcontext'
callm_xinit.c:27: error: expected ')' before 'app'
callm_xinit.c:35: error: expected specifier-qualifier-list before 'XtPointer'
callm_xinit.c:40: error: expected '=', ',', ';', 'asm' or '__attribute__' before '_rihProc'
callm_xinit.c: In function '_dxf_RegisterInputHandlerX':
callm_xinit.c:51: error: 'MyEvent' has no member named 'func'
callm_xinit.c:52: error: 'MyEvent' has no member named 'data'
callm_xinit.c:52: error: 'XtPointer' undeclared (first use in this function)
callm_xinit.c:52: error: (Each undeclared identifier is reported only once
callm_xinit.c:52: error: for each function it appears in.)
callm_xinit.c:52: error: expected ';' before 'arg'
callm_xinit.c:54: error: 'appcontext' undeclared (first use in this function)
callm_xinit.c:54: error: expected ')' before 'XtInputReadMask'
make[4]: *** [callm_xinit.lo] Error 1
make[4]: Leaving directory `/home/alex/Desktop/dx-4.4.4/src/exec/libdx'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/alex/Desktop/dx-4.4.4/src/exec/libdx'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alex/Desktop/dx-4.4.4/src/exec'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/alex/Desktop/dx-4.4.4/src'
make: *** [all-recursive] Error 1

... if i wasn't such a noob in c, and linux, i would find the quirk myself...

...but i do not yet dominate gcc so as to understnd what the heck is happening here... :-(

Alex
alexandrepereira is offline   Reply With Quote

Old   April 20, 2008, 03:10
Default This is your error: callm_x
  #68
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
This is your error:

callm_xinit.c:18:19: error: Xm/Xm.h: No such file or directory

For me, the file lives in:

/usr/include/Xm/Xm.h

and is provided by the package:

wooster*151-> rpm -q --whatprovides /usr/include/Xm/Xm.h
openmotif-devel-2.3.0-23


Install the package, remove the complete build directory and try again.

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   April 23, 2008, 15:40
Default Hi again Hrv I Installed le
  #69
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi again Hrv

I Installed lesstif-dev package from Ubuntu Repo... and that error no longer exists...

now make complaints like this...:

memory.c:69:23: error: linux/sys.h: No such file or directory
make[4]: *** [memory.lo] Error 1
make[4]: Leaving directory `/home/alex/Desktop/dx-4.4.4/src/exec/libdx'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/alex/Desktop/dx-4.4.4/src/exec/libdx'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/alex/Desktop/dx-4.4.4/src/exec'

Maybe it's a noobish thing, but i don't know how to proceed...

Thanks in advance..

Alex
alexandrepereira is offline   Reply With Quote

Old   April 24, 2008, 01:24
Default Hi Alex, In my experience wit
  #70
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Alex,
In my experience with OpenDX, replacing motif with lesstif is a bad choice. It will compile and it will work too, but not very well.
Now on your error: usually sys.h comes with the kernel sources. Try to install them.

Dragos
dmoroian 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
Chemkin reader stefanke OpenFOAM Pre-Processing 28 March 8, 2022 10:16
A reader for cavityOpenFOAM alex OpenFOAM Running, Solving & CFD 11 April 2, 2009 09:57
DxFoam postFoam on mac bigphil OpenFOAM Post-Processing 0 March 13, 2009 06:09
DxFoam crash outputting gif mike_jaworski OpenFOAM Post-Processing 3 January 2, 2008 05:55
[OpenFOAM] Reader should I visualize t%3d0 tj22 ParaView 1 June 30, 2006 10:16


All times are GMT -4. The time now is 20:36.