*HEADING
 EC3KAFAS: AC3D20,ASI8
 1D transient wave propagation in an acoustic medium
 with prescribed acceleration on DOF 1.
 Verification problem: Transient Dynamics Tests
**
** C = root (K/rho)= 343.05 m/s   K=bulk mod, rho=density.
**
** Analytic solution to prescribed constant acceleration of a0 at x=0
**
** p(x,t) = (K a0 / c^2) (ct - x)  for x < ct
**        = 0  			   for x > ct
**
*PREPRINT,ECHO=NO,HISTORY=NO,MODEL=no
*NODE, Nset=ODB_NSET
*NGEN,NSET=CHANNEL
*NSET,NSET=SAMPLE,GENERATE
*NSET,NSET=CRNRLOAD
*NSET,NSET=EDGELOAD
*NSET,NSET=LOAD
CRNRLOAD,EDGELOAD
*ELEMENT,TYPE=AC3D20
*ELGEN,ELSET=CHANNEL
*SOLID SECTION,MATERIAL=AIR,ELSET=CHANNEL
*surface, NAME=NRS
 50,S4
** Cross-section is 3.0
** ASI element at x=0, so that acceleration may be
** prescribed directly:
*ELEMENT,TYPE=ASI8,ELSET=LOAD
*INTERFACE,ELSET=LOAD
*MATERIAL,NAME=AIR
*DENSITY
 1.21,
*ACOUSTIC MEDIUM,BULK MODULUS
*RESTART,WRITE
*Elset,Elset=ODB_ESET
CHANNEL,
**
**
*Nset, Nset=ODB_NSET
ODB_NSET, CHANNEL, SAMPLE, CRNRLOAD
EDGELOAD, LOAD
**
**
*STEP,INC=1000
*DYNAMIC
.0001,.0036
** Define nonreflective boundary at x=1
*IMPEDANCE
 50,I4
**
** Prescribe volume acceleration inwards
**   of  a0 * cross-section= 3., therefore a0=1.
** Acceleration of interface element specified.
*BOUNDARY,TYPE=ACCELERATION
 LOAD,1,1,1.
**
*EL PRINT,FREQ=0
*NODE PRINT,NSET=SAMPLE,FREQ=6
 POR,
*NODE FILE,NSET=SAMPLE,FREQ=6
 POR,
*OUTPUT,FIELD,VARIABLE=PRESELECT,OP=ADD,FREQUENCY=9999
*OUTPUT,FIELD, OP=ADD,Frequency=6
*NODE OUTPUT,NSET=SAMPLE
 POR,
*OUTPUT,HISTORY,OP=ADD,Frequency=6
*NODE OUTPUT,NSET=SAMPLE
 POR,
*ENDSTEP
**
*STEP,INC=1000
*DYNAMIC
.0001,.0008
*IMPEDANCE,OP=NEW
*SIMPEDANCE
 NRS,
*BOUNDARY,TYPE=ACCELERATION
 LOAD,1,1,1.
*EL PRINT,FREQ=0
*NODE PRINT,NSET=SAMPLE,FREQ=6
 POR,
*NODE FILE,NSET=SAMPLE,FREQ=6
 POR,
*OUTPUT,FIELD,VARIABLE=PRESELECT,OP=ADD,FREQUENCY=9999
*OUTPUT,FIELD, OP=ADD,Frequency=6
*NODE OUTPUT,NSET=SAMPLE
 POR,
*OUTPUT,HISTORY,OP=ADD,Frequency=6
*NODE OUTPUT,NSET=SAMPLE
 POR,
*ENDSTEP