MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
fvcartesianapesolver2d.h
Go to the documentation of this file.
1// Copyright (C) 2024 The m-AIA AUTHORS
2//
3// This file is part of m-AIA (https://git.rwth-aachen.de/aia/m-AIA/m-AIA)
4//
5// SPDX-License-Identifier: LGPL-3.0-only
6
7#ifndef FVAPESOLVER2D_H_
8#define FVAPESOLVER2D_H_
9
10#include "fvcartesiansolverxd.h"
11#include "fvcartesiansyseqnns.h"
12
13
14class FvApeSolver2D : public FvCartesianSolverXD<2, FvSysEqnNS<2>> {
15 public:
16 FvApeSolver2D(MInt, MInt, MBool*, maia::grid::Proxy<2>& gridProxy_, Geometry<2>& geometry_, const MPI_Comm comm);
17 void Ausm();
18 MBool maxResidual(MInt /*mode*/);
20
21 private:
22 static constexpr const MInt nDim = 2;
23};
24
25// TODO labels:FV
26// 1) Add the following methods (copy from original FV code and modify for APE):
27// - Ausm
28// - computePrimitiveVariables
29// - computeConservativeVariables
30// - viscousFlux
31// - maxResidual (?)
32// - lhsBnd (?)
33//
34// 2) Define new boundary conditions
35//
36// 3) Define new initial condition for first test
37//
38// Overall strategy:
39// - Use FV solver "as-is", i.e., only modify as little as absolutely necessary
40// - Continue to use variable names and nDim+2 variables: u, v, w, p are to be their perturbed
41// counterparts; set rho to be constant everywhere and just ignore it wherever possible
42// - Primitive/conservative variables: use same variables everywhere
43
44#endif // ifndef FVAPESOLVER2D_H_
MBool maxResidual(MInt)
Computes the global root-mean-square residual. The residual is defined as time derivative of conserva...
void Ausm()
Dispatches the AUSM flux computation for different number of species.
MFloat m_advectionVelocity[nDim]
static constexpr const MInt nDim
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52
bool MBool
Definition: maiatypes.h:58