From 0fb515298df41380e32eb6bea083153de1bbb292 Mon Sep 17 00:00:00 2001 From: Vaggelis Papoutsis <vaggelisp@gmail.com> Date: Tue, 1 Dec 2020 18:40:44 +0200 Subject: [PATCH] ENH: adjointRASModel now returns a reference to the primal and adjoint solver names --- .../adjointRAS/adjointRASModel/adjointRASModel.H | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/optimisation/adjointOptimisation/adjoint/turbulenceModels/incompressibleAdjoint/adjointRAS/adjointRASModel/adjointRASModel.H b/src/optimisation/adjointOptimisation/adjoint/turbulenceModels/incompressibleAdjoint/adjointRAS/adjointRASModel/adjointRASModel.H index a11c0fd9a02..4b654311ae3 100644 --- a/src/optimisation/adjointOptimisation/adjoint/turbulenceModels/incompressibleAdjoint/adjointRAS/adjointRASModel/adjointRASModel.H +++ b/src/optimisation/adjointOptimisation/adjoint/turbulenceModels/incompressibleAdjoint/adjointRAS/adjointRASModel/adjointRASModel.H @@ -5,8 +5,8 @@ \\ / A nd | www.openfoam.com \\/ M anipulation | ------------------------------------------------------------------------------- - Copyright (C) 2007-2019 PCOpt/NTUA - Copyright (C) 2013-2019 FOSS GP + Copyright (C) 2007-2020 PCOpt/NTUA + Copyright (C) 2013-2020 FOSS GP Copyright (C) 2019 OpenCFD Ltd. ------------------------------------------------------------------------------- License @@ -222,6 +222,18 @@ public: return coeffDict_; } + //- Const access to the primal solver name + const word& primalSolverName() const + { + return primalVars_.solverName(); + } + + //- Const access to the adjoint solver name + const word& adjointSolverName() const + { + return adjointVars_.solverName(); + } + //- Return non-constant reference to adjoint turbulence model variable 1 // Will allocate and return a zero field in case it does not exist volScalarField& getAdjointTMVariable1Inst(); -- GitLab