Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
c7792518
Commit
c7792518
authored
Feb 04, 2015
by
Henry
Browse files
MRFSource: Update the velocity boundary conditions for changes in rotation speed
parent
923f4023
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/fvOptions/sources/derived/MRFSource/MRFSource.C
View file @
c7792518
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2012-201
4
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2012-201
5
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -103,6 +103,9 @@ void Foam::fv::MRFSource::addSup
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
mrfPtr_
->
addCoriolis
(
eqn
,
true
);
}
...
...
@@ -115,6 +118,9 @@ void Foam::fv::MRFSource::addSup
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
mrfPtr_
->
addCoriolis
(
rho
,
eqn
,
true
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment