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
3051d333
Commit
3051d333
authored
May 03, 2011
by
andy
Browse files
STYLE: Consistency updates for LTS solver
parent
2f374d0d
Changes
4
Hide whitespace changes
Inline
Side-by-side
applications/solvers/lagrangian/LTSReactingParcelFoam/readTimeControls.H
View file @
3051d333
...
...
@@ -27,13 +27,16 @@ License
scalar
maxCo
(
readScalar
(
pimple
.
dict
().
lookup
(
"maxCo"
)));
// Maximum time scale
scalar
maxDeltaT
=
readScalar
(
pimple
.
dict
().
lookup
(
"maxDeltaT"
));
scalar
maxDeltaT
(
pimple
.
dict
().
lookup
OrDefault
<
scalar
>
(
"maxDeltaT"
,
GREAT
));
// Smoothing parameter (0-1) when smoothing iterations > 0
scalar
alphaTauSmooth
(
pimple
.
dict
().
lookupOrDefault
(
"alphaTauSmooth"
,
0
.
1
));
scalar
rDeltaTSmoothingCoeff
(
pimple
.
dict
().
lookupOrDefault
<
scalar
>
(
"rDeltaTSmoothingCoeff"
,
0
.
1
)
);
// Maximum change in cell temperature per iteration (relative to previous value)
scalar
alphaT
auT
emp
(
pimple
.
dict
().
lookupOrDefault
(
"alphaT
auT
emp"
,
0
.
05
));
scalar
alphaTemp
(
pimple
.
dict
().
lookupOrDefault
(
"alphaTemp"
,
0
.
05
));
// ************************************************************************* //
applications/solvers/lagrangian/LTSReactingParcelFoam/timeScales.H
View file @
3051d333
...
...
@@ -82,7 +82,7 @@ Info<< "Time scales min/max:" << endl;
/
rho
);
tau
=
alphaT
auT
emp
*
thermo
.
Cp
()
*
T
/
(
tau
+
ROOTVSMALL
);
tau
=
alphaTemp
*
thermo
.
Cp
()
*
T
/
(
tau
+
ROOTVSMALL
);
Info
<<
" Temperature = "
<<
min
(
maxDeltaT
,
gMin
(
tau
))
<<
", "
<<
min
(
maxDeltaT
,
gMax
(
tau
))
<<
endl
;
...
...
@@ -105,7 +105,7 @@ Info<< "Time scales min/max:" << endl;
// Spatially smooth the time scale field
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
fvc
::
smooth
(
rDeltaT
,
alphaTauSmooth
);
fvc
::
smooth
(
rDeltaT
,
rDeltaTSmoothingCoeff
);
Info
<<
" Overall = "
<<
min
(
1
/
rDeltaT
).
value
()
<<
", "
<<
max
(
1
/
rDeltaT
).
value
()
<<
nl
<<
endl
;
...
...
tutorials/lagrangian/LTSReactingParcelFoam/counterFlowFlame2D/system/fvSolution
View file @
3051d333
...
...
@@ -85,8 +85,9 @@ PIMPLE
rhoMax rhoMax [1 -3 0 0 0] 1.5;
maxCo 0.5;
rDeltaTSmoothingCoeff 0.1;
maxDeltaT 1;
alphaT
auT
emp 0.005;
alphaTemp
0.005;
}
additional
...
...
tutorials/lagrangian/LTSReactingParcelFoam/verticalChannel/system/fvSolution
View file @
3051d333
...
...
@@ -72,8 +72,8 @@ PIMPLE
rhoMax rhoMax [1 -3 0 0 0] 1.5;
maxCo 5;
alphaTauSmooth
1;
alphaT
auT
emp 1;
rDeltaTSmoothingCoeff
1;
alphaTemp
1;
maxDeltaT 1;
}
...
...
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