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
3c927090
Commit
3c927090
authored
Oct 29, 2010
by
mattijs
Browse files
ENH: chtMultiRegionFoam : allow 0 cells per processor
parent
4d428e8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
applications/solvers/heatTransfer/chtMultiRegionFoam/solid/solidRegionDiffNo.C
View file @
3c927090
...
...
@@ -37,18 +37,16 @@ Foam::scalar Foam::solidRegionDiffNo
scalar
DiNum
=
0
.
0
;
scalar
meanDiNum
=
0
.
0
;
//- Can have fluid domains with 0 cells so do not test.
if
(
mesh
.
nInternalFaces
())
{
surfaceScalarField
KrhoCpbyDelta
=
mesh
.
surfaceInterpolation
::
deltaCoeffs
()
*
fvc
::
interpolate
(
K
)
/
fvc
::
interpolate
(
Cprho
);
DiNum
=
max
(
KrhoCpbyDelta
.
internalField
())
*
runTime
.
deltaT
().
value
();
meanDiNum
=
(
average
(
KrhoCpbyDelta
)).
value
()
*
runTime
.
deltaT
().
value
();
}
//- Take care: can have fluid domains with 0 cells so do not test for
// zero internal faces.
surfaceScalarField
KrhoCpbyDelta
=
mesh
.
surfaceInterpolation
::
deltaCoeffs
()
*
fvc
::
interpolate
(
K
)
/
fvc
::
interpolate
(
Cprho
);
DiNum
=
gMax
(
KrhoCpbyDelta
.
internalField
())
*
runTime
.
deltaT
().
value
();
meanDiNum
=
(
average
(
KrhoCpbyDelta
)).
value
()
*
runTime
.
deltaT
().
value
();
Info
<<
"Region: "
<<
mesh
.
name
()
<<
" Diffusion Number mean: "
<<
meanDiNum
<<
" max: "
<<
DiNum
<<
endl
;
...
...
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