SpECTRE  v2026.04.01
Loading...
Searching...
No Matches
Elasticity::Tags::PotentialEnergyDensityCompute< Dim > Struct Template Reference

Computes the energy density stored in the deformation of the elastic material. More...

#include <PotentialEnergy.hpp>

Public Types

using base = Elasticity::Tags::PotentialEnergyDensity<Dim>
using return_type = Scalar<DataVector>
using argument_tags
Public Types inherited from Elasticity::Tags::PotentialEnergyDensity< Dim >
using type = Scalar<DataVector>

Static Public Attributes

static constexpr auto function

Detailed Description

template<size_t Dim>
struct Elasticity::Tags::PotentialEnergyDensityCompute< Dim >

Computes the energy density stored in the deformation of the elastic material.

See also
Elasticity::Tags::PotentialEnergyDensity

Member Typedef Documentation

◆ argument_tags

template<size_t Dim>
using Elasticity::Tags::PotentialEnergyDensityCompute< Dim >::argument_tags
Initial value:
tmpl::list<Elasticity::Tags::Strain<Dim>, Elasticity::Tags::Stress<Dim>>
The symmetric stress, i.e. , describing pressure within the elastic material.
Definition Tags.hpp:65

Member Data Documentation

◆ function

template<size_t Dim>
auto Elasticity::Tags::PotentialEnergyDensityCompute< Dim >::function
staticconstexpr
Initial value:
= static_cast<void (*)(
gsl::not_null<Scalar<DataVector>*>, const tnsr::ii<DataVector, Dim>&,
const tnsr::II<DataVector, Dim>&)>(&potential_energy_density<Dim>)
Require a pointer to not be a nullptr
Definition Gsl.hpp:197
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 stored in the deformation of the elastic material (see Eq....

The documentation for this struct was generated from the following file:
  • src/PointwiseFunctions/Elasticity/PotentialEnergy.hpp