SpECTRE  v2024.03.19
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 = tmpl::list< domain::Tags::Coordinates< Dim, Frame::Inertial > >
 
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)\)

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