Peano
Loading...
Searching...
No Matches
ScalarFieldKernels.h
Go to the documentation of this file.
1// This file is part of the ExaGRyPE project. For conditions of distribution and
2// use, please see the copyright notice at www.peano-framework.org
3#pragma once
4
5#include "tarch/tarch.h"
6#include "tarch/la/Vector.h"
7
8namespace exagrype {
9 namespace scalarfield {
13 constexpr int NumberOfUnknowns = 4;
14
20 constexpr int LapseIndex = 16;
21
33 #if defined(SharedOMP)
34 #pragma omp declare simd
35 #endif
36 double advectionVelocity(const double* const ccz4Fields, const int normal);
37
50 #if defined(SharedOMP)
51 #pragma omp declare simd
52 #endif
54 const double* const ccz4Fields,
55 const double* const deltaQ,
56 const int normal,
57 double* const BTimesDeltaQ
58 );
59
63 #if defined(SharedOMP)
64 #pragma omp declare simd
65 #endif
66 double maxEigenvalue(const double* const ccz4Fields, const int normal);
67
82 double* const Q,
83 double* const ccz4Fields,
85 );
86 }
87}
constexpr int NumberOfUnknowns
Number of unknowns of the scalar field solver (exagrype.api.scalarfield.ScalarField....
constexpr int LapseIndex
Position of the lapse in the 58 entries of first-order CCZ4 (exagrype.api.FOCCZ4Solver....
double maxEigenvalue(const double *const ccz4Fields, const int normal)
Maximum eigenvalue, i.e.
double advectionVelocity(const double *const ccz4Fields, const int normal)
Advection velocity of the scalar field along one coordinate axis.
void nonconservativeProduct(const double *const ccz4Fields, const double *const deltaQ, const int normal, double *const BTimesDeltaQ)
Non-conservative product of the advection equation.
void initialValues(double *const Q, double *const ccz4Fields, const tarch::la::Vector< Dimensions, double > &x)
Initial values: four sine waves along the x-axis with phase shifts.
This file is part of the ExaGRyPE project.
Definition __init__.py:1
Simple vector class.
Definition Vector.h:159