MAIA bb96820c
Multiphysics at AIA
Loading...
Searching...
No Matches
fvstructuredsolver2drans.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 FVSTRUCTUREDSOLVER_2DRANS
8#define FVSTRUCTUREDSOLVER_2DRANS
9
10#include "INCLUDE/maiatypes.h"
11#include "MEMORY/scratch.h"
13#include "fvstructuredsolver.h"
15
17
19 public:
22
23 // void setBndryCndObject(class StructuredBndryCnd2D* object, MInt noSpecies);
24 void initFluxMethod();
25
26 template <MInt noVars, MInt noRANS, MBool rans2eq_production_mode = false>
27 void Muscl_AusmDV();
28 template <MInt noVars, MInt noRANS, MBool rans2eq_production_mode = false>
30 template <MInt noVars, MInt noRANS, MBool rans2eq_production_mode = false>
31 void Muscl_Ausm_Limited();
33 void Muscl(MInt timerId = -1);
34
35 void viscousFluxRANS();
36 void viscousFlux_SA(); // SPALART-ALLMARAS
46
47 protected:
48 class StructuredBndryCnd2DRans* m_structuredBndryCndRans;
49
50
51 private:
54
61 std::unique_ptr<MConservativeVariables<2>>& CV;
62 std::unique_ptr<MPrimitiveVariables<2>>& PV;
63 std::unique_ptr<StructuredFQVariables>& FQ;
67 MBool m_P_keps = false;
68 static constexpr const MInt nDim = 2;
71
72 const MInt xsd = 0;
73 const MInt ysd = 1;
74
76
77 inline MInt cellIndex(MInt i, MInt j);
78 inline MInt getCellIdfromCell(MInt origin, MInt incI, MInt incJ);
79 inline MFloat getPSI(MInt, MInt);
80};
81
82#endif
2D structured solver class
std::unique_ptr< MConservativeVariables< 2 > > & CV
std::unique_ptr< MPrimitiveVariables< 2 > > & PV
std::unique_ptr< StructuredFQVariables > & FQ
void(FvStructuredSolver2DRans::* viscFluxMethod)()
class StructuredBndryCnd2DRans * m_structuredBndryCndRans
FvStructuredSolver2D * m_solver
MInt getCellIdfromCell(MInt origin, MInt incI, MInt incJ)
void(FvStructuredSolver2DRans::* reconstructSurfaceData)()
static constexpr const MInt nDim
void(FvStructuredSolver2DRans::* compTurbVisc)()
RansMethod
Definition: enums.h:51
int32_t MInt
Definition: maiatypes.h:62
double MFloat
Definition: maiatypes.h:52
bool MBool
Definition: maiatypes.h:58