mirror of
https://github.com/OpenFOAM/OpenFOAM-6.git
synced 2025-12-08 06:57:46 +00:00
MRFSource: Update the velocity boundary conditions for changes in rotation speed
This commit is contained in:
@ -2,7 +2,7 @@
|
|||||||
========= |
|
========= |
|
||||||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
|
||||||
\\ / O peration |
|
\\ / O peration |
|
||||||
\\ / A nd | Copyright (C) 2012-2014 OpenFOAM Foundation
|
\\ / A nd | Copyright (C) 2012-2015 OpenFOAM Foundation
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
@ -103,6 +103,9 @@ void Foam::fv::MRFSource::addSup
|
|||||||
const label fieldI
|
const label fieldI
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
// Update the velocity boundary conditions for changes in rotation speed
|
||||||
|
mrfPtr_->correctBoundaryVelocity(const_cast<volVectorField&>(eqn.psi()));
|
||||||
|
|
||||||
// Add to rhs of equation
|
// Add to rhs of equation
|
||||||
mrfPtr_->addCoriolis(eqn, true);
|
mrfPtr_->addCoriolis(eqn, true);
|
||||||
}
|
}
|
||||||
@ -115,6 +118,9 @@ void Foam::fv::MRFSource::addSup
|
|||||||
const label fieldI
|
const label fieldI
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
// Update the velocity boundary conditions for changes in rotation speed
|
||||||
|
mrfPtr_->correctBoundaryVelocity(const_cast<volVectorField&>(eqn.psi()));
|
||||||
|
|
||||||
// Add to rhs of equation
|
// Add to rhs of equation
|
||||||
mrfPtr_->addCoriolis(rho, eqn, true);
|
mrfPtr_->addCoriolis(rho, eqn, true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user