Documentation a537f1bdf2
Loading...
Searching...
No Matches
CGhostFlowVariable.hpp
Go to the documentation of this file.
1/*!
2 * \file CGhostFlowVariable.hpp
3 * \brief Flow variables of the ghost points of one scalar solver's boundary marker.
4 * \author P. Gomes
5 * \version 8.5.0 "Harrier"
6 *
7 * SU2 Project Website: https://su2code.github.io
8 *
9 * The SU2 Project is maintained by the SU2 Foundation
10 * (http://su2foundation.org)
11 *
12 * Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
13 *
14 * SU2 is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2.1 of the License, or (at your option) any later version.
18 *
19 * SU2 is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with SU2. If not, see <http://www.gnu.org/licenses/>.
26 */
27
28#pragma once
29
30#include "CFlowVariable.hpp"
31
32/*!
33 * \class CGhostFlowVariable
34 * \brief Flow variables of the ghost points of one marker, indexed by vertex.
35 * \note Sized to the largest marker and to the primitive layout of the flow solver, so one set
36 * of indices reads the ghost points and the interior ones. Only the primitives the flux
37 * kernels read are filled by the boundary's fill pass (density, velocity, laminar and
38 * eddy viscosity); the gradients, the limiters and the non-physical edge counter are not,
39 * and the first order boundary path does not read them.
40 */
41class CGhostFlowVariable final : public CFlowVariable {
42 public:
43 CGhostFlowVariable(unsigned long npoint, unsigned long ndim, unsigned long nvar, unsigned long nprimvar,
44 unsigned long nprimvargrad, const CConfig* config)
45 : CFlowVariable(npoint, ndim, nvar, nprimvar, nprimvargrad, config) {}
46
47 /*!
48 * \brief Never read: a ghost is not part of the dual-time residual, only its primitives are.
49 */
50 inline su2double GetDensity_time_n(unsigned long) const override { return 0.0; }
51 inline su2double GetDensity_time_n1(unsigned long) const override { return 0.0; }
52};
Class for defining the common variables of flow solvers.
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Class for defining the common variables of flow solvers.
Definition CFlowVariable.hpp:38
Flow variables of the ghost points of one marker, indexed by vertex.
Definition CGhostFlowVariable.hpp:41
su2double GetDensity_time_n1(unsigned long) const override
Get the density at time level n-1 for dual-time stepping.
Definition CGhostFlowVariable.hpp:51
su2double GetDensity_time_n(unsigned long) const override
Never read: a ghost is not part of the dual-time residual, only its primitives are.
Definition CGhostFlowVariable.hpp:50
CGhostFlowVariable(unsigned long npoint, unsigned long ndim, unsigned long nvar, unsigned long nprimvar, unsigned long nprimvargrad, const CConfig *config)
Definition CGhostFlowVariable.hpp:43
passivedouble su2double
Definition code_config.hpp:181