Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openfoam
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
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Development
openfoam
Commits
938167d5
Commit
938167d5
authored
12 years ago
by
andy
Browse files
Options
Downloads
Patches
Plain Diff
ENH: Cleaned-up film shear model
parent
0a8bae1f
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/regionModels/surfaceFilmModels/submodels/kinematic/force/surfaceShearForce/surfaceShearForce.C
+4
-63
4 additions, 63 deletions
...els/kinematic/force/surfaceShearForce/surfaceShearForce.C
with
4 additions
and
63 deletions
src/regionModels/surfaceFilmModels/submodels/kinematic/force/surfaceShearForce/surfaceShearForce.C
+
4
−
63
View file @
938167d5
...
@@ -2,7 +2,7 @@
...
@@ -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) 2011-201
2
OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-201
3
OpenFOAM Foundation
\\/ M anipulation |
\\/ M anipulation |
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
License
License
...
@@ -76,70 +76,11 @@ tmp<fvVectorMatrix> surfaceShearForce::correct(volVectorField& U)
...
@@ -76,70 +76,11 @@ tmp<fvVectorMatrix> surfaceShearForce::correct(volVectorField& U)
const
volScalarField
&
delta
=
film
.
delta
();
const
volScalarField
&
delta
=
film
.
delta
();
const
volVectorField
&
Up
=
film
.
UPrimary
();
const
volVectorField
&
Up
=
film
.
UPrimary
();
// film surface linear coeff to apply to velocity
// laminar case - employ simple coeff-based model
tmp
<
volScalarField
>
tCs
;
const
volScalarField
&
rhop
=
film
.
rhoPrimary
();
volScalarField
Cs
(
"Cs"
,
Cf_
*
rhop
*
mag
(
Up
-
U
));
typedef
compressible
::
turbulenceModel
turbModel
;
if
(
film
.
primaryMesh
().
foundObject
<
turbModel
>
(
"turbulenceModel"
))
{
// local reference to turbulence model
const
turbModel
&
turb
=
film
.
primaryMesh
().
lookupObject
<
turbModel
>
(
"turbulenceModel"
);
// calculate and store the stress on the primary region
const
volSymmTensorField
primaryReff
(
turb
.
devRhoReff
());
// create stress field on film
// - note boundary condition types (mapped)
// - to map, the field name must be the same as the field on the
// primary region
volSymmTensorField
Reff
(
IOobject
(
primaryReff
.
name
(),
film
.
regionMesh
().
time
().
timeName
(),
film
.
regionMesh
(),
IOobject
::
NO_READ
,
IOobject
::
NO_WRITE
),
film
.
regionMesh
(),
dimensionedSymmTensor
(
"zero"
,
primaryReff
.
dimensions
(),
symmTensor
::
zero
),
film
.
mappedFieldAndInternalPatchTypes
<
symmTensor
>
()
);
// map stress from primary region to film region
Reff
.
correctBoundaryConditions
();
dimensionedScalar
U0
(
"SMALL"
,
U
.
dimensions
(),
SMALL
);
volVectorField
UHat
(
"UHat"
,
(
Up
-
U
)
/
(
mag
(
Up
-
U
)
+
U0
));
// shear stress tangential to the film
volVectorField
tauTan
(
"tauTan"
,
UHat
&
(
Reff
+
film
.
nHat
()
*
(
-
film
.
nHat
()
&
Reff
))
);
// note: Cf_ 'should' be 1 in this case
tCs
=
Cf_
*
mag
(
tauTan
)
/
(
mag
(
Up
-
U
)
+
U0
);
}
else
{
// laminar case - employ simple coeff-based model
const
volScalarField
&
rhop
=
film
.
rhoPrimary
();
tCs
=
Cf_
*
rhop
*
mag
(
Up
-
U
);
}
dimensionedScalar
d0
(
"SMALL"
,
delta
.
dimensions
(),
SMALL
);
dimensionedScalar
d0
(
"SMALL"
,
delta
.
dimensions
(),
SMALL
);
// linear coeffs to apply to velocity
const
volScalarField
&
Cs
=
tCs
();
volScalarField
Cw
(
"Cw"
,
mu
/
(
0
.
3333
*
(
delta
+
d0
)));
volScalarField
Cw
(
"Cw"
,
mu
/
(
0
.
3333
*
(
delta
+
d0
)));
Cw
.
min
(
5000
.
0
);
Cw
.
min
(
5000
.
0
);
...
...
This diff is collapsed.
Click to expand it.
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