Documentation 6b54b78464
Loading...
Searching...
No Matches
CConservativeVarsInterface.hpp
Go to the documentation of this file.
1/*!
2 * \file CConservativeVarsInterface.hpp
3 * \brief Declaration and inlines of the class to transfer conservative variables
4 * from a generic zone into another one.
5 * \author Ruben Sanchez
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 "../CInterface.hpp"
32
33/*!
34 * \brief Transfers conservative variables.
35 * \ingroup Interfaces
36 */
38public:
39 /*!
40 * \overload
41 * \param[in] val_nVar - Number of variables that need to be transferred.
42 */
43 CConservativeVarsInterface(unsigned short val_nVar, unsigned short val_nConst);
44
45 /*!
46 * \brief Retrieve the variable that will be sent from donor mesh to target mesh.
47 * \param[in] donor_solution - Solution from the donor mesh.
48 * \param[in] donor_geometry - Geometry of the donor mesh.
49 * \param[in] donor_config - Definition of the problem at the donor mesh.
50 * \param[in] Marker_Donor - Index of the donor marker.
51 * \param[in] Vertex_Donor - Index of the donor vertex.
52 * \param[in] Point_Donor - Index of the donor point.
53 */
54 void GetDonor_Variable(CSolver *donor_solution, CGeometry *donor_geometry, const CConfig *donor_config,
55 unsigned long Marker_Donor, unsigned long Vertex_Donor, unsigned long Point_Donor) override;
56
57 /*!
58 * \brief Set the variable that has been received from the target mesh into the target mesh.
59 * \param[in] target_solution - Solution from the target mesh.
60 * \param[in] target_geometry - Geometry of the target mesh.
61 * \param[in] target_config - Definition of the problem at the target mesh.
62 * \param[in] Marker_Target - Index of the target marker.
63 * \param[in] Vertex_Target - Index of the target vertex.
64 * \param[in] Point_Target - Index of the target point.
65 */
66 void SetTarget_Variable(CSolver *target_solution, CGeometry *target_geometry, const CConfig *target_config,
67 unsigned long Marker_Target, unsigned long Vertex_Target, unsigned long Point_Target) override;
68
69
70};
71
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Transfers conservative variables.
Definition CConservativeVarsInterface.hpp:37
void SetTarget_Variable(CSolver *target_solution, CGeometry *target_geometry, const CConfig *target_config, unsigned long Marker_Target, unsigned long Vertex_Target, unsigned long Point_Target) override
Set the variable that has been received from the target mesh into the target mesh.
Definition CConservativeVarsInterface.cpp:49
void GetDonor_Variable(CSolver *donor_solution, CGeometry *donor_geometry, const CConfig *donor_config, unsigned long Marker_Donor, unsigned long Vertex_Donor, unsigned long Point_Donor) override
Retrieve the variable that will be sent from donor mesh to target mesh.
Definition CConservativeVarsInterface.cpp:39
Parent class for defining the geometry of the problem (complete geometry, multigrid agglomerated geom...
Definition CGeometry.hpp:75
Main class for defining the physical transfer of information.
Definition CInterface.hpp:60
Definition CSolver.hpp:71