mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: atmBoundaryLayer: replace global groundMin with local min (fixes #2471)
This commit is contained in:
committed by
Kutalmis Bercin
parent
a11b5f2310
commit
ee6c241b69
@ -6,7 +6,7 @@
|
|||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2014-2016 OpenFOAM Foundation
|
Copyright (C) 2014-2016 OpenFOAM Foundation
|
||||||
Copyright (C) 2018-2021 OpenCFD Ltd.
|
Copyright (C) 2018-2022 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -42,7 +42,7 @@ atmBoundaryLayer::atmBoundaryLayer(const Time& time, const polyPatch& pp)
|
|||||||
Cmu_(0.09),
|
Cmu_(0.09),
|
||||||
C1_(0.0),
|
C1_(0.0),
|
||||||
C2_(1.0),
|
C2_(1.0),
|
||||||
ppMin_((boundBox(pp.points())).min()),
|
ppMin_((boundBox(pp.localPoints())).min()),
|
||||||
time_(time),
|
time_(time),
|
||||||
patch_(pp),
|
patch_(pp),
|
||||||
flowDir_(nullptr),
|
flowDir_(nullptr),
|
||||||
@ -69,7 +69,7 @@ atmBoundaryLayer::atmBoundaryLayer
|
|||||||
Cmu_(dict.getCheckOrDefault<scalar>("Cmu", 0.09, scalarMinMax::ge(SMALL))),
|
Cmu_(dict.getCheckOrDefault<scalar>("Cmu", 0.09, scalarMinMax::ge(SMALL))),
|
||||||
C1_(dict.getOrDefault("C1", 0.0)),
|
C1_(dict.getOrDefault("C1", 0.0)),
|
||||||
C2_(dict.getOrDefault("C2", 1.0)),
|
C2_(dict.getOrDefault("C2", 1.0)),
|
||||||
ppMin_((boundBox(pp.points())).min()),
|
ppMin_((boundBox(pp.localPoints())).min()),
|
||||||
time_(time),
|
time_(time),
|
||||||
patch_(pp),
|
patch_(pp),
|
||||||
flowDir_(Function1<vector>::New("flowDir", dict, &time)),
|
flowDir_(Function1<vector>::New("flowDir", dict, &time)),
|
||||||
|
|||||||
Reference in New Issue
Block a user