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

Computes the bulk (volumetric) part of the potential energy density, \(U_\mathrm{bulk}=-\frac{1}{2 \mathrm{Dim}} \Theta \Sigma\), from the strain and the stress. The traces run over the Dim dimensions of the domain, so this is the physical volumetric part only in 3D. More...

#include <PotentialEnergy.hpp>

Public Types

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

Static Public Attributes

static constexpr auto function

Detailed Description

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

Computes the bulk (volumetric) part of the potential energy density, \(U_\mathrm{bulk}=-\frac{1}{2 \mathrm{Dim}} \Theta \Sigma\), from the strain and the stress. The traces run over the Dim dimensions of the domain, so this is the physical volumetric part only in 3D.

See also
Elasticity::Tags::BulkPotentialEnergyDensity

Member Typedef Documentation

◆ argument_tags

template<size_t Dim>
using Elasticity::Tags::BulkPotentialEnergyDensityCompute< 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::BulkPotentialEnergyDensityCompute< Dim >::function
staticconstexpr
Initial value:
= static_cast<void (*)(
gsl::not_null<Scalar<DataVector>*>, const tnsr::ii<DataVector, Dim>&,
const tnsr::II<DataVector, Dim>&)>(&bulk_potential_energy_density<Dim>)
Require a pointer to not be a nullptr
Definition Gsl.hpp:225
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 , where is the trace of the strain and i...

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