Problems displaying 3d views

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
mickele
Posts: 9
Joined: Thu Jan 13, 2011 6:49 am
Location: Italy

Problems displaying 3d views

Post by mickele »

On debian jessie, I can't display 3D views using routines available in DisplayModel3D.tcl.
I tried example available at http://opensees.berkeley.edu/wiki/index ... _W-Section but I have always the same behaviour: command line hangs without opening window.
Any suggestion?

Follow my Makefile.def :

# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
OpenSees_PROGRAM = $(INSTALLDIR)/bin/OpenSees

# %---------------------------------%
# | SECTION 2: MAKEFILE CONSTANTS |
# %---------------------------------%
OPERATING_SYSTEM = LINUX
GRAPHICS = UsingOpenGL
PROGRAMMING_MODE = SEQUENTIAL
COMPILER = GCC
DEBUG_MODE = NO_DEBUG
RELIABILITY = YES_RELIABILITY

# %---------------------------------%
# | SECTION 3: PATHS |
# %---------------------------------%
BASE = /usr
HOME = $(SRCDIR)
FE = $(SRCDIR)/OpenSees/SRC
AMDdir = $(HOME)/OpenSees/OTHER/AMD
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
CSPARSEdir = $(HOME)/OpenSees/OTHER/CSPARSE
SRCdir = $(HOME)/OpenSees/SRC

ifeq ($(PROGRAMMING_MODE), THREADS)
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_MT
else
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_5.0/SRC
endif

DIRS = $(BLASdir) $(CBLASdir) $(LAPACKdir) $(AMDdir) $(CSPARSEdir) \
$(SUPERLUdir) $(ARPACKdir) $(UMFPACKdir) $(SRCdir) $(METISdir)

# %-------------------------------------------------------%
# | SECTION 4: LIBRARIES |
# %-------------------------------------------------------%
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
OPTIMIZATION_LIBRARY = $(HOME)/lib/libOptimization.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
CSPARSE_LIBRARY = $(HOME)/lib/libCSparse.a
TCL_LIBRARY = -ltk8.6 -ltcl8.6
BLITZ_LIBRARY =
AMD_LIBRARY = $(HOME)/lib/libAmd.a
ifeq ($(GRAPHICS), UsingOpenGL)
GRAPHIC_LIBRARY = -lGL -lGLU
else
ifeq ($(GRAPHICS), UsingX11)
GRAPHIC_LIBRARY = -lX11
endif
endif

ifeq ($(RELIABILITY), YES_RELIABILITY)
RELIABILITY_LIBRARY = $(HOME)/lib/libReliability.a
endif

WIPE_LIBS = $(FE_LIBRARY) \
$(AMD_LIBRARY) \
$(LAPACK_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(RELIABILITY_LIBRARY)

# %---------------------------------------------------------%
# | SECTION 5: COMPILERS |
# | |
# %---------------------------------------------------------%
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
CC++ = /usr/bin/g++
CC = /usr/bin/gcc
FC = /usr/bin/gfortran
else
CC++ = mpicxx
CC = mpicc
FC = mpif90
F90 = mpif90
FORTRAN = $(FC)
endif
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =

ifeq ($(GRAPHICS), UsingOpenGL)
GRAPHIC_FLAG = -D_GLX
else
ifeq ($(GRAPHICS), UsingX11)
GRAPHIC_FLAG = -D_X11
else
GRAPHIC_FLAG = -D_NOGRAPHICS
endif
endif

ifeq ($(PROGRAMMING_MODE), THREADS)
PROGRAMMING_FLAG = -D_THREADS -D_PTHREAD -DUSE_INTERP_RESULT
else
PROGRAMMING_FLAG = -DUSE_INTERP_RESULT
endif

ifeq ($(DEBUG_MODE), DEBUG)
DEBUG_FLAG = -D_G3DEBUG
else
DEBUG_FLAG =
endif

ifeq ($(RELIABILITY), YES_RELIABILITY)
RELIABILITY_FLAG = -D_RELIABILITY
else
RELIABILITY_FLAG =
endif
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -funroll-loops -fcse-follow-jumps \
-fthread-jumps -fcse-skip-blocks -frerun-cse-after-loop \
-felide-constructors \
-fcaller-saves -ffloat-store -fforce-addr \
-fschedule-insns -fschedule-insns2 -D_LINUX -D_UNIX \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG) \
-fexpensive-optimizations \
-fforce-addr -fforce-mem -finline-functions \
-fkeep-inline-functions \
-fno-function-cse -fno-inline -fno-peephole \
-fschedule-insns -fschedule-insns2 \
-fstrength-reduce -fthread-jumps -g -pg \
-ffloat-store -D_RELIABILITY

CFLAGS = -Wall -pg $(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG)
FFLAGS = -Wall

# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg

else
C++FLAGS = -Wall -O3 -D_UNIX -ftemplate-depth-30 -D_LINUX \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG) \
-ffloat-store -fpermissive

CFLAGS = -Wall -O3 $(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG)
FFLAGS = -Wall -O

# Linker
LINKER = $(CC++)
LINKFLAGS =

endif

# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh

# %---------------------------------------------------------%
# | SECTION 6: COMPILATION |
# | |
# %---------------------------------------------------------%

.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp

#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#

.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@

.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@

# %---------------------------------------------------------%
# | SECTION 7: OTHER LIBRARIES |
# | |
# %---------------------------------------------------------%
ifeq ($(PROGRAMMMING_MODE), SEQUENTIAL)
HAVEMUMPS = NO
MUMPS_FLAG =
MUMPS_INCLUDE =
MUMPS_LIB =
else
HAVEMUMPS = YES
endif

ifeq ($(HAVEMUMPS), YES)

MUMPS = YES
MUMPS_FLAG = -D_MUMPS -D_OPENMPI
#MUMPS_DIR = /gpfs/fmk/MUMPS_4.6.4
MUMPS_DIR = $(HOME)/PARALLEL_NUMERICAL_LIBS/MUMPS_4.10.0

PLAT = MPICHGM-INTEL80

SCALAP = $(BLACSlib) $(SCALAPlib) $(BLACSlib)

BLACS_DIR = $(HOME)/PARALLEL_NUMERICAL_LIBS/BLAC
SCALAPACK_DIR = $(HOME)/PARALLEL_NUMERICAL_LIBS/SCALAPACK
LAPACK_DIR = $(HOME)/PARALLEL_NUMERICAL_LIBS/LAPACK

BLACS_LIB = -L$(BLACS_DIR)/LIB -lblacs_MPI-LINUX-0
SCALAPACK_LIB = -L$(SCALAPACK_DIR) -lscalapack
BLACS_LIB = -L$(BLACS_DIR)/INCLUDE
SCALAPACK_LIB = -L$(SCALAPACK_DIR)

PLAT = LINUX

SCALAP = $(BLACS_LIB) $(SCALAPACK_LIB)

MUMPS_LIB = -L$(MUMPS_DIR)/lib \
$(FE)/system_of_eqn/linearSOE/mumps/MumpsSOE.o \
$(FE)/system_of_eqn/linearSOE/mumps/MumpsSolver.o \
$(FE)/system_of_eqn/linearSOE/mumps/MumpsParallelSOE.o \
$(FE)/system_of_eqn/linearSOE/mumps/MumpsParallelSolver.o \
$(HOME)/lib/libdmumps.a \
$(HOME)/lib/libmumps_common.a \
$(HOME)/lib/libpord.a \
$(HOME)/lib/libscalapack.a \
$(HOME)/lib/blacs_MPI-LINUX-0.a \
$(HOME)/lib/blacsCinit_MPI-LINUX-0.a \
$(HOME)/lib/blacsF77init_MPI-LINUX-0.a \
$(HOME)/PARALLEL_NUMERICAL_LIBS/BLACS/SRC/MPI/INTERNAL/bi_f77_get_constants.o \
$(HOME)/lib/blas_LINUX.a

MUMPS_INCLUDE = -I$(MUMPS_DIR)/include
endif

MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib

MACHINE_NUMERICAL_LIBS = $(RELIABILITY_LIBRARY) -lm \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY) $(OPTIMIZATION_LIBRARY) \
$(AMD_LIBRARY) \
$(CSPARSE_LIBRARY) \
-ldl -lgfortran -lpng

ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
PARALLEL_LIB =
else ifeq ($(PROGRAMMING_MODE), PARALLEL)
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(METIS_LIBRARY) $(HOME)/OpenSees/OTHER/METIS/frename.o $(METIS_LIBRARY) $(MUMPS_LIB) -lmpi -lmpi_f77
else ifeq ($(PROGRAMMING_MODE), PARALLEL_INTERPRETERS)
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(METIS_LIBRARY) $(HOME)/OpenSees/OTHER/METIS/frename.o $(METIS_LIBRARY) $(MUMPS_LIB) -lmpi -lmpi_f77
endif

ifeq ($(PROGRAMMING_MODE), THREADS)
MACHINE_SPECIFIC_LIBS = -lpthread
else
MACHINE_SPECIFIC_LIBS =
endif

# %---------------------------------------------------------%
# | SECTION 8: INCLUDE FILES |
# | |
# %---------------------------------------------------------%
MACHINE_INCLUDES = -I/usr/include \
-I$(BASE)/include \
-I/usr/include/cxx \
$(MUMPS_INCLUDE) \
-I$(HOME)/include \
-I$(HOME)/blitz \
-I$(UMFPACKdir) \
-I$(SUPERLUdir)

# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl

TCL_INCLUDES = -I/usr/include/tcl

INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Problems displaying 3d views

Post by fmk »

sorry none .. i don't even try to compile the renderer stuff and test it .. it is not something that is supported as it was never finished. an alternative ope source Qt application will soon be released for viewing that you will be able to use.
mickele
Posts: 9
Joined: Thu Jan 13, 2011 6:49 am
Location: Italy

Re: Problems displaying 3d views

Post by mickele »

Thanks for your answers. I'll wait for the release of this Qt app.
Is there a repository where I can download a preview?
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Problems displaying 3d views

Post by fmk »

not available yet .. need to put bunch of copyright info in it before i can release it.
Jrlwant
Posts: 1
Joined: Mon Apr 11, 2016 10:46 pm

Re: Problems displaying 3d views

Post by Jrlwant »

fmk wrote:
> sorry none .. i don't even try to compile the renderer stuff and test it ..
> it is not something that is supported as it was never finished. an
> alternative ope source Qt application will soon be released for viewing
> that you will be able to use.

I'm interested in this as well. Will you be giving updates on the availability of this application here in this thread? Thanks.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Problems displaying 3d views

Post by fmk »

no .. just an announcement as there would be too many threads to update concerning OpenSees and graphic capabilities!
Post Reply