Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenFOAM-plus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Development
OpenFOAM-plus
Commits
24d3b8cc
Commit
24d3b8cc
authored
7 years ago
by
Andrew Heather
Browse files
Options
Downloads
Patches
Plain Diff
BUG: LimitedScheme - corrected oriented flag. Fixes
#493
parent
a51d050a
No related branches found
No related tags found
1 merge request
!121
Merge develop into master for v1706 release
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitedScheme.C
+13
-11
13 additions, 11 deletions
...nterpolation/limitedSchemes/LimitedScheme/LimitedScheme.C
with
13 additions
and
11 deletions
src/finiteVolume/interpolation/surfaceInterpolation/limitedSchemes/LimitedScheme/LimitedScheme.C
+
13
−
11
View file @
24d3b8cc
...
@@ -37,18 +37,19 @@ void Foam::LimitedScheme<Type, Limiter, LimitFunc>::calcLimiter
...
@@ -37,18 +37,19 @@ void Foam::LimitedScheme<Type, Limiter, LimitFunc>::calcLimiter
surfaceScalarField
&
limiterField
surfaceScalarField
&
limiterField
)
const
)
const
{
{
const
fvMesh
&
mesh
=
this
->
mesh
();
typedef
GeometricField
<
typename
Limiter
::
phiType
,
fvPatchField
,
volMesh
>
VolFieldType
;
typedef
GeometricField
<
typename
Limiter
::
gradPhiType
,
fvPatchField
,
volMesh
>
GradVolFieldType
;
tmp
<
GeometricField
<
typename
Limiter
::
phiType
,
fvPatchField
,
volMesh
>>
const
fvMesh
&
mesh
=
this
->
mesh
();
tlPhi
=
LimitFunc
<
Type
>
()(
phi
);
const
Geometric
Field
<
t
ype
name
Limiter
::
phiType
,
fvPatchField
,
volMesh
>&
tmp
<
Vol
Field
T
ype
>
tlPhi
=
LimitFunc
<
Type
>
()(
phi
);
lPhi
=
tlPhi
();
const
VolFieldType
&
lPhi
=
tlPhi
();
tmp
<
GeometricField
<
typename
Limiter
::
gradPhiType
,
fvPatchField
,
volMesh
>>
tmp
<
GradVolFieldType
>
tgradc
(
fvc
::
grad
(
lPhi
));
tgradc
(
fvc
::
grad
(
lPhi
));
const
GradVolFieldType
&
gradc
=
tgradc
();
const
GeometricField
<
typename
Limiter
::
gradPhiType
,
fvPatchField
,
volMesh
>&
gradc
=
tgradc
();
const
surfaceScalarField
&
CDweights
=
mesh
.
surfaceInterpolation
::
weights
();
const
surfaceScalarField
&
CDweights
=
mesh
.
surfaceInterpolation
::
weights
();
...
@@ -76,8 +77,7 @@ void Foam::LimitedScheme<Type, Limiter, LimitFunc>::calcLimiter
...
@@ -76,8 +77,7 @@ void Foam::LimitedScheme<Type, Limiter, LimitFunc>::calcLimiter
);
);
}
}
surfaceScalarField
::
Boundary
&
bLim
=
surfaceScalarField
::
Boundary
&
bLim
=
limiterField
.
boundaryFieldRef
();
limiterField
.
boundaryFieldRef
();
forAll
(
bLim
,
patchi
)
forAll
(
bLim
,
patchi
)
{
{
...
@@ -128,6 +128,8 @@ void Foam::LimitedScheme<Type, Limiter, LimitFunc>::calcLimiter
...
@@ -128,6 +128,8 @@ void Foam::LimitedScheme<Type, Limiter, LimitFunc>::calcLimiter
pLim
=
1
.
0
;
pLim
=
1
.
0
;
}
}
}
}
limiterField
.
setOriented
();
}
}
...
...
This diff is collapsed.
Click to expand it.
Andrew Heather
@andy
mentioned in issue
#493 (closed)
·
7 years ago
mentioned in issue
#493 (closed)
mentioned in issue #493
Toggle commit list
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment