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

ENH: the adjoint eikonal equation grabs the epsilon value

from the equivalent entry of the primal eikonal equation solver, unless
specified in the corresponding adjoint dictionary.
parent 0b0b308d
Branches
Tags
1 merge request!518ENH: adjoint code review
...@@ -5,8 +5,8 @@ ...@@ -5,8 +5,8 @@
\\ / A nd | www.openfoam.com \\ / A nd | www.openfoam.com
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2007-2020 PCOpt/NTUA Copyright (C) 2007-2021 PCOpt/NTUA
Copyright (C) 2013-2020 FOSS GP Copyright (C) 2013-2021 FOSS GP
Copyright (C) 2019-2020 OpenCFD Ltd. Copyright (C) 2019-2020 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
...@@ -67,6 +67,11 @@ void adjointEikonalSolver::read() ...@@ -67,6 +67,11 @@ void adjointEikonalSolver::read()
nEikonalIters_ = dict_.getOrDefault<label>("iters", 1000); nEikonalIters_ = dict_.getOrDefault<label>("iters", 1000);
tolerance_ = dict_.getOrDefault<scalar>("tolerance", 1e-6); tolerance_ = dict_.getOrDefault<scalar>("tolerance", 1e-6);
epsilon_ = dict_.getOrDefault<scalar>("epsilon", 0.1); epsilon_ = dict_.getOrDefault<scalar>("epsilon", 0.1);
const scalar defaultEps =
mesh_.schemesDict().subDict("wallDist").
subOrEmptyDict("advectionDiffusionCoeffs").
getOrDefault<scalar>("epsilon", 0.1);
epsilon_ = dict_.getOrDefault<scalar>("epsilon", defaultEps);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment