|
| 1 | +/*! |
| 2 | + * \file CAdjFluidIteration.hpp |
| 3 | + * \brief Headers of the iteration classes used by SU2_CFD. |
| 4 | + * Each CIteration class represents an available physics package. |
| 5 | + * \author F. Palacios, T. Economon |
| 6 | + * \version 7.0.5 "Blackbird" |
| 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-2020, 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 "CFluidIteration.hpp" |
| 32 | + |
| 33 | +/*! |
| 34 | + * \class CAdjFluidIteration |
| 35 | + * \brief Class for driving an iteration of the adjoint fluid system. |
| 36 | + * \author T. Economon |
| 37 | + */ |
| 38 | +class CAdjFluidIteration : public CFluidIteration { |
| 39 | + public: |
| 40 | + /*! |
| 41 | + * \brief Constructor of the class. |
| 42 | + * \param[in] config - Definition of the particular problem. |
| 43 | + */ |
| 44 | + explicit CAdjFluidIteration(const CConfig *config) : CFluidIteration(config) {} |
| 45 | + |
| 46 | + /*! |
| 47 | + * \brief Preprocessing to prepare for an iteration of the physics. |
| 48 | + * \param[in] ??? - Description here. |
| 49 | + */ |
| 50 | + void Preprocess(COutput* output, CIntegration**** integration, CGeometry**** geometry, CSolver***** solver, |
| 51 | + CNumerics****** numerics, CConfig** config, CSurfaceMovement** surface_movement, |
| 52 | + CVolumetricMovement*** grid_movement, CFreeFormDefBox*** FFDBox, unsigned short val_iZone, |
| 53 | + unsigned short val_iInst) override; |
| 54 | + |
| 55 | + /*! |
| 56 | + * \brief Perform a single iteration of the adjoint fluid system. |
| 57 | + * \param[in] output - Pointer to the COutput class. |
| 58 | + * \param[in] integration - Container vector with all the integration methods. |
| 59 | + * \param[in] geometry - Geometrical definition of the problem. |
| 60 | + * \param[in] solver - Container vector with all the solutions. |
| 61 | + * \param[in] numerics - Description of the numerical method (the way in which the equations are solved). |
| 62 | + * \param[in] config - Definition of the particular problem. |
| 63 | + * \param[in] surface_movement - Surface movement classes of the problem. |
| 64 | + * \param[in] grid_movement - Volume grid movement classes of the problem. |
| 65 | + * \param[in] FFDBox - FFD FFDBoxes of the problem. |
| 66 | + */ |
| 67 | + void Iterate(COutput* output, CIntegration**** integration, CGeometry**** geometry, CSolver***** solver, |
| 68 | + CNumerics****** numerics, CConfig** config, CSurfaceMovement** surface_movement, |
| 69 | + CVolumetricMovement*** grid_movement, CFreeFormDefBox*** FFDBox, unsigned short val_iZone, |
| 70 | + unsigned short val_iInst) override; |
| 71 | + |
| 72 | + /*! |
| 73 | + * \brief Updates the containers for the adjoint fluid system. |
| 74 | + * \param[in] ??? - Description here. |
| 75 | + */ |
| 76 | + void Update(COutput* output, CIntegration**** integration, CGeometry**** geometry, CSolver***** solver, |
| 77 | + CNumerics****** numerics, CConfig** config, CSurfaceMovement** surface_movement, |
| 78 | + CVolumetricMovement*** grid_movement, CFreeFormDefBox*** FFDBox, unsigned short val_iZone, |
| 79 | + unsigned short val_iInst) override; |
| 80 | +}; |
| 81 | + |
0 commit comments