Reducing the time step merely delays the problem. Petsc runs into error (error code 55: Out of memory) after some time steps are executed. Please find attached the revised code. I have reduced the time step to 10 ns and try to run the simulation for around
 30000 time steps.  I would really appreciate your help on this. The simulation essentially should trigger elastic waves that travel along the pipe. That does not seem to happen with the results obtained for the converged time steps.
Hi Abhishek,
I think the explicit time integrator (central difference for acceleration + evaluation at $u_n$ for stress) requires a small enough timestep for stability. If I run PipeKMVExptrac.py with mus=1e-6 and Nsteps  = 40, I see the solution diverge, but if I use mus=5e-7
 and Nsteps  = 80, I do not.
Please let us know if it does not resolve the issue.
Thanks,
Koki
From: firedrake-bounces@imperial.ac.uk <firedrake-bounces@imperial.ac.uk> on behalf of Venketeswaran, Abhishek (FN) <Abhishek.Venketeswaran@netl.doe.gov>
Sent: Wednesday, January 12, 2022 10:31 PM
To: firedrake <firedrake@imperial.ac.uk>
Subject: [firedrake] Elastic Wave Propagation in Pipe Simulation Failing
 
 
Hi,
I have spent considerable time trying to debug my code and am not able to find the bug in the code. I am essentially trying to simulate 3D elastic wave propagation in a pipe fixed on both ends and having an ultrasonic collar triggering ultrasonic impulse on
 a portion of the outer pipe segment. I would ideally like to use the KMV elements (similar to the spyro package). I generated a tetrahedral mesh of the pipe using GMsh and labeled the ends of the pipe using tag "1" and the collar segment as "2". Next I wrote
 the UFL expressions for 2nd order central difference for acceleration term and the elasticity as well as traction terms. The code runs but the displacement at certain nodes diverges to infinity and results in nonsensical results. I have tried multiple things
 including
- specifying the collar load as displacement as well as traction
- trying out KMV and CG element
- trying out different KSP methods and preconditioners
- Formulating the problem using semi-implicit HHT as well as second order explicit difference method
- Ensuring the Gamma value of the tetrahedral mesh is atleast 0.2
I would really appreciate  it if someone could help me out with this.
 
--
Abhishek Venketeswaran
NETL Research Associate - ORISE
National Energy Technology Laboratory
Department of Energy
abhishek.venketeswaran@netl.doe.gov
Work: 412-386-4833
Mobile: 716-507-7890
 
 
 
 
********************************************************************
This message does not originate from a known Department of Energy email system.
Use caution if this message contains attachments, links or requests for information.
********************************************************************