Skip to content
Snippets Groups Projects
Commit 0fb51529 authored by Vaggelis Papoutsis's avatar Vaggelis Papoutsis Committed by Andrew Heather
Browse files

ENH: adjointRASModel now returns a reference

to the primal and adjoint solver names
parent aee0c30a
Branches
Tags
1 merge request!400Adjoint: release candidate for v2012
......@@ -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();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment