Documentation 6b54b78464
Loading...
Searching...
No Matches
CDisplacementsInterface.hpp
Go to the documentation of this file.
1/*!
2 * \file CDisplacementsInterface.hpp
3 * \brief Declaration and inlines of the class to transfer boundary displacements
4 * from a structural zone into a fluid zone.
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 Structure-fluid interface (displacements).
35 * \ingroup Interfaces
36 */
38public:
39 /*!
40 * \brief Constructor of the class.
41 * \param[in] val_nVar - Number of variables that need to be transferred.
42 */
43 CDisplacementsInterface(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 */
53 void GetDonor_Variable(CSolver *struct_solution, CGeometry *struct_geometry, const CConfig *struct_config,
54 unsigned long Marker_Struct, unsigned long Vertex_Struct, unsigned long Point_Struct) override;
55
56 /*!
57 * \brief Set the variable that has been received from the target mesh into the target mesh.
58 * \param[in] target_solution - Solution from the target mesh.
59 * \param[in] target_geometry - Geometry of the target mesh.
60 * \param[in] target_config - Definition of the problem at the target mesh.
61 * \param[in] Marker_Target - Index of the target marker.
62 * \param[in] Vertex_Target - Index of the target vertex.
63 * \param[in] Point_Target - Index of the target point.
64 */
65 void SetTarget_Variable(CSolver *mesh_solver, CGeometry *flow_geometry,
66 const CConfig *flow_config, unsigned long Marker_Flow,
67 unsigned long Vertex_Flow, unsigned long Point_Mesh) override;
68
69};
Main class for defining the problem; basically this class reads the configuration file,...
Definition CConfig.hpp:64
Structure-fluid interface (displacements).
Definition CDisplacementsInterface.hpp:37
void GetDonor_Variable(CSolver *struct_solution, CGeometry *struct_geometry, const CConfig *struct_config, unsigned long Marker_Struct, unsigned long Vertex_Struct, unsigned long Point_Struct) override
Retrieve the variable that will be sent from donor mesh to target mesh.
Definition CDisplacementsInterface.cpp:39
void SetTarget_Variable(CSolver *mesh_solver, CGeometry *flow_geometry, const CConfig *flow_config, unsigned long Marker_Flow, unsigned long Vertex_Flow, unsigned long Point_Mesh) override
Set the variable that has been received from the target mesh into the target mesh.
Definition CDisplacementsInterface.cpp:55
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