Documentation 6b54b78464
Loading...
Searching...
No Matches
CIncTGVSolution.hpp
Go to the documentation of this file.
1/*!
2 * \file CIncTGVSolution.hpp
3 * \brief Header file for the class CIncTGVSolution.
4 * The implementations are in the <i>CIncTGVSolution.cpp</i> file.
5 * \author T. Economon, E. van der Weide
6 * \version 8.5.0 "Harrier"
7 *
8 * SU2 Project Website: https://su2code.github.io
9 *
10 * The SU2 Project is maintained by the SU2 Foundation
11 * (http://su2foundation.org)
12 *
13 * Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
14 *
15 * SU2 is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * SU2 is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with SU2. If not, see <http://www.gnu.org/licenses/>.
27 */
28
29#pragma once
30
31#include <cmath>
33
34/*!
35 * \class CIncTGVSolution
36 * \brief Class to define the required data for the incompressible Taylor Green Vortex.
37 * \author T. Economon, E. van der Weide
38 */
40 protected:
41 /*--- TGV specific conditions. ---*/
42
43 su2double tgvLength; /*!< \brief Taylor-Green length scale. */
44 su2double tgvVelocity; /*!< \brief Taylor-Green velocity. */
45 su2double tgvDensity; /*!< \brief Taylor-Green density. */
46 su2double tgvViscosity; /*!< \brief Taylor-Green viscosity. */
47
48 su2double Temperature; /*!< \brief Temperature, just to be safe. */
49
50 public:
51 /*!
52 * \brief Constructor of the class.
53 */
54 CIncTGVSolution(void);
55
56 /*!
57 * \overload
58 * \param[in] val_nDim - Number of dimensions of the problem.
59 * \param[in] val_nvar - Number of variables of the problem.
60 * \param[in] val_iMesh - Multigrid level of the solver.
61 * \param[in] config - Configuration of the particular problem.
62 */
63 CIncTGVSolution(unsigned short val_nDim, unsigned short val_nvar, unsigned short val_iMesh, CConfig* config);
64
65 /*!
66 * \brief Destructor of the class.
67 */
68 ~CIncTGVSolution(void) override;
69
70 /*!
71 * \brief Get the exact solution at the current position and time.
72 * \param[in] val_coords - Cartesian coordinates of the current position.
73 * \param[in] val_t - Current physical time.
74 * \param[in] val_solution - Array where the exact solution is stored.
75 */
76 void GetSolution(const su2double* val_coords, const su2double val_t, su2double* val_solution) const override;
77
78 /*!
79 * \brief Get the boundary conditions state for an exact solution.
80 * \param[in] val_coords - Cartesian coordinates of the current position.
81 * \param[in] val_t - Current physical time.
82 * \param[in] val_solution - Array where the exact solution is stored.
83 */
84 void GetBCState(const su2double* val_coords, const su2double val_t, su2double* val_solution) const override;
85};
Header file for the base class CVerificationSolution. The implementations are in the CVerificationSol...
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Class to define the required data for the incompressible Taylor Green Vortex.
Definition CIncTGVSolution.hpp:39
void GetBCState(const su2double *val_coords, const su2double val_t, su2double *val_solution) const override
Get the boundary conditions state for an exact solution.
Definition CIncTGVSolution.cpp:93
su2double tgvLength
Taylor-Green length scale.
Definition CIncTGVSolution.hpp:43
su2double tgvViscosity
Taylor-Green viscosity.
Definition CIncTGVSolution.hpp:46
void GetSolution(const su2double *val_coords, const su2double val_t, su2double *val_solution) const override
Get the exact solution at the current position and time.
Definition CIncTGVSolution.cpp:98
CIncTGVSolution(void)
Constructor of the class.
Definition CIncTGVSolution.cpp:30
su2double Temperature
Temperature, just to be safe.
Definition CIncTGVSolution.hpp:48
su2double tgvVelocity
Taylor-Green velocity.
Definition CIncTGVSolution.hpp:44
~CIncTGVSolution(void) override
Destructor of the class.
su2double tgvDensity
Taylor-Green density.
Definition CIncTGVSolution.hpp:45
Class for holding verification PDE solutions, e.g., phi = phi(x,y,z,t), used for initial conditions,...
Definition CVerificationSolution.hpp:40
passivedouble su2double
Definition code_config.hpp:181