mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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.
This commit is contained in:
committed by
Andrew Heather
parent
0b0b308db2
commit
c9ca6b9f19
@ -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()
|
|||||||
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user