Accessing dt within residual kernel

Hello,

I am trying to write out the f0p residual kernel for poroelasticity in a manner that is usable for both quasi-static and dynamic formulations. As it stands, the QS formulation solves for three variables displacement, pressure, and volumetric strain (u, p, \epsilon_{v}), while the dynamic solves for (u, p, v), where v stands for velocity.

The f0p residual kernel is the one for time variation in fluid content, and as such contains a term that includes \frac{\partial \epsilon_{v}}{\partial t}. I would prefer to solve this by dividing the trace of the strain tensor by the timestep length (dt), but am unsure as how to access the value for dt within a kernel callback function, or even if it is possible.

Please advise,

Robert

Hi Robert,

Brad can give accurate details on this, but in the header of the kernels you have “s_t[]” and “a_t[]” which are time derivatives of the solution and auxiliary fields, respectively.

I guess that, if in the dynamic solve \epsilon_{v} (trace of the strain tensor) is an auxiliary field, then to obtain \frac{\partial \epsilon_{v}}{\partial t} one could call “a_t[i_strain]”, where i_strain is the index of the trace strain ?

Thanks,
Josimar

Why are you including the volumetric strain in the quasi-static solution but not the dynamic solution?

If the volumetric strain is a solution subfield, then its time derivative is available in s_t (time derivative of the solution), which is passed in as an argument for the LHS kernels.

If the volumetric strain is not a solution subfield, you can calculate its time derivative from the velocity, which is passed in as an argument via s_t for the LHS kernels.

The logic is that the dynamic case will be solved explicitly anyway, and as volumetric strain is included in QS for a reason that Matt is better apt to explain than I, it would just be more jacobians terms to keep track of to include it in dynamic.

Are you suggesting to just take the divergence of velocity rather than displacement?

  1. It is legitimate to consider eliminating the volumetric strain in the time-dependent formulation, but I would prefer if we had a version which made as few changes as possible first.

  2. Note that we have factored the time dependence from a second order system to two first order systems, so that we have two fields, displacement and velocity. I believe the kernel for displacement should look very much like quasi-static, except that you have v_t in it for the inertial term. The v kernel is probably just v - u_t.