From c211071a5e4235f9e3e81d1e99d7473f556c4973 Mon Sep 17 00:00:00 2001 From: andy <andy> Date: Tue, 10 Dec 2013 10:24:45 +0000 Subject: [PATCH] BUG: Fan boundary condition - limit jump to be > 0 --- .../fields/fvPatchFields/derived/fan/fanFvPatchFields.C | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C b/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C index 8535c571279..4c76bb0b9c2 100644 --- a/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C +++ b/src/finiteVolume/fields/fvPatchFields/derived/fan/fanFvPatchFields.C @@ -2,7 +2,7 @@ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | - \\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation + \\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation \\/ M anipulation | ------------------------------------------------------------------------------- License @@ -61,7 +61,7 @@ void Foam::fanFvPatchField<Foam::scalar>::calcFanJump() Un /= patch().lookupPatchField<volScalarField, scalar>("rho"); } - this->jump_ = this->jumpTable_->value(Un); + this->jump_ = max(this->jumpTable_->value(Un), scalar(0)); } } -- GitLab