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

Compute the advection velocity field \(v\) of the ScalarAdvection system. More...

#include <VelocityField.hpp>

Public Types

using argument_tags
using return_type = tnsr::I<DataVector, Dim>
using base = VelocityField<Dim>
Public Types inherited from ScalarAdvection::Tags::VelocityField< Dim >
using type = tnsr::I<DataVector, Dim>

Static Public Member Functions

static void function (const gsl::not_null< tnsr::I< DataVector, Dim > * > velocity_field, const tnsr::I< DataVector, Dim, Frame::Inertial > &inertial_coords)

Detailed Description

template<size_t Dim>
struct ScalarAdvection::Tags::VelocityFieldCompute< Dim >

Compute the advection velocity field \(v\) of the ScalarAdvection system.

  • For 1D problem, \(v(x) = 1.0\)
  • For 2D problem, \(v(x,y) = (0.5-y,-0.5+x)\)

Member Typedef Documentation

◆ argument_tags

template<size_t Dim>
using ScalarAdvection::Tags::VelocityFieldCompute< Dim >::argument_tags
Initial value:
tmpl::list<domain::Tags::Coordinates<Dim, Frame::Inertial>>

The documentation for this struct was generated from the following file:
  • src/Evolution/Systems/ScalarAdvection/VelocityField.hpp