CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Ensight (https://www.cfd-online.com/Forums/openfoam-post-processing/57194-ensight.html)

chris1980 August 6, 2006 07:08

Does the Ensight reader module
 
Does the Ensight reader module of OpenFOAM 1.3 support Ensight 8.x or only Ensight 7.x ?

hjasak August 6, 2006 07:34

Works for me with Ensight 8 -
 
Works for me with Ensight 8 - no changes required.

Hrv

chris1980 August 6, 2006 07:50

really? I think you have to
 
really?

I think you have to change the Ensight enviroment variables in the OpenFOAM shell script for Ensight i.e:

ENSIGHT7_READER=$FOAM_LIBBIN
->
ENSIGHT8_READER=$FOAM_LIBBIN

Am I wrong?

chris1980 August 6, 2006 09:07

Hrv, I have just tested the
 
Hrv,

I have just tested the Ensight read module but with no success. According to the OF-userguide there should be a OpenFOAM-entry in the format section of the Ensight-GUI but there is no entry like this.

All enviroment variables are defined (according to OF-userguide) so I have no clue what is going wrong.

stefanke August 6, 2006 10:02

run Ensight with the flag '-re
 
run Ensight with the flag '-readerdbg' and check if there are any errors related to the FOAM-reader!

chris1980 August 6, 2006 12:52

there is indeed a problem with
 
there is indeed a problem with a unresolved symbol that's why Ensight cannot open the reader (libuserd-foam.so).

There is something wrong with my lPstream. I assume this is probably caused due some compiler mixtures!

I have switched to the Intel Compiler but the compiling-script of OF compiles LAM with the system default compiler (in my case GNU gcc 3.3.3).

Can anybody comment my statement?

chris1980 August 6, 2006 16:55

I cannot build the library lib
 
I cannot build the library libuserd-foam which is need for the Ensight reader module. The following errors showed up:

/usr/lib/crt1.o(.text+0x18): In function `_start':
../sysdeps/i386/elf/start.S:98: undefined reference to `main'
Make/linuxGcc4DPOpt/libuserd.o(.text+0x29d9): In function `USERD_get_gold_part_build_info':
: undefined reference to `Foam::fvMesh::boundary() const'
Make/linuxGcc4DPOpt/libuserd.o(.text+0x516a): In function `USERD_set_filenames':
: undefined reference to `Foam::fvMesh::fvMesh(Foam::IOobject const&)'
Make/linuxGcc4DPOpt/libuserd.o(.gnu.linkonce.t._ZNK4Foam12fvPatchField INS_6Tenso rIdEEE4typeEv+0x21): In function `Foam::fvPatchField<foam::tensor<double> >::type() const':
: undefined reference to `Foam::fvPatchField<foam::tensor<double> >::typeName'
Make/linuxGcc4DPOpt/libuserd.o(.gnu.linkonce.t._ZNK4Foam12fvPatchField INS_6Vecto rIdEEE4typeEv+0x21): In function `Foam::fvPatchField<foam::vector<double> >::type() const':
: undefined reference to `Foam::fvPatchField<foam::vector<double> >::typeName'
Make/linuxGcc4DPOpt/libuserd.o(.gnu.linkonce.t._ZNK4Foam14GeometricFie ldINS_6Vec torIdEENS_12fvPatchFieldENS_7volMeshEE4typeEv+0x11 ): In function `Foam::GeometricField<foam::vector<double>, Foam::fvPatchField, Foam::volMesh>::type() const':
: undefined reference to `Foam::GeometricField<foam::vector<double>, Foam::fvPatchField, Foam::volMesh>::typeName'
Make/linuxGcc4DPOpt/libuserd.o(.gnu.linkonce.t._ZNK4Foam8particleINS_1 5passivePa rticleEE4typeEv+0x11): In function `Foam::particle<foam::passiveparticle>::type() const':
.
and lot more
.

Any suggestions?

chris1980 August 6, 2006 17:03

Forget about my last message!
 
Forget about my last message!

I build successful libuserd-foam but Ensight still shows an error:

initializing user defined readers

***>>>----------------------------------
***>>> failed to find or open reader: /home/stefanke/OpenFOAM/OpenFOAM-1.3/lib/linuxI32DPOpt/libuserd-foam.so
***>>> dlerror() returns /home/stefanke/OpenFOAM/OpenFOAM-1.3/lib/linuxI32DPOpt/lam-7.1.1/libPstream.so: undefined symbo l: __gxx_personality_v0


Any ideas?

stefanke August 6, 2006 17:07

Hey Chris this is the error me
 
Hey Chris this is the error message I sent to you! Do you experieance the same problem on your maschine ?

chris1980 August 9, 2006 13:20

I have tracked down my Ensight
 
I have tracked down my Ensight problem but it is still unresolved:

This is the debug output of Ensight:

failed to find or open reader: libuserd-foam.so
dlerror() returns libOpenFOAM.so: undefined symbol: cplus_demangle


Any suggestions?

chris1980 August 10, 2006 09:49

Does nobody have an idea how t
 
Does nobody have an idea how to solve my problem?

Note: the libuserd-foam.so was successfully build and is present in the lib directory.

stefanke August 11, 2006 01:53

you reader cannot loaded into
 
you reader cannot loaded into Ensight because the function 'cplus_demange()' could not be found. Please relink the reader by the library 'libiberty' providing this function.

Modify your 'ensight76FoamExec/Make/options' and add the following entry to LIB_LIBS: -liberty

This should fix your problem!

Mattijs, could you please fix this in the official release.

mattijs August 12, 2006 08:09

Thanks. We haven't got it here
 
Thanks. We haven't got it here so can you test if

LIB_LIBS = \
-lfiniteVolume \
-llagrangian \
-lfoamUtil \
$(PROJECT_LIBS)

works? (PROJECT_LIBS should be -lOpenFOAM -liberty -ldl on Linux)

stefanke August 12, 2006 08:21

no! Get unresolved symbols (se
 
no! Get unresolved symbols (seems like libOpenFOAM is missing)

stefanke August 12, 2006 08:34

the variable PROJECT_LIBS is n
 
the variable PROJECT_LIBS is not defined in my system. I cannot find a definition for this variable?

mattijs August 12, 2006 09:00

It is defined inside wmake onl
 
It is defined inside wmake only. Check your compilation rules in $WM_DIR/rules.

stefanke August 12, 2006 09:20

I see. But this is variable is
 
I see. But this is variable is emtpy for all rules!

btw: I think the name of the directory 'ensight76FoamExec' is not right any more since the reader module works with Ensight 8 as well. So perhaps you might swith this name to 'ensightFoamExec'

matteoc February 28, 2007 04:55

Hi foamers, I have a x86_64
 
Hi foamers,

I have a x86_64 machine and I 've installed Ensight.
It works quite well, but, when trying importing OF data, it doesn't recognizes the format of those data!

Anybody has a such problem?
thanks in advance

Matteo

fra76 February 28, 2007 05:18

No, it works well in my case..
 
No, it works well in my case...
Do you execute foamToEnsight on the case you want to read in EnSight?

olesen February 28, 2007 06:07

If you are using the Ensight d
 
If you are using the Ensight direct reader, you'll have a problem when you use 32bit OpenFOAM and 64bit Ensight. The only solution is to explicitly set CEI_ARCH to a 32bit version.

Attached is an updated version of the apps/ensightFoam/bashrc that should help
http://www.cfd-online.com/OpenFOAM_D...s/mime_txt.gif bashrc

Note that the above shell script assumes that the normal Ensight profile has been called before the OpenFOAM profile.

/mark


All times are GMT -4. The time now is 05:37.