*HEADING
 TENNIS RACKET AND BALL IMPACT
RIGID BODY VERIFICATION ; TENNIS_RIG.INP
********************
**
**  Strings.
**
********************
*NODE
**  Bottom curve.
**  Left side curve.
**  Right side curve.
**  Top curve.
**  Rectangular portion.
*NGEN,NSET=N200
*NGEN,NSET=N500
*NGEN,NSET=N1900
*NGEN
*NFILL,NSET=STRINGS
N200,N500,3,100
N500,N1900,14,100
*NGEN,NSET=STRINGS,LINE=P
*NSET,NSET=MIDPLANE,GEN
*NSET,NSET=MIDPLANE
**
*ELEMENT,TYPE=T3D2,ELSET=STRINGS
*ELGEN,ELSET=STRINGS
*SOLID SECTION,ELSET=STRINGS,MATERIAL=STRING
**  Diameter of strings is 0.1 in.
7.854E-3,
**
*NSET, NSET=NCONTACT, GENERATE
********************
**
**  Frame.
**
********************
*NCOPY,CHANGE NUMBER=10000,OLD SET=MIDPLANE,SHIFT,NEW SET=FRONT
*NCOPY,CHANGE NUMBER=20000,OLD SET=MIDPLANE,SHIFT,NEW SET=BACK
*NODE,NSET=REFNODE
*NODE,NSET=HANDLE,INPUT=tennis_rig1.inp
**
**
*ELEMENT, TYPE=B31, ELSET=BEAM
*ELEMENT, TYPE=C3D8R, ELSET=BRICKS
*ELEMENT,TYPE=S4R,ELSET=FRAME, INPUT=tennis_rig2.inp
**
*ELGEN,ELSET=FRAME
*SHELL SECTION, MATERIAL=MAT1, ELSET=FRAME
0.08,
*SOLID SECTION, MATERIAL=MAT1, ELSET=BRICKS
*BEAM SECTION, MATERIAL=MAT1, ELSET=BEAM, SECTION=CIRC
0.08,
*ELSET, ELSET=RACKET
FRAME, BRICKS, BEAM
*MATERIAL,NAME=MAT1
*DENSITY
1.07E-3,
*ELASTIC
1.E6,
*NODE,NSET=SPHERE,INPUT=tennis_rig3.inp
**
*ELEMENT,TYPE=S4R,ELSET=SPHERE,INPUT=tennis_rig4.inp
*SHELL SECTION,ELSET=SPHERE,MATERIAL=RUBBER,NODAL THICKNESS
 ,3
**.2,3
*NSET, NSET=NDTHK, ELSET=SPHERE
*NODAL THICKNESS
NDTHK, 0.2
**
*PHYSICAL CONSTANTS, ABSOLUTE ZERO=-273.16
*ELEMENT,TYPE=F3D4,ELSET=CAVITY,INPUT=tennis_rig5.inp
*FLUID PROPERTY,ELSET=CAVITY,REF NODE=30001,AMBIENT=14.7
*FLUID DENSITY
0.1E-4,
*NSET,NSET=CAVREF
********************
**
** Material definitions.
**
********************
*MATERIAL,NAME=RUBBER
*DENSITY
1.E-4,
*HYPERELASTIC,N=1
100.,25.,1.E-4
*MATERIAL,NAME=STRING
**  Nylon type 6 general purpose.
*DENSITY
1.07E-4,
*ELASTIC
1.E6,
********************
**
** Initial conditions, boundary conditions.
**
********************
*INITIAL CONDITIONS,TYPE=STRESS
**  Tension in strings is 10 lb.
STRINGS,1273.
SPHERE,22.5,22.5
*INITIAL CONDITIONS,TYPE=VELOCITY
**  Initial velocity of ball is 22 fps at a 15 degree angle of attack.
**SPHERE, 1, 68.3
**SPHERE, 2, 0.
**SPHERE, 3,-255.
10000, 1, -68.3
10000, 3,255.
*INITIAL CONDITIONS,TYPE=FLUID PRESSURE
30001,6.
**
*RESTART,WRITE,NUM=1
************************************************************
**
*SURFACE,TYPE=ELEMENT,NAME=SPHERE
SPHERE,SPOS
*SURFACE,TYPE=NODE,NAME=STRINGS
 NCONTACT,
*RIGID BODY,ELSET=RACKET,REF NODE=10000
*NSET,NSET=QA_TEST_CAVREF
CAVREF,
*NSET,NSET=QA_TEST_REFNODE
REFNODE,
*STEP
*DYNAMIC,EXPLICIT
,15.E-3
********************
**
** Contact definitions.
**
********************
*SURFACE INTERACTION,NAME=SPH_STR
*FRICTION
 0.1,
*CONTACT PAIR,INTERACTION=SPH_STR
 SPHERE,STRINGS
********************
**
** Output requests.
**
********************
*FILE OUTPUT, NUM=4, TIMEMARKS=YES
*NODE FILE,NSET=CAVREF
CVOL,PCAV,
*NODE FILE,NSET=REFNODE
 U,
*OUTPUT,FIELD,VARIABLE=PRESELECT,NUMBER INTERVAL=4,OP=NEW
*OUTPUT,HISTORY,VARIABLE=PRESELECT,TIME INTERVAL=0.00375,OP=NEW
*OUTPUT, FIELD, NUM=4, TIMEMARKS=YES
*NODE OUTPUT,NSET=QA_TEST_CAVREF
CVOL,PCAV,
*NODE OUTPUT,NSET=QA_TEST_REFNODE
 U,
*END STEP