Commit f0c6ed00 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

remove xmovie

parent 554531a3
Loading
Loading
Loading
Loading

tools/xmovie/Makefile

deleted100755 → 0
+0 −63
Original line number Diff line number Diff line
CC 	= gcc
LN 	= gcc
OPTIM	= -O2 -finline-functions -g
XLIBDIR	= -L/usr/X11R6/lib
XINCLUDE = 
DEFINES	= -DMISSINGDEFS -D_POSIX_SOURCE -DUSEPRIVATE -DINCL_FLOAT
WARNS	= -Wimplicit -Wunused -Wmissing-prototypes
CCOPTS 	= -c $(OPTIM) $(DEFINES) $(WARNS) $(XINCLUDE)
LNOPTS	= $(OPTIM) 

LIBS	= $(XLIBDIR) -lX11 -lXaw -lm

# try this version on a Mac
#LIBS	= $(XLIBDIR) -lX11 -lXaw -lXt -lXext -lXmu -lXpm

OBJS	= xmovie.o \
	control.o \
	scene.o \
	read.o \
	hpsort.o

EXES = xmovie dummy tobinary toascii

.c.o:
	$(CC) $(CCOPTS) $*.c

xmovie: $(OBJS)
	$(CC) $(CCOPTS) version.c
	$(LN) -o xmovie $(LNOPTS) version.o $(OBJS) $(LIBS)

xmovie.o:   xmovie.h resource.h xmovie.c
control.o:  xmovie.h control.c
scene.o:    xmovie.h scene.c
read.o:     xmovie.h read.c
hpsort.o:   hpsort.c

clean:
	rm -f *.o *~ $(EXES)

tar:
	tar cvf xmovie.tar Makefile *.c *.h
	compress xmovie.tar
	uuencode xmovie.tar.Z xmovie.tar.Z > xmovie.tar.Z.uu

clean_obj:
	rm -f *.o

all: $(EXES)

dummy: dummy.o
	$(LN) $(LNOPTS) -o dummy dummy.o -lm

dummy.o: dummy.c

toascii: toascii.o
	$(LN) $(LNOPTS) -o toascii toascii.o

toascii.o: toascii.c

tobinary: tobinary.o
	$(LN) $(LNOPTS) -o tobinary tobinary.o

tobinary.o: tobinary.c

tools/xmovie/README

deleted100644 → 0
+0 −51
Original line number Diff line number Diff line
Xmovie is an X-based visualization package that can reads particle
data in a simple text format.  LAMMPS output files are in this format
(by default).  Xmovie displays 2d projections of 3d (or 2d) data sets.
While simple, it is extremely fast, and often useful for debugging.

Xmovie was written by Mike Uttormark, while visiting Sandia, in the
summer of 1994.  Subsequent small changes have been made by Steve
Plimpton.

To make xmovie for your platform, edit the top section of the Makefile
appropriately for your machine.  You will need to point at the correct
X libraries for xmovie to compile and link properly.

Once you have an xmovie executable you can test it by typing:

xmovie dummy.dat

A control window and a display window should pop open.  Move the
"thickness" slider all the way to the right and click "Start".  You
should see a small white ball oscillate back and forth in the display.

The examples directory in the LAMMPS distribution has several
simulations that can be run with LAMMPS to produce dump.* files that
you can use xmovie to visualize.  The Movies page of the LAMMPS WWW
Site has animations of these simulations that were produced by
converting saved xmovie snapshots to MPEG files (via ImageMagick's
convert program).  Note that LAMMPS output is scaled by default (so
all coordinates are from 0 to 1).  Thus you need to run xmovie like
this:

xmovie -scale dump.*

to see the snapshot you expect.

The xmovie control window options should be self-explanatory.  You are
always viewing a 2d projection of your 2d or 3d snapshot; the
"position" and "thickness" sliders control the range of the slab of
atoms being projected.  You will not always see a snapshot when xmovie
begins, unless you push the "thickness" slider to the right.

Type xmovie to see a list of command-line options and info on file
formats.

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

If the xpm.h file is not on a system, it must be downloaded from
somewhere

Needed to build on IBM cheetah at ORNL:
#include </apps/xpm/3.4k/rs_aix51/include/X11/xpm.h>

tools/xmovie/Xdefaults

deleted100755 → 0
+0 −51
Original line number Diff line number Diff line
! Resources that users may want to change. 
! Add these lines to your .Xdefaults file or
! merge them using xrdb -merge
!

!
! colors used for drawing atoms 
!

#ifdef COLOR

XMovie.*.scene.*.foreground:		red
XMovie.*.scene.*.background:		black
XMovie.*.scene.width:			600
XMovie.*.scene.height:			600

#else

XMovie.*.scene.*.foreground:		black
XMovie.*.scene.*.background:		white

#endif

!
! Default slider positions (0.0 -> 1.0)
!

XMovie.*.speedbar.topOfThumb:		1.0
XMovie.*.positionbar.topOfThumb:	0.50
XMovie.*.thicknessbar.topOfThumb:	1.0

!
! Default viewing axis
! set only one, or chaos will surely ensue.
! need to turn z off before turning others on
!

! XMovie.*.z.state:			False
! XMovie.*.y.state:			True

! XMovie.*.x.state:			True
! XMovie.*.z.state:			True

!
! Default viewing direction
! again, set only one.
! turn vminus off before turning vplus on
!

! XMovie.*.vminus.state:		False
! XMovie.*.vplus.state:			True

tools/xmovie/control.c

deleted100644 → 0
+0 −1340

File deleted.

Preview size limit exceeded, changes collapsed.

tools/xmovie/dummy.c

deleted100644 → 0
+0 −63
Original line number Diff line number Diff line
/* program to generate dummy data set */
/* Mike Uttormark 7/16/92 */
/* Sandia Nat'l Labs 1421 */
/* On leave from University of Wisconsin--Madison */

#include <math.h>
#include <stdio.h>
#include <stdlib.h>

#define RANGE   5.0
#define STEPS	2000
#define PI	3.14159
#define S	50

#ifdef MISSINGDEFS
int printf(char *, ...);
#endif

int main(int argc, char **argv);

int main(int argc, char **argv)
{
	int	i, j, step, npart;
	int	nsteps;

	if (argc < 2)
		nsteps = STEPS;
	else
		nsteps = atoi(argv[1]);

	if (argc < 3)
		npart = 1;
	else
		npart = atoi(argv[2]);

	for(step = 0; step < nsteps; step++) {

		printf("ITEM: TIME\n%g\n", (float) step);

		if (step == 0) {
			printf("ITEM: BOUNDS\n");
			for (i = 3; i; i--)
				printf("%g, %g\n", -RANGE, RANGE);
		}
		printf("ITEM: POSITIONS\n");

		for( j = 0; j < npart; j++)
			printf("%i, %i, %g, %g, %g\n",
				j+1,
				1 + j%4,
				RANGE*sin(2*PI*(step+j)/S),
				RANGE*cos(0.25*PI*(step+j)/S),
				RANGE*sin(5*PI*(step+j)/S));

		if (npart > 1) {
			printf("ITEM: BONDS\n");
			for ( j = 0; j < npart-1; j++)
				printf("%i %i %i\n", 1 + j%4, j+1, j+2);
		}
	}
}

Loading