|
SpECTRE
v2026.11.17
|
Items related to solving elasticity problems. More...
Namespaces | |
| namespace | Actions |
| Actions related to solving Elasticity systems. | |
| namespace | ConstitutiveRelations |
| Constitutive (stress-strain) relations that characterize the elastic properties of a material. | |
Classes | |
| struct | FirstOrderSystem |
| The linear elasticity equation formulated as a set of coupled first-order PDEs. More... | |
| struct | Fluxes |
| Compute the fluxes \(F^i_A\) for the Elasticity equation on a flat metric in Cartesian coordinates. More... | |
Functions | |
| template<size_t Dim> | |
| void | primal_fluxes (gsl::not_null< tnsr::II< DataVector, Dim > * > minus_stress, const tnsr::iJ< DataVector, Dim > &deriv_displacement, const ConstitutiveRelations::ConstitutiveRelation< Dim > &constitutive_relation, const tnsr::I< DataVector, Dim > &coordinates) |
| Compute the fluxes \(F^{ij}=Y^{ijkl}(x) S_{kl}(x)=-T^{ij}\) for the Elasticity equation. | |
| template<size_t Dim> | |
| void | add_curved_sources (gsl::not_null< tnsr::I< DataVector, Dim > * > source_for_displacement, const tnsr::Ijj< DataVector, Dim > &christoffel_second_kind, const tnsr::i< DataVector, Dim > &christoffel_contracted, const tnsr::II< DataVector, Dim > &stress) |
| Add the contribution \(-\Gamma^i_{ik}T^{kj} - \Gamma^j_{ik}T^{ik}\) to the displacement source for the curved-space elasticity equations on a metric \(\gamma_{ij}\). | |
| template<size_t Dim> | |
| void | bulk_potential_energy_density (gsl::not_null< Scalar< DataVector > * > result, const tnsr::ii< DataVector, Dim > &strain, const tnsr::II< DataVector, Dim > &stress) |
| The bulk (volumetric) part of the potential energy density \(U_\mathrm{bulk}=-\frac{1}{2 \mathrm{Dim}} \Theta \Sigma\), where \(\Theta = S_{ii}\) is the trace of the strain and \(\Sigma = T^{ii}\) is the trace of the stress. | |
| template<size_t Dim> | |
| void | shear_potential_energy_density (gsl::not_null< Scalar< DataVector > * > result, const tnsr::ii< DataVector, Dim > &strain, const tnsr::II< DataVector, Dim > &stress) |
| The shear (deviatoric) part of the potential energy density \(U_\mathrm{shear} = -\frac{1}{2} s^{ij} e_{ij}\), computed directly from the deviatoric strain \(e_{ij} = S_{ij} - \frac{1}{\mathrm{Dim}} \delta_{ij}
\Theta\) and deviatoric stress \(s^{ij} = T^{ij} - \frac{1}{\mathrm{Dim}}
\delta^{ij} \Sigma\). | |
| template<typename DataType, size_t Dim> | |
| void | strain (gsl::not_null< tnsr::ii< DataType, Dim > * > strain, const tnsr::iJ< DataType, Dim > &deriv_displacement) |
| The symmetric strain \(S_{ij} = \partial_{(i} \xi_{j)}\) on a flat background in Cartesian coordinates. | |
| template<typename DataType, size_t Dim> | |
| void | strain (gsl::not_null< tnsr::ii< DataType, Dim > * > strain, const tnsr::iJ< DataType, Dim > &deriv_displacement, const tnsr::ii< DataType, Dim > &metric, const tnsr::ijj< DataType, Dim > &deriv_metric, const tnsr::ijj< DataType, Dim > &christoffel_first_kind, const tnsr::I< DataType, Dim > &displacement) |
| The symmetric strain \(S_{ij} = \nabla_{(i} \gamma_{j)k} \xi^k =
\partial_{(i} \gamma_{j)k} \xi^k - \Gamma_{kij} \xi^k\) on a background metric \(\gamma_{ij}\). | |
| template<size_t Dim> | |
| void | strain (gsl::not_null< tnsr::ii< DataVector, Dim > * > strain, const tnsr::I< DataVector, Dim > &displacement, const Mesh< Dim > &mesh, const InverseJacobian< DataVector, Dim, Frame::ElementLogical, Frame::Inertial > &inv_jacobian) |
| The symmetric strain \(S_{ij} = \partial_{(i} \xi_{j)}\) on a flat background in Cartesian coordinates. | |
| template<size_t Dim> | |
| void | potential_energy_density (gsl::not_null< Scalar< DataVector > * > result, const tnsr::ii< DataVector, Dim > &strain, const tnsr::II< DataVector, Dim > &stress) |
| The potential energy density \(U=-\frac{1}{2}S_{ij}T^{ij}\) stored in the deformation of the elastic material (see Eq. (11.25) in [209]) | |
| template<size_t Dim> | |
| void | potential_energy_density (gsl::not_null< Scalar< DataVector > * > result, const tnsr::ii< DataVector, Dim > &strain, const tnsr::I< DataVector, Dim > &coordinates, const ConstitutiveRelations::ConstitutiveRelation< Dim > &constitutive_relation) |
| The potential energy density \(U=-\frac{1}{2}S_{ij}T^{ij}\) stored in the deformation of the elastic material (see Eq. (11.25) in [209]) | |
| template<size_t Dim> | |
| Scalar< DataVector > | potential_energy_density (const tnsr::ii< DataVector, Dim > &strain, const tnsr::I< DataVector, Dim > &coordinates, const ConstitutiveRelations::ConstitutiveRelation< Dim > &constitutive_relation) |
| The potential energy density \(U=-\frac{1}{2}S_{ij}T^{ij}\) stored in the deformation of the elastic material (see Eq. (11.25) in [209]) | |
Items related to solving elasticity problems.
In elasticity problems we solve for the displacement vector field \(\boldsymbol{\xi}\) in an elastic material that responds to external forces, stresses or deformations. In this static approximation the equations of motion reduce to the elliptic equations
\[\nabla_i T^{ij} = f_\mathrm{ext}^j \]
that describes a state of equilibrium between the stresses \(T^{ij}\) within the material and the external body forces \(\boldsymbol{f}_\mathrm{ext}\) (Eqns. 11.13 and 11.14 in [209] with the counteracting internal forces \(\boldsymbol{f} = -\boldsymbol{f}_\mathrm{ext}\)). For small deformations (see e.g. [209], Section 11.3.2 for a discussion) the stress is related to the strain \(S_{ij}=\nabla_{(i}\xi_{j)}\) by a linear constitutive relation \(T^{ij}=-Y^{ijkl}S_{kl}\) (Eq. 11.17 in [209]) that describes the elastic properties of the material (see Elasticity::ConstitutiveRelations::ConstitutiveRelation).
| void Elasticity::add_curved_sources | ( | gsl::not_null< tnsr::I< DataVector, Dim > * > | source_for_displacement, |
| const tnsr::Ijj< DataVector, Dim > & | christoffel_second_kind, | ||
| const tnsr::i< DataVector, Dim > & | christoffel_contracted, | ||
| const tnsr::II< DataVector, Dim > & | stress ) |
Add the contribution \(-\Gamma^i_{ik}T^{kj} - \Gamma^j_{ik}T^{ik}\) to the displacement source for the curved-space elasticity equations on a metric \(\gamma_{ij}\).
These sources arise from the non-principal part of the divergence on a curved background.
| void Elasticity::bulk_potential_energy_density | ( | gsl::not_null< Scalar< DataVector > * > | result, |
| const tnsr::ii< DataVector, Dim > & | strain, | ||
| const tnsr::II< DataVector, Dim > & | stress ) |
The bulk (volumetric) part of the potential energy density \(U_\mathrm{bulk}=-\frac{1}{2 \mathrm{Dim}} \Theta \Sigma\), where \(\Theta = S_{ii}\) is the trace of the strain and \(\Sigma = T^{ii}\) is the trace of the stress.
The traces run over the Dim dimensions of the domain. Only for Dim = 3 is this the physical volumetric/deviatoric split. In 2D (plane stress) the out-of-plane strain \(S_{zz}\) is generally nonzero but not included, so the split is only the 2D trace decomposition.
| Scalar< DataVector > Elasticity::potential_energy_density | ( | const tnsr::ii< DataVector, Dim > & | strain, |
| const tnsr::I< DataVector, Dim > & | coordinates, | ||
| const ConstitutiveRelations::ConstitutiveRelation< Dim > & | constitutive_relation ) |
The potential energy density \(U=-\frac{1}{2}S_{ij}T^{ij}\) stored in the deformation of the elastic material (see Eq. (11.25) in [209])
Note that the two-dimensional instantiation of this function assumes that only the terms of \(S_{ij}T^{ij}\) where both \(i\) and \(j\) correspond to one of the computational dimensions contribute to the sum. This is the case for the plane-stress approximation employed in the two-dimensional Elasticity::ConstitutiveRelations::IsotropicHomogeneous, for example, where \(T^{i3}=0=T^{3i}\).
| void Elasticity::potential_energy_density | ( | gsl::not_null< Scalar< DataVector > * > | result, |
| const tnsr::ii< DataVector, Dim > & | strain, | ||
| const tnsr::I< DataVector, Dim > & | coordinates, | ||
| const ConstitutiveRelations::ConstitutiveRelation< Dim > & | constitutive_relation ) |
The potential energy density \(U=-\frac{1}{2}S_{ij}T^{ij}\) stored in the deformation of the elastic material (see Eq. (11.25) in [209])
Note that the two-dimensional instantiation of this function assumes that only the terms of \(S_{ij}T^{ij}\) where both \(i\) and \(j\) correspond to one of the computational dimensions contribute to the sum. This is the case for the plane-stress approximation employed in the two-dimensional Elasticity::ConstitutiveRelations::IsotropicHomogeneous, for example, where \(T^{i3}=0=T^{3i}\).
| void Elasticity::potential_energy_density | ( | gsl::not_null< Scalar< DataVector > * > | result, |
| const tnsr::ii< DataVector, Dim > & | strain, | ||
| const tnsr::II< DataVector, Dim > & | stress ) |
The potential energy density \(U=-\frac{1}{2}S_{ij}T^{ij}\) stored in the deformation of the elastic material (see Eq. (11.25) in [209])
Note that the two-dimensional instantiation of this function assumes that only the terms of \(S_{ij}T^{ij}\) where both \(i\) and \(j\) correspond to one of the computational dimensions contribute to the sum. This is the case for the plane-stress approximation employed in the two-dimensional Elasticity::ConstitutiveRelations::IsotropicHomogeneous, for example, where \(T^{i3}=0=T^{3i}\).
| void Elasticity::shear_potential_energy_density | ( | gsl::not_null< Scalar< DataVector > * > | result, |
| const tnsr::ii< DataVector, Dim > & | strain, | ||
| const tnsr::II< DataVector, Dim > & | stress ) |
The shear (deviatoric) part of the potential energy density \(U_\mathrm{shear} = -\frac{1}{2} s^{ij} e_{ij}\), computed directly from the deviatoric strain \(e_{ij} = S_{ij} - \frac{1}{\mathrm{Dim}} \delta_{ij} \Theta\) and deviatoric stress \(s^{ij} = T^{ij} - \frac{1}{\mathrm{Dim}} \delta^{ij} \Sigma\).
Bulk + shear = total (potential_energy_density) is an algebraic identity for any symmetric strain and stress. The shear part is computed independently of the total (not as total minus bulk), so checking the identity numerically tests the implementation. The traces run over the Dim dimensions of the domain; see bulk_potential_energy_density for the meaning in 2D.
| void Elasticity::strain | ( | gsl::not_null< tnsr::ii< DataVector, Dim > * > | strain, |
| const tnsr::I< DataVector, Dim > & | displacement, | ||
| const Mesh< Dim > & | mesh, | ||
| const InverseJacobian< DataVector, Dim, Frame::ElementLogical, Frame::Inertial > & | inv_jacobian ) |
The symmetric strain \(S_{ij} = \partial_{(i} \xi_{j)}\) on a flat background in Cartesian coordinates.
Note that this function involves a numeric differentiation of the displacement vector.