https://mooseframework.inl.gov
Loading...
Searching...
No Matches
TotalLagrangianStressDivergenceBase.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11
12template <class G>
15{
17 // This kernel requires use_displaced_mesh to be off
18 params.suppressParameter<bool>("use_displaced_mesh");
19 return params;
20}
21
22template <class G>
24 const InputParameters & parameters)
26 _pk1(getMaterialPropertyByName<RankTwoTensor>(_base_name + "pk1_stress")),
27 _dpk1(getMaterialPropertyByName<RankFourTensor>(_base_name + "pk1_jacobian")),
28 _dpk1_d_grad_u(getMaterialPropertyByName<RankFourTensor>(_base_name + "dpk1_d_grad_u")),
29 _dpk1_bypass_fbar(
30 getMaterialPropertyByName<RankFourTensor>(_base_name + "pk1_jacobian_bypass_fbar"))
31{
32}
33
34template <class G>
37{
38 // F-bar doesn't modify the test function
39 return G::gradOp(component, _grad_test[_i][_qp], _test[_i][_qp], _q_point[_qp]);
40}
41
42template <class G>
45{
46 // pk1_jacobian = dPK1/d(F_ust) already contains the local F-bar contribution (via the
47 // sigma-chain through `_d_F_stab_d_F_ust`). The trial gradient is always unstabilized; the
48 // non-local F-bar Jacobian contribution is added explicitly in `computeQpJacobianDisplacement`.
49 return gradTrialUnstabilized(component);
50}
51
52template <class G>
55{
56 // Without F-bar stabilization, simply return the gradient of the trial functions
57 return G::gradOp(component, _grad_phi[_j][_qp], _phi[_j][_qp], _q_point[_qp]);
58}
59
60template <class G>
61void
63{
64 // For total Lagrangian, the averaging is taken on the reference frame regardless of geometric
65 // nonlinearity. The stored quantity is what the strain calc's `_d_F_stab_d_F_avg` contracts
66 // with: deltaF_avg in `F_bar_mode = total`, deltaf_avg in `F_bar_mode = incremental`.
67 // total: avg_q(grad_phi[j][q]) -> deltaF_avg per DOF
68 // incremental: avg_q(grad_phi[j][q] * F_ust_old[q]^{-1})
69 // -> deltaf_avg per DOF
70 // (since f_ust = F_ust * F_ust_old^{-1} and F_ust_old is fixed w.r.t. the
71 // current Newton iterate's disp, so deltaf_ust = deltaF_ust * F_ust_old^{-1}).
72 const bool incremental = (_F_bar_mode == FBarMode::Incremental);
73 // F_ust_old[qp]^{-1} depends only on qp, but the average below runs once per trial DOF j.
74 // Precompute the per-qp inverse once instead of re-inverting the 3x3 for every (qp, j).
75 std::vector<RankTwoTensor> f_ust_old_inv;
76 if (incremental)
77 {
78 f_ust_old_inv.resize(_qrule->n_points());
79 for (const auto qp : make_range(_qrule->n_points()))
80 f_ust_old_inv[qp] = _F_ust_old[qp].inverse();
81 }
82 for (auto j : make_range(_phi.size()))
83 _avg_grad_trial[component][j] = StabilizationUtils::elementAverage(
84 [this, component, j, incremental, &f_ust_old_inv](unsigned int qp)
85 {
86 const RankTwoTensor g = G::gradOp(component, _grad_phi[j][qp], _phi[j][qp], _q_point[qp]);
87 return incremental ? g * f_ust_old_inv[qp] : g;
88 },
89 _JxW,
90 _coord);
91}
92
93template <class G>
94void
96{
97 LagrangianStressDivergenceBase::precalculateResidual();
98 if (_stabilize_strain && _F_bar_mode == FBarMode::Incremental)
99 {
100 computeAverageGradientSpatialTest();
101 cachePK1ContractionFUst();
102 }
103}
104
105template <class G>
106void
108{
109 const unsigned int n_qp = _qrule->n_points();
110 _pk1_ddot_F_ust.assign(n_qp, 0.0);
111 for (const auto qp : make_range(n_qp))
112 _pk1_ddot_F_ust[qp] = _pk1[qp].doubleContraction(_F_ust[qp]);
113}
114
115template <class G>
116void
118{
120 // Populate the per-(qp, j) local PK1 chain cache for the diagonal column (beta = _alpha).
121 // Runs regardless of `_stabilize_strain` because the local chain is always needed; the
122 // helper itself only touches `_avg_grad_trial` when stab is on.
123 populateLocalPK1Cache(_alpha);
124 if (_stabilize_strain && _F_bar_mode == FBarMode::Incremental)
125 {
126 computeAverageGradientSpatialTest();
127 computeAverageGradientSpatialPhi(_alpha);
128 computeAvgTestPhiCross(_alpha);
129 }
130}
131
132template <class G>
133void
135{
137 // Populate the per-(qp, j) local PK1 chain cache for the matched off-diagonal beta.
138 for (auto beta : make_range(_ndisp))
139 if (jvar == _disp_nums[beta])
140 {
141 populateLocalPK1Cache(beta);
142 if (_stabilize_strain && _F_bar_mode == FBarMode::Incremental)
143 {
144 computeAverageGradientSpatialTest();
145 computeAverageGradientSpatialPhi(beta);
146 computeAvgTestPhiCross(beta);
147 }
148 break;
149 }
150}
151
152template <class G>
153void
155{
156 const unsigned int n_qp = _qrule->n_points();
157 const unsigned int n_phi = _phi.size();
158 _dpk1_grad_trial_cache.assign(n_qp, std::vector<RankTwoTensor>(n_phi));
159 _grad_trial_cache.assign(n_qp, std::vector<RankTwoTensor>(n_phi));
160 if (_stabilize_strain)
161 {
162 _delta_PK1_NL_cache.assign(n_qp, std::vector<RankTwoTensor>(n_phi));
163 _dpk1_total_cache.assign(n_qp, std::vector<RankTwoTensor>(n_phi));
164 }
165
166 // B-bar volumetric correction (incremental mode only): cache the column-independent
167 // `pk1 : F_ust` per qp and the per-(qp, j) `dA/dU` term so the Jacobian inner loop reads
168 // scalars instead of recomputing three double contractions per (_i, _j, component).
169 const bool bbar = _stabilize_strain && _F_bar_mode == FBarMode::Incremental;
170 if (bbar)
171 {
172 cachePK1ContractionFUst();
173 _dA_dU_cache.assign(n_qp, std::vector<Real>(n_phi));
174 }
175
176 for (unsigned int qp = 0; qp < n_qp; ++qp)
177 {
178 const RankFourTensor & dpk1 = _dpk1_d_grad_u[qp];
179 const RankFourTensor & dFdGU = _d_F_d_grad_u[qp];
180 for (unsigned int j = 0; j < n_phi; ++j)
181 {
182 // gradTrial == gradTrialUnstabilized in TL (line ~50); single cache feeds both consumers.
183 const RankTwoTensor grad_trial = G::gradOp(beta, _grad_phi[j][qp], _phi[j][qp], _q_point[qp]);
184 _grad_trial_cache[qp][j] = grad_trial;
185 _dpk1_grad_trial_cache[qp][j] = dpk1 * grad_trial;
186 if (_stabilize_strain)
187 {
188 // Compose the full non-local F-bar PK1 perturbation:
189 // deltasigma_NL = D_nl[qp] * (_d_F_d_grad_u[qp] * _avg_grad_trial[beta][j])
190 // deltaPK1_NL = det(F_ust) * deltasigma_NL * F_ust^{-T} (large kinematics)
191 // = deltasigma_NL (small kinematics)
192 // D_nl (`_d_nl_fbar`), det(F_ust), and F_ust^{-1} are all per-qp material properties
193 // from the stress/strain materials -- no kernel-side cache.
194 const RankTwoTensor delta_F_avg = dFdGU * _avg_grad_trial[beta][j];
195 const RankTwoTensor delta_sigma_nl = (*_d_nl_fbar)[qp] * delta_F_avg;
196 if (_large_kinematics)
197 _delta_PK1_NL_cache[qp][j] =
198 (*_F_ust_det)[qp] * delta_sigma_nl * (*_F_ust_inv)[qp].transpose();
199 else
200 _delta_PK1_NL_cache[qp][j] = delta_sigma_nl;
201 // Local + non-local PK1 derivative: the single tensor the disp Jacobian contracts against.
202 _dpk1_total_cache[qp][j] = _dpk1_grad_trial_cache[qp][j] + _delta_PK1_NL_cache[qp][j];
203 }
204 // dA/dU = [ (dPK1_local + dPK1_NL) : F_ust + pk1 : dF_ust ] / 3, all per (qp, j).
205 if (bbar)
206 _dA_dU_cache[qp][j] = (_dpk1_total_cache[qp][j].doubleContraction(_F_ust[qp]) +
207 _pk1[qp].doubleContraction(_grad_trial_cache[qp][j])) /
208 3.0;
209 }
210 }
211}
212
213template <class G>
214Real
216{
217 // (grad_x test_i)_component = (grad_X test_i)_j (F_ust^{-1})_{j, component}
218 // Push-forward via F_ust (= F_actual at alpha=1) matches the PK1 wrap. F_ust^{-1} is a
219 // material property (computed once per qp by the strain calc), not recomputed here.
220 if (!_large_kinematics)
221 return _grad_test[_i][_qp](component);
222 const RankTwoTensor & F_inv = (*_F_ust_inv)[_qp];
223 Real out = 0.0;
224 for (unsigned int j = 0; j < 3; ++j)
225 out += _grad_test[_i][_qp](j) * F_inv(j, component);
226 return out;
227}
228
229template <class G>
230Real
232{
233 if (!_large_kinematics)
234 return _grad_phi[_j][_qp](component);
235 const RankTwoTensor & F_inv = (*_F_ust_inv)[_qp];
236 Real out = 0.0;
237 for (unsigned int j = 0; j < 3; ++j)
238 out += _grad_phi[_j][_qp](j) * F_inv(j, component);
239 return out;
240}
241
242template <class G>
243void
245{
246 // _avg_grad_spatial_test[i] = (1/V_x) int (grad_x test_i)_alpha dV_x
247 // = (sum_qp (grad_X test_i)_j (F_ust^{-1})_{j, _alpha} * J_ust * w)
248 // / (sum_qp J_ust * w), w = JxW * coord
249 // For small kinematics, F_ust = I, J_ust = 1, reducing to OLD's element-averaged grad_test.
250 _avg_grad_spatial_test.assign(_test.size(), 0.0);
251 Real V_x = 0.0;
252 for (unsigned int qp = 0; qp < _qrule->n_points(); ++qp)
253 {
254 const Real J = _large_kinematics ? (*_F_ust_det)[qp] : 1.0;
255 const Real w = J * _JxW[qp] * _coord[qp];
256 V_x += w;
257 const RankTwoTensor F_inv = _large_kinematics ? (*_F_ust_inv)[qp] : RankTwoTensor::Identity();
258 for (unsigned int i = 0; i < _test.size(); ++i)
259 {
260 Real g_x = 0.0;
261 for (unsigned int j = 0; j < 3; ++j)
262 g_x += _grad_test[i][qp](j) * F_inv(j, _alpha);
263 _avg_grad_spatial_test[i] += g_x * w;
264 }
265 }
266 for (unsigned int i = 0; i < _test.size(); ++i)
267 _avg_grad_spatial_test[i] /= V_x;
268}
269
270template <class G>
271void
273{
274 // Same structure as computeAverageGradientSpatialTest, but for trial functions and component
275 // beta.
276 _avg_grad_spatial_phi[beta].assign(_phi.size(), 0.0);
277 Real V_x = 0.0;
278 for (unsigned int qp = 0; qp < _qrule->n_points(); ++qp)
279 {
280 const Real J = _large_kinematics ? (*_F_ust_det)[qp] : 1.0;
281 const Real w = J * _JxW[qp] * _coord[qp];
282 V_x += w;
283 const RankTwoTensor F_inv = _large_kinematics ? (*_F_ust_inv)[qp] : RankTwoTensor::Identity();
284 for (unsigned int j = 0; j < _phi.size(); ++j)
285 {
286 Real g_x = 0.0;
287 for (unsigned int k = 0; k < 3; ++k)
288 g_x += _grad_phi[j][qp](k) * F_inv(k, beta);
289 _avg_grad_spatial_phi[beta][j] += g_x * w;
290 }
291 }
292 for (unsigned int j = 0; j < _phi.size(); ++j)
293 _avg_grad_spatial_phi[beta][j] /= V_x;
294}
295
296template <class G>
297void
299{
300 // Populate the cross-products
301 // _avg_test_phi_cross[b1][b2][i][j] = (1/V_x) int (grad_x test_i)_{b1} * (grad_x phi_j)_{b2}
302 // dV_x
303 // for the 4 combinations of (b1, b2) in {_alpha, beta}. The d(avg_grad_spatial_test)/dU
304 // term in the B-bar Jacobian needs both (alpha, beta) and (beta, alpha) entries; the
305 // diagonal (alpha == beta) collapses to a single combination.
306 const unsigned int n_test = _test.size();
307 const unsigned int n_phi = _phi.size();
308 std::vector<unsigned int> bs = {_alpha};
309 if (beta != _alpha)
310 bs.push_back(beta);
311 // Zero out and resize the affected slots
312 for (auto b1 : bs)
313 for (auto b2 : bs)
314 {
315 _avg_test_phi_cross[b1][b2].assign(n_test, std::vector<Real>(n_phi, 0.0));
316 }
317 Real V_x = 0.0;
318 // Cache (grad_x test_i)_{b1} and (grad_x phi_j)_{b2} per qp to avoid recomputing for
319 // each (i, j) pair.
320 std::vector<std::vector<Real>> gx_test(bs.size(), std::vector<Real>(n_test, 0.0));
321 std::vector<std::vector<Real>> gx_phi(bs.size(), std::vector<Real>(n_phi, 0.0));
322 for (unsigned int qp = 0; qp < _qrule->n_points(); ++qp)
323 {
324 const Real J = _large_kinematics ? (*_F_ust_det)[qp] : 1.0;
325 const Real w = J * _JxW[qp] * _coord[qp];
326 V_x += w;
327 const RankTwoTensor F_inv = _large_kinematics ? (*_F_ust_inv)[qp] : RankTwoTensor::Identity();
328 for (unsigned int bi = 0; bi < bs.size(); ++bi)
329 {
330 const unsigned int b = bs[bi];
331 for (unsigned int i = 0; i < n_test; ++i)
332 {
333 Real g = 0.0;
334 for (unsigned int k = 0; k < 3; ++k)
335 g += _grad_test[i][qp](k) * F_inv(k, b);
336 gx_test[bi][i] = g;
337 }
338 for (unsigned int j = 0; j < n_phi; ++j)
339 {
340 Real g = 0.0;
341 for (unsigned int k = 0; k < 3; ++k)
342 g += _grad_phi[j][qp](k) * F_inv(k, b);
343 gx_phi[bi][j] = g;
344 }
345 }
346 for (unsigned int b1i = 0; b1i < bs.size(); ++b1i)
347 for (unsigned int b2i = 0; b2i < bs.size(); ++b2i)
348 {
349 const unsigned int b1 = bs[b1i];
350 const unsigned int b2 = bs[b2i];
351 auto & dest = _avg_test_phi_cross[b1][b2];
352 for (unsigned int i = 0; i < n_test; ++i)
353 for (unsigned int j = 0; j < n_phi; ++j)
354 dest[i][j] += gx_test[b1i][i] * gx_phi[b2i][j] * w;
355 }
356 }
357 for (auto b1 : bs)
358 for (auto b2 : bs)
359 {
360 auto & dest = _avg_test_phi_cross[b1][b2];
361 for (unsigned int i = 0; i < n_test; ++i)
362 for (unsigned int j = 0; j < n_phi; ++j)
363 dest[i][j] /= V_x;
364 }
365}
366
367template <class G>
368Real
370{
371 Real result = gradTest(_alpha).doubleContraction(_pk1[_qp]);
372
373 // OLD-compat B-bar volumetric correction (only in `F_bar_mode = incremental`, the explicit
374 // OLD-compat mode). This adds
375 // int (tr sigma / 3) * (avg_grad_x test - grad_x test)_alpha dV_x
376 // expressed in reference-frame integration as
377 // sum_qp ((PK1 : F_ust) / 3) * (avg_grad_spatial_test[_i] - grad_x_test_alpha) * JxW * coord
378 // (the J = det(F_ust) factor is already absorbed into `PK1 : F_ust = J * tr sigma`).
379 // Without this term, PK1 = det(F_ust) sigma F_ust^{-T} reproduces OLD's `sigma : grad_x test`
380 // term but not OLD's vol-locking correction; for uniform sigma that's harmless (the integral
381 // vanishes per element) but for non-uniform sigma -- e.g. mixed-component Dirichlet BCs producing
382 // non-affine equilibrium with plasticity + a kinematic decomposition that gives spatially varying
383 // sigma -- it drives the converged displacement away from OLD's. Scoped to incremental mode
384 // because (a) that's the documented OLD-compat F-bar mode and (b) the existing `total` mode tests
385 // are calibrated to the F-bar-in-sigma-only formulation (adding the B-bar term there would be
386 // a separate behavior change).
387 if (_stabilize_strain && _F_bar_mode == FBarMode::Incremental)
388 {
389 const Real PK1_F_over_3 = _pk1_ddot_F_ust[_qp] / 3.0;
390 result += PK1_F_over_3 * (_avg_grad_spatial_test[_i] - gradXTestComponent(_alpha));
391 }
392 return result;
393}
394
395template <class G>
396Real
398 unsigned int beta)
399{
400 // gradTest(alpha) feeds the local Jacobian contraction below.
401 const RankTwoTensor grad_test = gradTest(alpha);
402
403 // Local (+ non-local F-bar) Jacobian: J_{alpha beta} = gradTest_alpha : dPK1_total, where
404 // dPK1_total = dPK1/d(grad u) * grad_phi_beta (local) plus the wrapped non-local F-bar
405 // perturbation. Both pieces depend only on (qp, j) and are precomputed and pre-summed into
406 // `_dpk1_total_cache` by `populateLocalPK1Cache(beta)`, so a single contraction covers both.
407 // Without stabilization there is no non-local piece, so the local cache is contracted directly.
408 Real J = grad_test.doubleContraction(_stabilize_strain ? _dpk1_total_cache[_qp][_j]
409 : _dpk1_grad_trial_cache[_qp][_j]);
410
411 // OLD-compat B-bar volumetric correction Jacobian (only in `F_bar_mode = incremental`).
412 // The residual added the term R_extra = (PK1:F_ust)/3 * (avg_T - T_alpha) summed over qps.
413 // Linearizing per (i, j, alpha, beta):
414 // J_extra_qp = (1/3) * d(PK1:F_ust)/dU * (avg_T - T_alpha)
415 // + (1/3) * (PK1:F_ust) * (d(avg_T)/dU - dT_alpha/dU)
416 // with derivatives in U (the trial-DOF for component beta at node j):
417 // d(PK1:F_ust)/dU|qp = (dPK1_local + dPK1_NL) : F_ust + PK1 : dF_ust_local
418 // dPK1_local = _dpk1_grad_trial_cache[_qp][_j] (cached above)
419 // dPK1_NL = d_PK1_NL (cached above)
420 // dF_ust = _grad_trial_cache[_qp][_j] (cached unstabilized trial)
421 // dT_alpha/dU|qp = -(grad_x test_i)_beta * (grad_x phi_j)_alpha (local cross)
422 // d(avg_T)/dU = avgCross(alpha, beta) - avgCross(beta, alpha) - avg_T(i) *
423 // avg_grad_spatial_phi[beta][j]
424 // avgCross(b1, b2) = _avg_test_phi_cross[b1][b2][i][j] (precomputed)
425 if (_stabilize_strain && _F_bar_mode == FBarMode::Incremental)
426 {
427 // A_qp (= pk1:F_ust/3, per qp) and dA_dU (per qp, j) are precomputed in
428 // `cachePK1ContractionFUst` / `populateLocalPK1Cache` -- no double contractions here.
429 const Real A_qp = _pk1_ddot_F_ust[_qp] / 3.0;
430 const Real avg_T = _avg_grad_spatial_test[_i];
431 const Real T_alpha = gradXTestComponent(alpha);
432 const Real B = avg_T - T_alpha;
433
434 const Real dA_dU = _dA_dU_cache[_qp][_j];
435
436 // dB/dU: -dT_alpha/dU + d(avg_T)/dU
437 // dT_alpha/dU = -(grad_x test_i)_beta * (grad_x phi_j)_alpha (local cross at _qp)
438 const Real T_beta_i = gradXTestComponent(beta);
439 const Real phi_alpha_j = gradXPhiComponent(alpha);
440 const Real dT_alpha_dU = -T_beta_i * phi_alpha_j;
441
442 const Real avg_cross_ab = _avg_test_phi_cross[alpha][beta][_i][_j];
443 const Real avg_cross_ba = _avg_test_phi_cross[beta][alpha][_i][_j];
444 const Real d_avg_T_dU = avg_cross_ab - avg_cross_ba - avg_T * _avg_grad_spatial_phi[beta][_j];
445
446 const Real dB_dU = d_avg_T_dU - dT_alpha_dU;
447 J += dA_dU * B + A_qp * dB_dU;
448 }
449
450 return J;
451}
452
453template <class G>
454Real
456{
457 // Multiple eigenstrains may depend on the same coupled var
458 RankTwoTensor total_deigen;
459 for (const auto deigen_darg : _deigenstrain_dargs[cvar])
460 total_deigen += (*deigen_darg)[_qp];
461
462 // No eigenstrain -> no temperature coupling. Short-circuit before dereferencing the
463 // d_sigma/d_eigenstrain property (only fetched when eigenstrains are coupled; see
464 // LagrangianStressDivergenceBase ctor).
465 if (total_deigen.L2norm() == 0.0)
466 return 0.0;
467
468 // Direct chain through the constitutive update. The stress material publishes
469 // d_sigma/d_eigenstrain (= -Jinv * small_jacobian for the objective-rate path,
470 // with the sign convention that an eigenstrain increase
471 // reduces the mechanical strain).
472 // We then wrap to PK1 the same way the residual does:
473 // dP/dT = det(F) * dsigma/dT * F^{-T} (large kinematics)
474 // dP/dT = dsigma/dT (small kinematics, P == sigma by convention)
475 const RankTwoTensor dsigma_dT = (*_dcauchy_stress_d_eigenstrain)[_qp] * total_deigen;
476 RankTwoTensor dP_dT;
477 if (_large_kinematics)
478 dP_dT = _F[_qp].det() * dsigma_dT * _F_inv[_qp].transpose();
479 else
480 dP_dT = dsigma_dT;
481 return dP_dT.doubleContraction(gradTest(_alpha)) * _temperature->phi()[_j][_qp];
482}
483
484template <class G>
485Real
487{
488 // d(R_disp_alpha)/d(strain_zz_j) at qp = gradTest_alpha : d(PK1)/d(strain_zz_j).
489 // strain_zz feeds `_F[(2,2)]` AFTER F-bar runs in `ComputeLagrangianWPSStrain`, so
490 // strain_zz perturbations bypass F-bar's chain. Use `_dpk1_bypass_fbar` (= the
491 // pk1_jacobian variant computed with the F-bar `_d_F_stab_d_F_ust` factor REPLACED
492 // by identity in the sigma chain) for a consistent Jacobian.
493 return _dpk1_bypass_fbar[_qp].contractionKl(2, 2, gradTest(_alpha)) *
494 _out_of_plane_strain->phi()[_j][_qp];
495}
496
void suppressParameter(const std::string &name)
Base class of the "Lagrangian" kernel system.
virtual void precalculateOffDiagJacobian(unsigned int jvar) override
T doubleContraction(const RankTwoTensorTempl< T > &a) const
RankTwoTensorTempl< T > transpose() const
static RankTwoTensorTempl Identity()
Enforce equilibrium with a total Lagrangian formulation.
void computeAvgTestPhiCross(unsigned int beta)
Compute element-averaged cross product (grad_x test_i)_{b1} * (grad_x phi_j)_{b2} for b1,...
virtual RankTwoTensor gradTrial(unsigned int component) override
virtual Real computeQpJacobianTemperature(unsigned int cvar) override
void cachePK1ContractionFUst()
Cache pk1 : F_ust per qp (the J * tr(sigma) factor of the B-bar volumetric correction).
virtual RankTwoTensor gradTrialUnstabilized(unsigned int component)
The unstabilized trial function gradient.
virtual void precalculateOffDiagJacobian(unsigned int jvar) override
virtual void precalculateJacobianDisplacement(unsigned int component) override
Prepare the average shape function gradients for stabilization.
void computeAverageGradientSpatialTest()
Compute element-averaged spatial gradient of test functions for component _alpha, filling _avg_grad_s...
virtual RankTwoTensor gradTest(unsigned int component) override
void computeAverageGradientSpatialPhi(unsigned int beta)
Compute element-averaged spatial gradient of trial functions for component beta, filling _avg_grad_sp...
virtual Real computeQpJacobianDisplacement(unsigned int alpha, unsigned int beta) override
TotalLagrangianStressDivergenceBase(const InputParameters &parameters)
Real gradXTestComponent(unsigned int component) const
(grad_x test_i)_component at the current _qp, where the push-forward uses the unstabilized F (= F_act...
Real gradXPhiComponent(unsigned int component) const
(grad_x phi_j)_component at the current _qp, same push-forward as gradXTestComponent.
void populateLocalPK1Cache(unsigned int beta)
Populate the per-(qp, j) caches consumed by computeQpJacobianDisplacement.
auto elementAverage(const Functor &f, const MooseArray< Real > &JxW, const MooseArray< Real > &coord)