Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
7612b518
Commit
7612b518
authored
Feb 03, 2017
by
Henry Weller
Browse files
lagrangian::NonInertialFrameForce: Use field references rather than copies
Patch contributed by Mattijs Janssens
parent
78ee6c2a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lagrangian/intermediate/submodels/Kinematic/ParticleForces/NonInertialFrame/NonInertialFrameForce.C
View file @
7612b518
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-201
6
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
7
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -121,7 +121,7 @@ void Foam::NonInertialFrameForce<CloudType>::cacheFields(const bool store)
)
)
{
uniformDimensionedVectorField
W
=
this
->
mesh
().
template
const
uniformDimensionedVectorField
&
W
=
this
->
mesh
().
template
lookupObject
<
uniformDimensionedVectorField
>
(
WName_
);
W_
=
W
.
value
();
...
...
@@ -135,7 +135,7 @@ void Foam::NonInertialFrameForce<CloudType>::cacheFields(const bool store)
)
)
{
uniformDimensionedVectorField
omega
=
this
->
mesh
().
template
const
uniformDimensionedVectorField
&
omega
=
this
->
mesh
().
template
lookupObject
<
uniformDimensionedVectorField
>
(
omegaName_
);
omega_
=
omega
.
value
();
...
...
@@ -149,7 +149,8 @@ void Foam::NonInertialFrameForce<CloudType>::cacheFields(const bool store)
)
)
{
uniformDimensionedVectorField
omegaDot
=
this
->
mesh
().
template
const
uniformDimensionedVectorField
&
omegaDot
=
this
->
mesh
().
template
lookupObject
<
uniformDimensionedVectorField
>
(
omegaDotName_
);
omegaDot_
=
omegaDot
.
value
();
...
...
@@ -163,7 +164,7 @@ void Foam::NonInertialFrameForce<CloudType>::cacheFields(const bool store)
)
)
{
uniformDimensionedVectorField
centreOfRotation
=
const
uniformDimensionedVectorField
&
centreOfRotation
=
this
->
mesh
().
template
lookupObject
<
uniformDimensionedVectorField
>
(
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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