-
Notifications
You must be signed in to change notification settings - Fork 919
Feature species - more adjoint parts #1461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
932de5d
Adding RMS_ADJ_Species output and variance OF.
TobiKattmann aa1c48b
Merge remote-tracking branch 'origin/develop' into feature_species
TobiKattmann d899875
Add DA species regression test
TobiKattmann 402a690
Introduce MVP CAdjFlowOutput.
TobiKattmann 0f0ed14
Create history adj scalar output
TobiKattmann 35d047b
Create volume adj scalar output
TobiKattmann f1fbd92
Fix BGS output by wrapping in multizone conditional
TobiKattmann b9152fb
One more multizone BGS fix
TobiKattmann c2e652a
Make member vars const by using initializer list.
TobiKattmann 5b3f7d3
turb model family
pcarruscag 6949b66
apply to other places
pcarruscag 4899ed6
Fix bug where species MUSCL and limiter were not working at all.
TobiKattmann 6d1d59b
Add inital value for muscl and limiter to fix builds.
TobiKattmann 3b22e92
Update reg test for MUSCL species testcase after recent fix
TobiKattmann dea0ae4
Move certain Species testcase over to tutorials
TobiKattmann 07b1a8c
Move muscl, limiter and implicit var to scalar class data.
TobiKattmann f7b8e44
Update links of the tutorial regression tests.
TobiKattmann 31d7a95
Add Avg surf Species_0 OF.
TobiKattmann 54a0c69
Revert implicit class data switch.
TobiKattmann 5fc376e
Use Muscl and limiter from GlobalParams for ScalarSolver
TobiKattmann 04533a5
Additional line break.
TobiKattmann e93f5c4
Add setGlobalParams in all Preprocessing routines
TobiKattmann 740f19e
Revert unnecessary changes
TobiKattmann a2cb413
Run update_historyMap.py
TobiKattmann baa263e
Revert some clang-formatting to please python history parsing.
TobiKattmann e10bdf9
Better english in comments
TobiKattmann 57a87e5
Remove set globalParam in Preproc from Flow Solvers.
TobiKattmann fe84c72
Merge remote-tracking branch 'origin/feature_species' into feature_sp…
TobiKattmann df093ba
Revert indermediate tutorial branch change for reg tests.
TobiKattmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,96 @@ | ||
| /*! | ||
| * \file CAdjFlowOutput.hpp | ||
| * \brief Headers of the adjoint flow output. | ||
| * \author T. Kattmann | ||
| * \version 7.2.1 "Blackbird" | ||
| * | ||
| * SU2 Project Website: https://su2code.github.io | ||
| * | ||
| * The SU2 Project is maintained by the SU2 Foundation | ||
| * (http://su2foundation.org) | ||
| * | ||
| * Copyright 2012-2021, SU2 Contributors (cf. AUTHORS.md) | ||
| * | ||
| * SU2 is free software; you can redistribute it and/or | ||
| * modify it under the terms of the GNU Lesser General Public | ||
| * License as published by the Free Software Foundation; either | ||
| * version 2.1 of the License, or (at your option) any later version. | ||
| * | ||
| * SU2 is distributed in the hope that it will be useful, | ||
| * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
| * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
| * Lesser General Public License for more details. | ||
| * | ||
| * You should have received a copy of the GNU Lesser General Public | ||
| * License along with SU2. If not, see <http://www.gnu.org/licenses/>. | ||
| */ | ||
|
|
||
| #pragma once | ||
|
|
||
| #include "COutput.hpp" | ||
|
|
||
| /*! \class CAdjFlowOutput | ||
| * \brief Output class for flow discrete adjoint problems. | ||
| * \author T. Kattmann | ||
| * \date December 3, 2021. | ||
| */ | ||
| class CAdjFlowOutput : public COutput { | ||
| protected: | ||
| const TURB_MODEL turb_model; /*!< \brief The kind of turbulence model*/ | ||
| const bool cont_adj; /*!< \brief Boolean indicating whether we run a cont. adjoint problem */ | ||
| const bool frozen_visc; /*!< \brief Boolean indicating whether frozen viscosity/turbulence is used. */ | ||
|
|
||
| public: | ||
| /*! | ||
| * \brief Constructor of the class | ||
| * \param[in] config - Definition of the particular problem. | ||
| */ | ||
| CAdjFlowOutput(CConfig* config, unsigned short nDim); | ||
|
|
||
| /*! | ||
| * \brief Add scalar (turbulence/species) history fields for the Residual RMS (FVMComp, FVMInc, FVMNEMO). | ||
| */ | ||
| void AddHistoryOutputFields_AdjScalarRMS_RES(const CConfig* config); | ||
|
|
||
| /*! | ||
| * \brief Add scalar (turbulence/species) history fields for the max Residual (FVMComp, FVMInc, FVMNEMO). | ||
| */ | ||
| void AddHistoryOutputFields_AdjScalarMAX_RES(const CConfig* config); | ||
|
|
||
| /*! | ||
| * \brief Add scalar (turbulence/species) history fields for the BGS Residual (FVMComp, FVMInc, FVMNEMO). | ||
| */ | ||
| void AddHistoryOutputFields_AdjScalarBGS_RES(const CConfig* config); | ||
|
|
||
| /*! | ||
| * \brief Add scalar (turbulence/species) history fields for the linear solver (FVMComp, FVMInc, FVMNEMO). | ||
| */ | ||
| void AddHistoryOutputFields_AdjScalarLinsol(const CConfig* config); | ||
|
|
||
| /*! | ||
| * \brief Set all scalar (turbulence/species) history field values. | ||
| */ | ||
| void LoadHistoryData_AdjScalar(const CConfig* config, const CSolver* const* solver); | ||
|
|
||
| /*! | ||
| * \brief Add scalar (turbulence/species) volume solution fields for a point (FVMComp, FVMInc, FVMNEMO). | ||
| * \note The order of fields in restart files is fixed. Therefore the split-up. | ||
| * \param[in] config - Definition of the particular problem. | ||
| */ | ||
| void SetVolumeOutputFields_AdjScalarSolution(const CConfig* config); | ||
|
|
||
| /*! | ||
| * \brief Add scalar (turbulence/species) volume solution fields for a point (FVMComp, FVMInc, FVMNEMO). | ||
| * \note The order of fields in restart files is fixed. Therefore the split-up. | ||
| * \param[in] config - Definition of the particular problem. | ||
| */ | ||
| void SetVolumeOutputFields_AdjScalarResidual(const CConfig* config); | ||
|
|
||
| /*! | ||
| * \brief Set all scalar (turbulence/species) volume field values for a point. | ||
| * \param[in] config - Definition of the particular problem. | ||
| * \param[in] solver - The container holding all solution data. | ||
| * \param[in] iPoint - Index of the point. | ||
| */ | ||
| void LoadVolumeData_AdjScalar(const CConfig* config, const CSolver* const* solver, const unsigned long iPoint); | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.