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   January 31, 2008, 07:43
Default Hello everybody! If you like
  #41
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hello everybody!
If you like fancy legends in your graphics, text with the full power of latex, then you have to give a try to Hrv's dxFoam reader together with some extra macros from dxfontutils. If you don't manage to install the dxfontutils, check this post: install dxfontutils

I hope you will like it!
Dragos
dmoroian is offline   Reply With Quote

Old   January 31, 2008, 14:55
Default Hello! I finished building
  #42
New Member
 
George McGregor
Join Date: Mar 2009
Location: Research Triangle Park, North Carolina, USA
Posts: 5
Rep Power: 17
gmcgregor is on a distinguished road
Hello!

I finished building OpenFOAM on our 64 bit altix system and I would like to visualize the results of the icoFoam example described in the README file. ParaView doesn't work, so I'd like to try OpenDX. Is there a way to enable the dx output features in OpenFOAM or do I need to use dxFoamExec?

Thanks!

George
gmcgregor is offline   Reply With Quote

Old   January 31, 2008, 16:32
Default 1.4.1-dev comes with a dx read
  #43
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
1.4.1-dev comes with a dx reader module:

See: http://openfoam-extend.svn.sourcefor...trunk/Core/Ope nFOAM-1.4.1-dev/applications/utilities/postProcessing/graphics/dxFoamExec/

Enjoy,

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

Old   February 1, 2008, 02:14
Default You have to use dxFoam if you
  #44
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
You have to use dxFoam if you want to see the results in OpenDX. In other words, there is no "foamToDX" written yet.
dmoroian is offline   Reply With Quote

Old   February 1, 2008, 09:00
Default Thanks! Two problems remain
  #45
New Member
 
George McGregor
Join Date: Mar 2009
Location: Research Triangle Park, North Carolina, USA
Posts: 5
Rep Power: 17
gmcgregor is on a distinguished road
Thanks!

Two problems remain:

1) Where would I find dxFoam?

2) I assume I must put dxFoamExec in OpenFOAM-1.4.1/applications/utilities/postProcessing/graphics/
and then try and build it from there. Is this correct?

Thanks,
George
gmcgregor is offline   Reply With Quote

Old   February 1, 2008, 11:34
Default dxFoam is included in the deve
  #46
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
dxFoam is included in the development version of OpenFOAM.
dmoroian is offline   Reply With Quote

Old   April 12, 2008, 18:45
Default Hi Dragos, I know that dxFo
  #47
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Dragos,

I know that dxFoam is included in OpenFOAM-1.4.1-dev, in fact, i have both OF 1.4.1, and OF 1.4.1-dev in my laptop, since, despite the fact that i can isnstall and run all the utilities of OF 1.4.1 including FoamX, the same does not apply to OF 1.4.1-dev : when i type FoamX& under a bash shell sourced with
.$HOME/OpenFOAM/OpenFOAM-1.4.1-dev/.OpenFOAM-1.4.1-dev/bashrc,
i get

Cannot find JDK at /usr/lib/jvm/java-1.5.0-sun. Please set JAVA_PATH to the
JDK installation directory.

And i have followed the same process of installation that i used with OF 1.4.1 :

/root/OpenFOAM will hold both ./OpenFOAM-1.4.1-dev and ./linux ;

./linux will hold ./dx-4.4.4, ./gcc-4.2.1, ./j2sdk1.4.2_05 and ./paraview-2.4.4.

Here is my foamInstallationTest

Executing /root/OpenFOAM/OpenFOAM-1.4.1-dev/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: iskandhar
OS: Linux version 2.6.22-14-generic
User: root
User_config: /root/.bashrc
Foam_config: /root/.OpenFOAM-1.4.1-dev/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /root/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /root/OpenFOAM/root-1.4.1-dev yes no
$FOAM_JOB_DIR /root/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /root/OpenFOAM/OpenFOAM-1.4.1-dev yes yes yes

$FOAM_USER_APPBIN ...1-dev/applications/bin/linuxGccDPOpt yes yes no
$FOAM_APPBIN ...1-dev/applications/bin/linuxGccDPOpt yes yes yes
$WM_DIR /root/OpenFOAM/OpenFOAM-1.4.1-dev/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /usr/lib/jvm/java-1.5.0-sun no no
$MICO_ARCH_PATH .../mico-2.3.12/platforms/linuxGccDPOpt yes yes yes
$LAM_ARCH_PATH ...rc/lam-7.1.2/platforms/linuxGccDPOpt yes yes yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OpenFOAM-1.4.1-dev/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...OAM/root-1.4.1-dev/lib/linuxGccDPOpt yes yes no
$LAM_ARCH_PATH ...rc/lam-7.1.2/platforms/linuxGccDPOpt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.3
WARNING: Conflicting installations:
foam settings: /root/OpenFOAM/linux/gcc-4.2.2/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.6.0_03
WARNING: Conflicting installations:
foam settings: /usr/lib/jvm/java-1.5.0-sun/bin/java
current path : /usr/bin/java

gzip 1.3.12 /bin/gzip
tar 1.3.12 /bin/tar
icoFoam ...nFOAM-1.4.1-dev/applications/bin/linuxGccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_iskandhar Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

I do not know why isn't JAVA_PATH correctly set, nor how can i solve it editing some of OF configuration files, i installed it the same way i did with OF-1.4.1, and -1.4.1 works fine...

My other problem is that i cannot put dxFoam to work, bash complaints that it cannot find dxFoamExec executable; so i

find /root/OpenFOAM/OpenFOAM-1.4.1-dev -name dxFoamExec

the results are :

/root/OpenFOAM/OpenFOAM-1.4.1-dev/applications/utilities/postProcessing/graphics /dxFoamExec

as expected, so
cd /root/OpenFOAM/OpenFOAM-1.4.1-dev/applications/utilities/postProcessing/graphics /dxFoamExec

wmake

It gives out all that gibberish of making and compiling and exits with an error, three last lines are:

/usr/bin/ld: cannot find -lssp
collect2: ld returned 1 exit status
make: *** [/root/OpenFOAM/OpenFOAM-1.4.1-dev/applications/bin/linuxGccDPOpt/dxFoamExec] Error 1

I do not know what else to do to get OpenDx working with OpenFOAM... since there are problems with ParaView with huge datasets, one of them is the streamlines issue, they get broken...

BTW, I use Ubuntu 7.10, and added dx from the repositories, is there any way I could use the version that I have installed in Ubuntu, since i do not know how to use/configure the one that i have installed in /root/OpenFOAM/linux...?

Is there any tweak that i can use to :

1) get FoamX to work under OF 1.4.1-dev ?
2) wmake dxFoamExec so that i can use it in PostProcessing ?

3) if none of this works, get dx from Ubuntu repositories to work with OF...?

Thanks in advance

Alex
alexandrepereira is offline   Reply With Quote

Old   April 13, 2008, 11:38
Default Hi Alexandre, First it seems
  #48
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Alexandre,
First it seems there is a problem with your java installation path:
$JAVA_PATH /usr/lib/jvm/java-1.5.0-sun no no
then there is also an error with your gcc path:
gcc 4.1.3
WARNING: Conflicting installations:
foam settings: /root/OpenFOAM/linux/gcc-4.2.2/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

So first fix these two, and then you can worry about dx.
Check if you have java in the requested path (if no make it so). The same goes for gcc.
I don't know if ubuntu comes with the libraries for dx. If it does you will have to tell that to OpenFOAM environment variables (check the value of $DXROOT). Otherwise you will have to download, compile and use dx-4.4.4.

Dragos
dmoroian is offline   Reply With Quote

Old   April 13, 2008, 15:32
Default Hi Dragos, Thx for your fa
  #49
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Dragos,

Thx for your fast answer, my default .bashrc sources the OF-1.4.1 version since this one is the one that i can work with.

the foamInstallationTest of this one is as follows...:

Executing /root/OpenFOAM/OpenFOAM-1.4.1/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: iskandhar
OS: Linux version 2.6.22-14-generic
User: root
User_config: /root/.bashrc
Foam_config: /root/.OpenFOAM-1.4.1/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /root/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /root/OpenFOAM/root-1.4.1 yes no
$FOAM_JOB_DIR /root/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /root/OpenFOAM/OpenFOAM-1.4.1 yes yes yes

$FOAM_USER_APPBIN ...1.4.1/applications/bin/linuxGccDPOpt yes yes no
$FOAM_APPBIN ...1.4.1/applications/bin/linuxGccDPOpt yes yes yes
$WM_DIR /root/OpenFOAM/OpenFOAM-1.4.1/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /root/OpenFOAM/linux/j2sdk1.4.2_05 yes yes no
$MICO_ARCH_PATH .../mico-2.3.12/platforms/linuxGccDPOpt yes yes yes
$LAM_ARCH_PATH --------- env variable not set --------- yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OAM/OpenFOAM-1.4.1/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...penFOAM/root-1.4.1/lib/linuxGccDPOpt yes yes no
$LAM_ARCH_PATH --------- env variable not set --------- yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.2.1 /root/OpenFOAM/linux/gcc-4.2.1/bin/gcc
java 1.4.2_05 /root/OpenFOAM/linux/j2sdk1.4.2_05/bin/java
gzip 1.3.12 /bin/gzip
tar 1.3.12 /bin/tar
icoFoam .../OpenFOAM-1.4.1/applications/bin/linuxGccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_iskandhar Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

Critical systems ok.

Following your advice, i sourced the OF-1.4.1-dev environment in a shell, and then i
export JAVA_PATH=/root/OpenFOAM/linux/j2sdk1.4.2_05
export gcc=/root/OpenFOAM/linux/gcc-4.2.1/bin/gcc

checked my OF-1.4.1-dev foamInstallationTest,

Executing /root/OpenFOAM/OpenFOAM-1.4.1-dev/bin/foamInstallationTest:


Checking basic setup...
-------------------------------------------------------------------------------
Shell: bash
Host: iskandhar
OS: Linux version 2.6.22-14-generic
User: root
User_config: /root/.bashrc
Foam_config: /root/.OpenFOAM-1.4.1-dev/bashrc sourced correctly.
-------------------------------------------------------------------------------


Checking main FOAM env variables...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Crit
-------------------------------------------------------------------------------
$WM_PROJECT_INST_DIR /root/OpenFOAM yes yes
$WM_PROJECT_USER_DIR /root/OpenFOAM/root-1.4.1-dev yes no
$FOAM_JOB_DIR /root/OpenFOAM/jobControl no yes
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$WM_PROJECT_DIR /root/OpenFOAM/OpenFOAM-1.4.1-dev yes yes yes

$FOAM_USER_APPBIN ...1-dev/applications/bin/linuxGccDPOpt yes yes no
$FOAM_APPBIN ...1-dev/applications/bin/linuxGccDPOpt yes yes yes
$WM_DIR /root/OpenFOAM/OpenFOAM-1.4.1-dev/wmake yes yes yes
$FOAMX_PATH ...ations/utilities/preProcessing/FoamX yes no yes
$CEI_HOME /usr/local/ensight/CEI no no

$JAVA_PATH /root/OpenFOAM/linux/j2sdk1.4.2_05 yes no no
$MICO_ARCH_PATH .../mico-2.3.12/platforms/linuxGccDPOpt yes yes yes
$LAM_ARCH_PATH ...rc/lam-7.1.2/platforms/linuxGccDPOpt yes yes yes
$MPICH_ARCH_PATH --------- env variable not set --------- no
-------------------------------------------------------------------------------


Checking the FOAM env variables set on the LD_LIBRARY_PATH...
-------------------------------------------------------------------------------
Environment_variable Set_to_file_or_directory Valid Path Crit
-------------------------------------------------------------------------------
$FOAM_LIBBIN ...OpenFOAM-1.4.1-dev/lib/linuxGccDPOpt yes yes yes
$FOAM_USER_LIBBIN ...OAM/root-1.4.1-dev/lib/linuxGccDPOpt yes yes no
$LAM_ARCH_PATH ...rc/lam-7.1.2/platforms/linuxGccDPOpt yes yes yes
-------------------------------------------------------------------------------


Software versions
-------------------------------------------------------------------------------
Software Version Location
-------------------------------------------------------------------------------
gcc 4.1.3
WARNING: Conflicting installations:
foam settings: /root/OpenFOAM/linux/gcc-4.2.2/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

java 1.6.0_03
WARNING: Conflicting installations:
foam settings: /usr/lib/jvm/java-1.5.0-sun/bin/java
current path : /usr/bin/java

gzip 1.3.12 /bin/gzip
tar 1.3.12 /bin/tar
icoFoam ...nFOAM-1.4.1-dev/applications/bin/linuxGccDPOpt/icoFoam
-------------------------------------------------------------------------------


Checking file/directory permissions...
-------------------------------------------------------------------------------
File/directory Set Reqd Crit
-------------------------------------------------------------------------------


Checking networking...
-------------------------------------------------------------------------------
Action Result Crit
-------------------------------------------------------------------------------
Pinging_iskandhar Successful yes
Pinging_localHost Successful yes
Test_rsh: Unsuccessful_connection_refused* yes
Test_ssh: Successful yes
(*) Only one of rsh or ssh is required by the Foam enviroment.

-------------------------------------------------------------------------------

Base configuration ok.

The foam installation contains 1 critical error(s).

Review the output for warning messages and consult
the installation guide for trouble shooting.

Strangelly, JAVA_PATH was actualized, but gcc was not,

gcc 4.1.3
WARNING: Conflicting installations:
foam settings: /root/OpenFOAM/linux/gcc-4.2.2/bin/gcc
current path : /usr/bin/gcc
CRITICAL ERROR

BTW, even after the actualization of my JAVA_PATH, i couldnt run FoamX :

root@iskandhar:~# FoamX
Starting NameServer with inet:iskandhar:1234 ...
Starting FoamX Host Browser with inet:iskandhar:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1-dev |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : Apr 13 2008
Time : 19:16:58
Host : iskandhar
PID : 10260
Root :
Case :
Nprocs : 1
HostBrowser running.....
Setting LANG to en_EN
Using jar /root/OpenFOAM/OpenFOAM-1.4.1-dev/applications/utilities/preProcessing/FoamX/lib /FoamX.jar
Using jar /root/OpenFOAM/OpenFOAM-1.4.1-dev/applications/utilities/preProcessing/FoamX/lib /jlfgr-1_0.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: FoamX/App (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :539)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader .java:251)
at java.net.URLClassLoader.access$100(URLClassLoader. java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)
Killed
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 10256).

FoamX is dependent on JAVA...

BTW, i use the same /OpenFOAM/linux applicatons with OpenFOAM-1.4.1 and OpenFOAM-1.4.1-dev,

root@iskandhar:~# ls -l /root/OpenFOAM/linux
total 16
drwxrwxr-x 4 1001 1001 4096 2006-11-29 09:15 dx-4.4.4
drwxrwxr-x 9 505 dhcp 4096 2007-08-01 17:30 gcc-4.2.1
drwxrwxr-x 9 504 dhcp 4096 2004-07-06 12:52 j2sdk1.4.2_05
drwxrwxr-x 6 500 dhcp 4096 2007-04-11 12:26 paraview-2.4.4


the relevant parts of my .bashrc are...

root@iskandhar:~# cat /root/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples


################################################## #############################
# Configuração do OpenFOAM 1.4.1-dev
#. $HOME/OpenFOAM/OpenFOAM-1.4.1-dev/.OpenFOAM-1.4.1-dev/bashrc
################################################## ##############################
################################################## #############################
# Configuração do OpenFOAM 1.4.1
. $HOME/OpenFOAM/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc
################################################## ##############################

What am i missing here...?

Alex
alexandrepereira is offline   Reply With Quote

Old   April 15, 2008, 03:19
Default Hi Alex, The problem with gcc
  #50
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Alex,
The problem with gcc is that your version is not the right one: OpenFOAM-1.4.1-dev wants gcc-4.2.2 and you have gcc-4.2.1 in your linux directory (which is ok for OpenFOAM-1.4.1).

Dragos
dmoroian is offline   Reply With Quote

Old   April 15, 2008, 10:55
Default Just to show the issue I was t
  #51
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Just to show the issue I was talking about on the previous post:

It seems the faces are not oriented in the same way, although they are in the same plane.

Dragos
dmoroian is offline   Reply With Quote

Old   April 15, 2008, 15:54
Default Thx Dragos, I Partially sol
  #52
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Thx Dragos,

I Partially solved the prob...

PARTIALLY... I changed gcc to gcc-4.2.2, in fact, i untared all the *.bin.tgz contents of ./linux folder i have downloaded from http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/ in my ~/OpenFOAM/linux.

Used the ~/.bashrc source for OpenFOAM-1.4.1-dev and started in that shell FoamX&, still no sign of it, but after making export JAVA_PATH=~/OpenFOAM/linux/jds.. whatever the error message changes from Cannot find JDK at /usr/lib/jvm/java-1.5.0-sun. Please set JAVA_PATH to the
JDK installation directory.

to

root@iskandhar:~# FoamX
Starting NameServer with inet:iskandhar:1234 ...
Starting FoamX Host Browser with inet:iskandhar:1234 ...
/*---------------------------------------------------------------------------*\
| ========= | |
| \ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \ / O peration | Version: 1.4.1-dev |
| \ / A nd | Web: http://www.openfoam.org |
| \/ M anipulation | |
\*---------------------------------------------------------------------------*/

Exec : FoamXHostBrowser
Date : Apr 13 2008
Time : 19:16:58
Host : iskandhar
PID : 10260
Root :
Case :
Nprocs : 1
HostBrowser running.....
Setting LANG to en_EN
Using jar /root/OpenFOAM/OpenFOAM-1.4.1-dev/applications/utilities/preProcessing/FoamX/lib /FoamX.jar
Using jar /root/OpenFOAM/OpenFOAM-1.4.1-dev/applications/utilities/preProcessing/FoamX/lib /jlfgr-1_0.jar
Exception in thread "main" java.lang.UnsupportedClassVersionError: FoamX/App (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java :539)
at java.security.SecureClassLoader.defineClass(Secure ClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader .java:251)
at java.net.URLClassLoader.access$100(URLClassLoader. java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java: 194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.j ava:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 89)
at sun.misc.Launcher$AppClassLoader.loadClass(Launche r.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:2 35)
at java.lang.ClassLoader.loadClassInternal(ClassLoade r.java:302)
Killed
runFoamXHB : cleanup
runFoamXHB: Killing name server nsd(pid 10256).

But i have finally compiled DxFoamExec...

It complained about a missing libtiff.so.3, so i

find / -name libtiff.so.3

which showed it was inside one of the folders of Matlab installation;

wclean and
wmake again, and compiled the app.

but when i try to run dxFoam, i get an error message like this:

root@iskandhar:~# dxFoam
Checking path to dx ...
Checking path to dxFoamExec executable ...
Starting dx with dxFoamExec executable ...
Starting DX user interface
/root/OpenFOAM/linux/dx-4.4.4/dx/bin_linux/dxui: symbol lookup error: /root/OpenFOAM/linux/dx-4.4.4/dx/bin_linux/dxui: undefined symbol: _XmStrings2


Seems there is something quite wron with OF_1.4.1-dev installation, but i just cannot figure out what...

Even tried to compare the ~/OpenFOAM-1.4.1/.OpenFOAM-1.4.1/bashrc with the ~/OpenFOAM-1.4.1-dev/.OpenFOAM-1.4.1-dev/bashrc so see if there's any major difference, but i guess that the differences that i have noticed are not related to my problem... :-(

I think that OpenDx might be a more robust tool for post processing than paraview, so i'd really like to try OpenFOAM-1.4.1-dev ...

Alex
alexandrepereira is offline   Reply With Quote

Old   April 16, 2008, 02:35
Default Hi Alex, It seems that your O
  #53
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Alex,
It seems that your OpenDX installation is not working. What happens if you run directly OpenDX, if you type dx? If it works then I'm clueless, but I would expect to get the same error.

Dragos
dmoroian is offline   Reply With Quote

Old   April 16, 2008, 08:41
Default Hi Dragos, I have two Dx in
  #54
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Dragos,

I have two Dx installs in Ubuntu.

One i have imported from repos, it runs out from bash shell wether i have OF environment sourced or not, when i type dx at the prompt. It was correctly installed with synaptic, i have already run the tutorials, it accepts a fluent data explorer data export... so, seems it is working ok.

I have also installed the dx....bin.tgz from http://powerlab.fsb.hr... in my ~/OpenFOAM/linux folder, so that OF would find it, when it is called from within OF.

The same happens with Paraview, i have 2.4.4 *.bin.tgz installed in ~/OpenFOAM/linux and i use it... either from OpenFOAM-1.4.1 or OpenFOAM-1.4.1-dev...

And i also have Paraview 3.... (whatever) installed in my /usr/local/paraview, since it is much more robust to huge datasets in .ensignt export format (less core dumps...)

Meaning that... even having two Paraview installs, OpenFOAM correctly selects 2.4.4 as its default viewer... it is installed in OF/linux.. well, same thing should apply to Dx... I guess i am being logical here...

Why doe it complains about _XmStrings2 undefined symbol in /root/OpenFOAM/linux/dx-4.4.4/dx/bin_linux/dxui...?


when OF-1.4.1-dev environment is sourced from a shell, JAVA_PATH should be pointing to /root/OpenFOAM/linux/j... but it doesnt... even when i export it, there is an error, it finds java, but there's an error in Java...

...dunno what else to do... :-(

Guess i will have to stick to OF-1.4.1 and Paraview 2.4.4. broken streamlines... :-(

Alex
alexandrepereira is offline   Reply With Quote

Old   April 16, 2008, 08:58
Default I have also installed the dx..
  #55
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Quote:
I have also installed the dx....bin.tgz from http://powerlab.fsb.hr... in my ~/OpenFOAM/linux folder, so that OF would find it, when it is called from within OF.
Did you try to run this from the command line? I ask because you mention only the Ubuntu installation of OpenDX working and not this one (whereas this is the one that OpenFOAM tries to use).

Dragos
dmoroian is offline   Reply With Quote

Old   April 16, 2008, 16:54
Default Hi Dragos, Doesn't work :
  #56
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Dragos,

Doesn't work :

root@iskandhar:~# /root/OpenFOAM/linux/dx-4.4.4/bin/dx

/root/OpenFOAM/linux/dx-4.4.4/dx/bin_linux/startupui: symbol lookup error: /root/OpenFOAM/linux/dx-4.4.4/dx/bin_linux/startupui: undefined symbol: _XmStrings22

when i

ldd /root/OpenFOAM/linux/dx-4.4.4//dx/bin_linux/startupui

i get


root@iskandhar:~# ldd /root/OpenFOAM/linux/dx-4.4.4//dx/bin_linux/startupui
linux-gate.so.1 => (0xffffe000)
libDXL.so.4 => /root/OpenFOAM/linux/dx-4.4.4/dx/lib_linux/libDXL.so.4 (0xb7ef1000)
libDXlite.so.4 => /root/OpenFOAM/linux/dx-4.4.4/dx/lib_linux/libDXlite.so.4 (0xb7e8f000)
libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7e60000)
libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb7e5d000)
libXpm.so.4 => /usr/lib/libXpm.so.4 (0xb7e4d000)
libXm.so.3 => /lib/libXm.so.3 (0xb7c48000)
libXp.so.6 => /usr/lib/libXp.so.6 (0xb7c40000)
libGLU.so.1 => /usr/lib/libGLU.so.1 (0xb7bbc000)
libGL.so.1 => /usr/lib/libGL.so.1 (0xb7b1c000)
libXmu.so.6 => /usr/lib/libXmu.so.6 (0xb7b06000)
libMagick.so.9 => /usr/lib/libMagick.so.9 (0xb7764000)
libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7760000)
liblcms.so.1 => /usr/lib/liblcms.so.1 (0xb772f000)
libtiff.so.3 => /usr/lib/libtiff.so.3 (0xb76e1000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb7671000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0xb7651000)
libXext.so.6 => /usr/lib/libXext.so.6 (0xb7643000)
libSM.so.6 => /usr/lib/libSM.so.6 (0xb763b000)
libICE.so.6 => /usr/lib/libICE.so.6 (0xb7623000)
libX11.so.6 => /usr/lib/libX11.so.6 (0xb7531000)
libXt.so.6 => /usr/lib/libXt.so.6 (0xb74e0000)
libbz2.so.1 => /lib/libbz2.so.1 (0xb74d0000)
libz.so.1 => /usr/lib/libz.so.1 (0xb74bb000)
libpthread.so.0 => /lib/tls/i686/cmov/libpthread.so.0 (0xb74a3000)
libstdc++.so.6 => /root/OpenFOAM/linux/gcc-4.2.2/lib/libstdc++.so.6 (0xb73ba000)
libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7394000)
libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb724a000)
libgcc_s.so.1 => /root/OpenFOAM/linux/gcc-4.2.2/lib/libgcc_s.so.1 (0xb723f000)
libXau.so.6 => /usr/lib/libXau.so.6 (0xb723c000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0xb71e7000)
libjasper.so.1 => /usr/lib/libjasper.so.1 (0xb719a000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0xb7177000)
libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb7059000)
/lib/ld-linux.so.2 (0xb7eff000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb7054000)

So i guess that the only thing missing is the dynamic linker...lib/ld-linux.so.2

meaning that this version of OpendDX has been dynamically linked against a previous version of GLIBC, am i right...?

Alex
alexandrepereira is offline   Reply With Quote

Old   April 16, 2008, 18:15
Default ... Guess what... I have do
  #57
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
... Guess what...

I have downloaded dx-4.4.4.tar.gz to my desktop, extracted, and tried to compile it myself.

cd /home/alex/Desktop/dx-4.4.4
./configure

...ended up with

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

I dont know if i can build it in Ubuntu without mangling my OS...

in the README file it states that it needs Motif, Open Source implementations have unpredictable behavior...

Alex
alexandrepereira is offline   Reply With Quote

Old   April 16, 2008, 18:23
Default ... Guess what... I have do
  #58
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
... Guess what...

I have downloaded dx-4.4.4.tar.gz to my desktop, extracted, and tried to compile it myself.

cd /home/alex/Desktop/dx-4.4.4
./configure

...ended up with

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

I dont know if i can build it in Ubuntu without mangling my OS...

in the README file it states that it needs Motif, Open Source implementations have unpredictable behavior...

Alex
alexandrepereira is offline   Reply With Quote

Old   April 17, 2008, 02:32
Default Hi Alex, Indeed compiling Ope
  #59
Senior Member
 
dmoroian's Avatar
 
Dragos
Join Date: Mar 2009
Posts: 648
Rep Power: 20
dmoroian is on a distinguished road
Hi Alex,
Indeed compiling OpenDX is not that straight forward, sometimes. But if you have a running installation on your system why don't you use that?
Just change the environment variable DXROOT in ~/OpenFOAM/OpenFOAM-1.4.1-dev/.OpenFOAM-1.4.1-dev/apps/dxFoam/bashrc:
export DXROOT=$WM_PROJECT_INST_DIR/$WM_ARCH/dx-4.4.4/dx
from the current value to something appropriate to you!

Dragos
dmoroian is offline   Reply With Quote

Old   April 17, 2008, 09:42
Default Hi Dragos, Success... :-)
  #60
Senior Member
 
Alexandre Pereira
Join Date: Mar 2009
Posts: 155
Rep Power: 17
alexandrepereira is on a distinguished road
Hi Dragos,

Success... :-)

Changed ~/OpenFOAM/OpenFOAM-1.4.1-dev/.OpenFOAM-1.4.1-dev/apps/dxFoam/bashrc

and made DXROOT point to /usr/lib/dx

dxFoam works... i think... :-)

So where should i place my .net file so that dxFoam correctly reads my case...?

What is the correct syntax od dxFoam...?

is it just dxFoam plain or dxFoam . <case> [options]....?

From the beginning of this topic i see that there is a folder ~/OpenFOAM/OpenFOAM-1.3/.OpenFOAM-1.3/apps/dxFoam/network

that in my case should be
~/OpenFOAM/OpenFOAM-1.4.1-dev/.OpenFOAM-1.4.1-dev/apps/dxFoam/network


Inside this folder i find
drwxr-xr-x 2 alex alex 4096 2008-04-10 00:07 macros
-rw-r----- 1 alex alex 90413 2007-11-22 08:43 postFoam.cfg
-rw-r----- 1 alex alex 495410 2007-11-22 08:43 postFoam.net
-rw-r--r-- 1 root root 30633 2008-04-10 02:10 simple.net

When i type dxFoam simple it doesn not allow me to select any case, shoul i invoke it from within a case directory?

What is the difference from simple.net and postFoam.net ?

When i try dxFoam postFoam, i get several CFD related menus that i do not get from dxFoam simple, but also a lot of warnings against unrecognized comments, and one final error about an undefined tool... and also that i should reload the visual program after loading the tool ExcludeList...

Any Hints...?

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


All times are GMT -4. The time now is 11:29.