*HEADING
EC34AFAW: Nonreflective end-condition with large drag with AC3D4
Compare IMPEDANCE WITH SIMPEDANCE, and STEADY STATE DYNAMICS, DIRECT
with SUBSPACE PROJECTION.
********************
*RESTART,WRITE
********************
**
**   Mesh Generation
**
*NODE, Nset=ODB_NSET
*NGEN,NSET=NALL
*NSET,NSET=LOAD
*NSET,NSET=QA_TEST,GENERATE
*ELEMENT,TYPE=AC3D4,ELSET=EALL
*ELGEN,ELSET=EALL
*surface,NAME=NRS
116,S2
117,S4
**  Acoustic Element Properties
**
*SOLID SECTION,MATERIAL=ABSORB,ELSET=EALL
**
*MATERIAL,NAME=ABSORB
*DENSITY
 1.21,
*ACOUSTIC MEDIUM,BULK MODULUS
*ACOUSTIC MEDIUM,VOLUMETRIC DRAG
*AMPLITUDE,NAME=OMEGA
0.,0., 1E6,6.2831853E6
************************************************
**       ** ANALYTIC SOLUTION  **
**
**  at freq=100,
**  Impedance: Z = root( K_f (rho  - i r/omega))
**               = 516.411 -307.208 i
**  Propagation constant
**             b = i (omega/K_f) Z
**               = 1.35551 + 2.27859 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)
**              = 600.8805  exp ( -1.35551 x)
**
**       Arg(p) = Arg(Z) - Im(b) x
**       ppor   = -30.74799 - 130.5534 x
**
************************************************
*STEP
*STEADY STATE DYNAMIC,DIRECT
*IMPEDANCE
 116,I2
 117,I4
**
** Conditions at x=0 : Define the source inward accel
**  to be  a =  omega i, so v (inward) = 1.
**  Area of face=4e-4. Total inward VOLUME acceleration
**  is 4e-4*a.
**  Prescribe unit _particle_ acceleration a0 inwards;
**  _volume_ acceleration ("force" for acoustics) is a0*cross-sec.
** 1/4 of this should be distributed to each
**  of the corner nodes:
*CLOAD,LOAD CASE=2, AMP=OMEGA
LOAD, 8, 1.e-4
*ENERGYPRINT
*NODE PRINT, NSET=QA_TEST
COORD,POR,PPOR
*OUTPUT,FIELD
*NODE OUTPUT
POR,
*ELEMENTOUTPUT
ENER,ELEN,ELEDEN
*OUTPUT,HISTORY
*NODE OUTPUT,NSET=QA_TEST
POR,
*ENERGYOUTPUT
ALLQB,ALLWK,ALLVD,ALLSE,ALLKE
*END STEP
**
**
*STEP
*STEADY STATE DYNAMIC,DIRECT
*SIMPEDANCE
NRS,
*CLOAD,LOAD CASE=2, AMP=OMEGA
LOAD, 8, 1.e-4
*ENERGYPRINT
*NODE PRINT, NSET=QA_TEST
COORD,POR,PPOR
*OUTPUT,FIELD
*NODE OUTPUT
POR,
*ELEMENTOUTPUT
ENER,ELEN,ELEDEN
*OUTPUT,HISTORY
*NODE OUTPUT,NSET=QA_TEST
POR,
*ENERGYOUTPUT
ALLQB,ALLWK,ALLVD,ALLSE,ALLKE
*END STEP
**
**
*STEP
*FREQUENCY,NORM=MASS,EIGENSOLVER=LANCZOS
50, , ,
*NODE PRINT,F=0
*EL PRINT,F=0
*OUTPUT,FIELD,Frequency=0
*END STEP
**
**
*STEP
*STEADY STATE DYNAMIC,SUBSPACE PROJECTION
*IMPEDANCE
 116,I2
 117,I4
*CLOAD,LOAD CASE=2, AMP=OMEGA
LOAD, 8, 1.e-4
*ENERGYPRINT
*OUTPUT,FIELD
*NODE OUTPUT
POR,
*ELEMENTOUTPUT
ENER,ELEN,ELEDEN
*OUTPUT,HISTORY
*ENERGYOUTPUT
ALLQB,ALLWK,ALLVD,ALLSE,ALLKE
*END STEP
**
*STEP
*STEADY STATE DYNAMIC,SUBSPACE PROJECTION
*SIMPEDANCE
NRS,
*CLOAD,LOAD CASE=2, AMP=OMEGA
LOAD, 8, 1.e-4
*ENERGYPRINT
*OUTPUT,FIELD
*NODE OUTPUT
POR,
*ELEMENTOUTPUT
ENER,ELEN,ELEDEN
*OUTPUT,HISTORY
*NODE OUTPUT,NSET=QA_TEST
POR,
*ENERGYOUTPUT
ALLQB,ALLWK,ALLVD,ALLSE,ALLKE
*END STEP