*HEADING
 EC34AFAI: AC3D8 ELEMENTS
 Tube with nonreflective end-condition and ASI elements. 
 Part of the air in the tube is modelled with continuum elements
 with air properties.
********************
*NODE, Nset=ODB_NSET
1, 
21,.5
101,,0.025
121,0.5,0.025
*NGEN,NSET=NBACK
1,21
101,121
*NCOPY,CHANGE NUMBER=200, OLD SET=NBACK, NEW SET=NFRONT,SHIFT
0.0,0.0,0.025

*NSET,NSET=NALL
NBACK,NFRONT
*NSET,NSET=SAMPLE,GENERATE
1,41
*NSET,NSET=LOAD
1,101,201,301
**
** First 5 elements are acoustic
*ELEMENT,TYPE=AC3D8
1,1,201,202,2,101,301,302,102
*ELGEN,ELSET=ACOU
1,5,1,1
**
** Then an ASI Element with normal to left
*ELEMENT,TYPE=ASI4, ELSET=ASILEFT
101,6,206,306,106
**
** Then 5 continuum elements
*ELEMENT,TYPE=C3D8
6,6,206,207,7,106,306,307,107
*ELGEN,ELSET=STRUCT
6,5,1,1
**
** Then an ASI Element with normal to right
*ELEMENT,TYPE=ASI4, ELSET=ASIRIGHT
102,11,111,311,211
**
** Next 10 elements are acoustic
*ELEMENT,TYPE=AC3D8
11,11,211,212,12,111,311,312,112
*ELGEN,ELSET=ACOU
11,10,1,1
**
*ELSET,ELSET=NONREF
20,
************************************************
**
**  Acoustic Element Properties
**
*SOLID SECTION,MATERIAL=AIR,ELSET=ACOU
*MATERIAL,NAME=AIR
*DENSITY
 1.21,
*ACOUSTIC MEDIUM,BULK MODULUS
 0.1424E6,
************************************************
**
**  Continuum Element Properties
**
*SOLID SECTION,MATERIAL=AIRSOLID,ELSET=STRUCT
*MATERIAL,NAME=AIRSOLID
*DENSITY
 1.21,
*ELASTIC
 0.1424E6,
************************************************
**
**  ASI Element Properties
**
*INTERFACE,ELSET=ASILEFT
*INTERFACE,ELSET=ASIRIGHT
**
************************************************
*AMPLITUDE,NAME=OMEGA
0.,0., 1E6,6.2831853E6
************************************************
**       ** ANALYTIC SOLUTION  **
**  
**  at freq=100,
**  Impedance: Z = root( K_f rho )
**               = 415.09
**  Propagation constant 
**             b = i (omega/K_f) Z
**               = 1.8315  i
**
**  Solution: with nonreflective end,
**  Complex pressure
**             p(x) = Z v(0) exp( - b x)
**  i.e. |p(x)| = |Z v(0)| exp ( - Re(b) x)
**              =  415.09 
**
**       Arg(p) = Arg(Z) - Im(b) x
**       ppor   = - 104.94 x
**
************************************************  
*Elset,Elset=ODB_ESET
ACOU, STRUCT
**
**
*Nset, Nset=ODB_NSET
ODB_NSET, NBACK, NFRONT, NALL
SAMPLE, LOAD
**
**
*STEP
*STEADY STATE DYNAMIC,DIRECT
100,
**  For reference, these IMPEDANCE PROPERTY
**  constants could be used to specify the nonreflecting 
**  condition at the given frequency:
**  1/k1= 0, 1/c1= 2.40908E-03
**        0,       1/Z
**
*IMPEDANCE
 NONREF,I5
**
** Conditions at x=0 : Define the source inward accel
** to be  a =  omega i, so v (inward) = 1.
** The loaded node has a tributary area of 1.
**
*CLOAD,LOAD CASE=2, AMP=OMEGA
LOAD, 8, 1.5625E-04
** simulation of uniaxial condition
*BOUNDARY
NALL,2,3
*NODE PRINT, NSET=SAMPLE
COORD,POR,PPOR
*OUTPUT,FIELD
*NODE OUTPUT,NSET=nall
POR,
*ELEMENT OUTPUT,ELSET=ACOU
INTEN,acv,gradp
*ELEMENTOUTPUT,ELSET=STRUCT
INTEN,S
*OUTPUT,HISTORY
*NODE OUTPUT,NSET=nall
POR,U
*END STEP