PARADISCYL:Test-Run

From Micro and Nano Mechanics Group
Jump to navigation Jump to search

Manual 02 for ParaDiS Cylinder Codes

How to run test simulations

This document describes the extension of the ParaDiS program that implements the cylindrical free surface boundary condition. This extension is based on Weinberger and Cai, J. Mech. Phys. Solids, 55, 2027 (2007)(PDF). The code is written by Chris Weinberger. It is owned by Chris and is not included in the standard distribution of ParaDiS. Keonwook Kang wrote the first draft of this document, which was later revised by Chris Weinberger and Wei Cai. Please read the manual of ParaDiS before reading this document.

Run a Test Case

The command line to run the ParaDiS Cylinder code is the same as that of the original ParaDiS code. See ParaDiS manual for details. The command line format is:

paradiscyl [-r <numCycles>] [-d dataFile] <controlFile>

where:

      <ctrlFile>       Specifies the name of the ParaDiS control parameter file
      -d <dataFile>       Specifies the base name of the file(s) containing the nodal data for the run. If this file name is not supplied, the code looks for a data file named the same as the control file with the file name suffix (if any) replaced with ".data"
      -r  <numCycles>       Causes the code to execute a series of <numCycles> cycles during which no force calculations or dislocation movement will occur. These cycles will be used strictly for load-balancing purposes and will be done before the normal cycles. This can be useful when a simulation is started with a uniform domain decomposition and needs time to converge on an optimal decomposition as would occur when restarting a simulation on a different number of cpus

Run the following control file, which simulates a dislocation loop inside a cylinder. You will need two input files: one is control file (concentric_loop_test.ctrl) and the other is data file (concentric_loop_test.data). Both files are shown below. See here for details about input files.

$ bin/paradiscyl runs/concentric_loop_test.ctrl

This run requires the following two input files.

concentric_loop_test.ctrl concentric_loop_test.data

If your run is successful, you should see a pop-up window as shown below.


X Window Control

Default X Window control parameters are given in the file inputs/paradis.xdefaults. You can change window size, line width, rotation of angles, etc by modifying this file.

The 3D View in the X Window can be manipulated by both mouse and keyboard. For example, press r (default) and then move mouse to rotate the object, press s and then move mouse to scale the object. A complete list of hot keys are given below.

YWindow: yview:
Mouse drag to rotate
Hot Keys:
F1        : display this message
Up        : rotate up
Down      : rotate down
Left      : rotate left
Right     : rotate right
PgUp      : rotate counterclockwise
PgDn      : rotate clockwise
Home      : back to initial viewpoint
Space     : stop rotate
p         : toggle pause
t         : translation
s         : scaling
d         : move projection infinity point
r         : rotation
f         : toggle pbc enableness
m         : toggle drawframe
g         : pbc glide
x         : pbc shift in x
y         : pbc shift in y
z         : pbc shift in z
w         : print window specification
F9        : output gif
F10       : output postscript

Tcl script to generate input data

The input data file concentric_loop_test.data is generated by the tcl script create_loop_data.tcl in the ParaDiS/tools directory, which can run by typing

$ tools/create_loop_data.tcl

You can easily modify this tcl script to change the resulting input dislocation structure, such as the radius of the dislocation loop.


Problems and solutions

Cannot open shared library libgsl

If you see the error message below while trying to run ParaDiS cylinder codes,

./bin/paradiscyl: error while loading shared libraries: libgsl.so.0: cannot open
shared object file: No such file or directory

you have to specify the path to the GSL libraries. For example, let's say GSL libraries are in /usr/local/lib directory. Then, you add the following line in ~/.bash_profile

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/

and then type

source ~/.bash_profile

Error in opening input file

When ParaDiS can not locate input files, it shows the following error message.

Fatal: ReadControlFile: Error 2 opening file XXXX

You check whether you gave the correct directory or name of input files.

Overflow error

Currently, if you declare DEFS += -D_CYLMETHOD1 in makefile, ParaDiS issues the following error message.

gsl: bessel_In.c:202: ERROR: overflow
Default GSL error handler invoked.
Aborted

THIS ISSUE IS RESOLVED.

Underflow error

You seem to have old version of codes. You download the latest version or suppres the error message by inserting the following line into cylinder/gridstress.c

gsl_set_error_handler_off();

You need to include the header file at the beginning of gridstress.c.

#include <gsl/gsl_errno.h>

Notes