ENH: adjointRASModel now returns a reference

to the primal and adjoint solver names
This commit is contained in:
Vaggelis Papoutsis
2020-12-01 18:40:44 +02:00
committed by Andrew Heather
parent aee0c30a3e
commit 0fb515298d

View File

@ -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();