SpECTRE  v2025.03.17
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
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 = implementation defined
 
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.5y,0.5+x)

The documentation for this struct was generated from the following file: