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
8293b56e
Commit
8293b56e
authored
16 years ago
by
Andrew Heather
Browse files
Options
Downloads
Patches
Plain Diff
consistency update
parent
b8a5d2ef
No related branches found
No related tags found
Loading
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/postProcessing/forces/forces/forces.C
+9
-9
9 additions, 9 deletions
src/postProcessing/forces/forces/forces.C
src/postProcessing/forces/forces/forces.H
+1
-1
1 addition, 1 deletion
src/postProcessing/forces/forces/forces.H
with
10 additions
and
10 deletions
src/postProcessing/forces/forces/forces.C
+
9
−
9
View file @
8293b56e
...
@@ -81,7 +81,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
...
@@ -81,7 +81,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
const
basicThermo
&
thermo
=
const
basicThermo
&
thermo
=
obr_
.
lookupObject
<
basicThermo
>
(
"thermophysicalProperties"
);
obr_
.
lookupObject
<
basicThermo
>
(
"thermophysicalProperties"
);
const
volVectorField
&
U
=
obr_
.
lookupObject
<
volVectorField
>
(
U
n
ame_
);
const
volVectorField
&
U
=
obr_
.
lookupObject
<
volVectorField
>
(
U
N
ame_
);
return
-
thermo
.
mu
()
*
dev
(
twoSymm
(
fvc
::
grad
(
U
)));
return
-
thermo
.
mu
()
*
dev
(
twoSymm
(
fvc
::
grad
(
U
)));
}
}
...
@@ -94,7 +94,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
...
@@ -94,7 +94,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
obr_
.
lookupObject
<
singlePhaseTransportModel
>
obr_
.
lookupObject
<
singlePhaseTransportModel
>
(
"transportProperties"
);
(
"transportProperties"
);
const
volVectorField
&
U
=
obr_
.
lookupObject
<
volVectorField
>
(
U
n
ame_
);
const
volVectorField
&
U
=
obr_
.
lookupObject
<
volVectorField
>
(
U
N
ame_
);
return
-
rhoRef_
*
laminarT
.
nu
()
*
dev
(
twoSymm
(
fvc
::
grad
(
U
)));
return
-
rhoRef_
*
laminarT
.
nu
()
*
dev
(
twoSymm
(
fvc
::
grad
(
U
)));
}
}
...
@@ -105,7 +105,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
...
@@ -105,7 +105,7 @@ Foam::tmp<Foam::volSymmTensorField> Foam::forces::devRhoReff() const
dimensionedScalar
nu
(
transportProperties
.
lookup
(
"nu"
));
dimensionedScalar
nu
(
transportProperties
.
lookup
(
"nu"
));
const
volVectorField
&
U
=
obr_
.
lookupObject
<
volVectorField
>
(
U
n
ame_
);
const
volVectorField
&
U
=
obr_
.
lookupObject
<
volVectorField
>
(
U
N
ame_
);
return
-
rhoRef_
*
nu
*
dev
(
twoSymm
(
fvc
::
grad
(
U
)));
return
-
rhoRef_
*
nu
*
dev
(
twoSymm
(
fvc
::
grad
(
U
)));
}
}
...
@@ -149,7 +149,7 @@ Foam::forces::forces
...
@@ -149,7 +149,7 @@ Foam::forces::forces
log_
(
false
),
log_
(
false
),
patchSet_
(),
patchSet_
(),
pName_
(
""
),
pName_
(
""
),
U
n
ame_
(
""
),
U
N
ame_
(
""
),
rhoRef_
(
0
),
rhoRef_
(
0
),
CofR_
(
vector
::
zero
),
CofR_
(
vector
::
zero
),
forcesFilePtr_
(
NULL
)
forcesFilePtr_
(
NULL
)
...
@@ -190,18 +190,18 @@ void Foam::forces::read(const dictionary& dict)
...
@@ -190,18 +190,18 @@ void Foam::forces::read(const dictionary& dict)
// Optional entries U and p
// Optional entries U and p
pName_
=
dict
.
lookupOrDefault
<
word
>
(
"pName"
,
"p"
);
pName_
=
dict
.
lookupOrDefault
<
word
>
(
"pName"
,
"p"
);
U
n
ame_
=
dict
.
lookupOrDefault
<
word
>
(
"U
n
ame"
,
"U"
);
U
N
ame_
=
dict
.
lookupOrDefault
<
word
>
(
"U
N
ame"
,
"U"
);
// Check whether U
n
ame and pName exists, if not deactivate forces
// Check whether U
N
ame and pName exists, if not deactivate forces
if
if
(
(
!
obr_
.
foundObject
<
volVectorField
>
(
U
n
ame_
)
!
obr_
.
foundObject
<
volVectorField
>
(
U
N
ame_
)
||
!
obr_
.
foundObject
<
volScalarField
>
(
pName_
)
||
!
obr_
.
foundObject
<
volScalarField
>
(
pName_
)
)
)
{
{
active_
=
false
;
active_
=
false
;
WarningIn
(
"void forces::read(const dictionary& dict)"
)
WarningIn
(
"void forces::read(const dictionary& dict)"
)
<<
"Could not find "
<<
U
n
ame_
<<
" or "
<<
"Could not find "
<<
U
N
ame_
<<
" or "
<<
pName_
<<
" in database."
<<
nl
<<
pName_
<<
" in database."
<<
nl
<<
" De-activating forces."
<<
" De-activating forces."
<<
endl
;
<<
endl
;
...
@@ -299,7 +299,7 @@ void Foam::forces::write()
...
@@ -299,7 +299,7 @@ void Foam::forces::write()
Foam
::
forces
::
forcesMoments
Foam
::
forces
::
calcForcesMoment
()
const
Foam
::
forces
::
forcesMoments
Foam
::
forces
::
calcForcesMoment
()
const
{
{
const
volVectorField
&
U
=
obr_
.
lookupObject
<
volVectorField
>
(
U
n
ame_
);
const
volVectorField
&
U
=
obr_
.
lookupObject
<
volVectorField
>
(
U
N
ame_
);
const
volScalarField
&
p
=
obr_
.
lookupObject
<
volScalarField
>
(
pName_
);
const
volScalarField
&
p
=
obr_
.
lookupObject
<
volScalarField
>
(
pName_
);
const
fvMesh
&
mesh
=
U
.
mesh
();
const
fvMesh
&
mesh
=
U
.
mesh
();
...
...
This diff is collapsed.
Click to expand it.
src/postProcessing/forces/forces/forces.H
+
1
−
1
View file @
8293b56e
...
@@ -130,7 +130,7 @@ protected:
...
@@ -130,7 +130,7 @@ protected:
word
pName_
;
word
pName_
;
//- Name of velocity field
//- Name of velocity field
word
U
n
ame_
;
word
U
N
ame_
;
//- Reference density needed for incompressible calculations
//- Reference density needed for incompressible calculations
scalar
rhoRef_
;
scalar
rhoRef_
;
...
...
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