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
262e6be2
Commit
262e6be2
authored
Dec 08, 2010
by
sergio
Browse files
ENH: new basicSolidThermo, solid -> pointSolid and solidMixture ->
pointSolidMixture. chtMultiRegion tutorials and solvers
parent
fbcda2af
Changes
134
Hide whitespace changes
Inline
Side-by-side
applications/solvers/heatTransfer/chtMultiRegionFoam/Make/options
View file @
262e6be2
...
...
@@ -5,6 +5,7 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basicSolidThermo/lnInclude \
-I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel/lnInclude
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/Make/options
View file @
262e6be2
...
...
@@ -7,6 +7,7 @@ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basicSolidThermo/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/compressible/turbulenceModel/lnInclude \
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/chtMultiRegionSimpleFoam/solid/setRegionSolidFields.H
View file @
262e6be2
...
...
@@ -4,7 +4,7 @@
tmp
<
volScalarField
>
trho
=
thermo
.
rho
();
const
volScalarField
&
rho
=
trho
();
tmp
<
volScalarField
>
tcp
=
thermo
.
c
p
();
tmp
<
volScalarField
>
tcp
=
thermo
.
C
p
();
const
volScalarField
&
cp
=
tcp
();
tmp
<
volScalarField
>
tK
=
thermo
.
K
();
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/solid/setRegionSolidFields.H
View file @
262e6be2
...
...
@@ -4,11 +4,12 @@
tmp
<
volScalarField
>
trho
=
thermo
.
rho
();
const
volScalarField
&
rho
=
trho
();
tmp
<
volScalarField
>
tcp
=
thermo
.
c
p
();
tmp
<
volScalarField
>
tcp
=
thermo
.
C
p
();
const
volScalarField
&
cp
=
tcp
();
tmp
<
volScalarField
>
tK
=
thermo
.
K
();
//tmp<volSymmTensorField> tK = thermo.directionalK();
const
volScalarField
&
K
=
tK
();
//const volSymmTensorField& K = tK();
volScalarField
&
T
=
thermo
.
T
();
applications/solvers/heatTransfer/chtMultiRegionFoam/solid/solidRegionDiffNo.C
View file @
262e6be2
...
...
@@ -55,4 +55,35 @@ Foam::scalar Foam::solidRegionDiffNo
}
Foam
::
scalar
Foam
::
solidRegionDiffNo
(
const
fvMesh
&
mesh
,
const
Time
&
runTime
,
const
volScalarField
&
Cprho
,
const
volSymmTensorField
&
Kdirectional
)
{
scalar
DiNum
=
0
.
0
;
scalar
meanDiNum
=
0
.
0
;
volScalarField
K
=
mag
(
Kdirectional
);
//- 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
;
return
DiNum
;
}
// ************************************************************************* //
applications/solvers/heatTransfer/chtMultiRegionFoam/solid/solidRegionDiffNo.H
View file @
262e6be2
...
...
@@ -41,6 +41,15 @@ namespace Foam
const
volScalarField
&
Cprho
,
const
volScalarField
&
K
);
scalar
solidRegionDiffNo
(
const
fvMesh
&
mesh
,
const
Time
&
runTime
,
const
volScalarField
&
Cprho
,
const
volSymmTensorField
&
K
);
}
#endif
...
...
applications/solvers/heatTransfer/chtMultiRegionFoam/solid/solveSolid.H
View file @
262e6be2
...
...
@@ -18,6 +18,8 @@ if (finalIter)
Info
<<
"Min/max T:"
<<
min
(
T
)
<<
' '
<<
max
(
T
)
<<
endl
;
}
thermo
.
correct
();
if
(
finalIter
)
{
mesh
.
data
::
remove
(
"finalIteration"
);
...
...
applications/solvers/lagrangian/coalChemistryFoam/Make/options
View file @
262e6be2
...
...
@@ -10,8 +10,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
...
...
@@ -33,8 +33,8 @@ EXE_LIBS = \
-lbasicThermophysicalModels \
-lliquids \
-lliquidMixture \
-l
s
olids \
-l
s
olidMixture \
-l
pointS
olids \
-l
pointS
olidMixture \
-lthermophysicalFunctions \
-lreactionThermophysicalModels \
-lSLGThermo \
...
...
applications/solvers/lagrangian/porousExplicitSourceReactingParcelFoam/Make/options
View file @
262e6be2
...
...
@@ -10,8 +10,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
...
...
@@ -32,8 +32,8 @@ EXE_LIBS = \
-lbasicThermophysicalModels \
-lliquids \
-lliquidMixture \
-l
s
olids \
-l
s
olidMixture \
-l
pointS
olids \
-l
pointS
olidMixture \
-lthermophysicalFunctions \
-lreactionThermophysicalModels \
-lSLGThermo \
...
...
applications/solvers/lagrangian/reactingParcelFilmFoam/Make/options
View file @
262e6be2
...
...
@@ -5,8 +5,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
...
...
@@ -26,8 +26,8 @@ EXE_LIBS = \
-lcompressibleLESModels \
-lspecie \
-lbasicThermophysicalModels \
-l
s
olids \
-l
s
olidMixture \
-l
pointS
olids \
-l
pointS
olidMixture \
-lthermophysicalFunctions \
-lreactionThermophysicalModels \
-lSLGThermo \
...
...
applications/solvers/lagrangian/reactingParcelFoam/Make/options
View file @
262e6be2
...
...
@@ -9,8 +9,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
...
...
@@ -31,8 +31,8 @@ EXE_LIBS = \
-lbasicThermophysicalModels \
-lliquids \
-lliquidMixture \
-l
s
olids \
-l
s
olidMixture \
-l
pointS
olids \
-l
pointS
olidMixture \
-lthermophysicalFunctions \
-lreactionThermophysicalModels \
-lSLGThermo \
...
...
applications/solvers/lagrangian/steadyReactingParcelFoam/Make/options
View file @
262e6be2
...
...
@@ -10,8 +10,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/thermophysicalFunctions/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
...
...
@@ -32,8 +32,8 @@ EXE_LIBS = \
-lbasicThermophysicalModels \
-lliquids \
-lliquidMixture \
-l
s
olids \
-l
s
olidMixture \
-l
pointS
olids \
-l
pointS
olidMixture \
-lthermophysicalFunctions \
-lreactionThermophysicalModels \
-lSLGThermo \
...
...
applications/utilities/miscellaneous/foamDebugSwitches/Make/options
View file @
262e6be2
...
...
@@ -47,9 +47,9 @@ EXE_LIBS = \
-lrandomProcesses \
-lreactionThermophysicalModels \
-lsampling \
-l
s
olidMixture \
-l
pointS
olidMixture \
-lsolidParticle \
-l
s
olids \
-l
pointS
olids \
-lspecie \
-lsurfMesh \
-lsystemCall \
...
...
src/lagrangian/coalCombustion/Make/options
View file @
262e6be2
...
...
@@ -8,8 +8,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
...
...
@@ -30,8 +30,8 @@ LIB_LIBS = \
-lbasicThermophysicalModels \
-lliquids \
-lliquidMixture \
-l
s
olids \
-l
s
olidMixture \
-l
pointS
olids \
-l
pointS
olidMixture \
-lreactionThermophysicalModels \
-lSLGThermo \
-lcompressibleRASModels \
...
...
src/lagrangian/intermediate/Make/options
View file @
262e6be2
...
...
@@ -7,8 +7,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiation/lnInclude \
...
...
@@ -27,8 +27,8 @@ LIB_LIBS = \
-lpdf \
-lliquids \
-lliquidMixture \
-l
s
olids \
-l
s
olidMixture \
-l
pointS
olids \
-l
pointS
olidMixture \
-lspecie \
-lbasicThermophysicalModels \
-lreactionThermophysicalModels \
...
...
src/lagrangian/intermediate/submodels/Reacting/CompositionModel/CompositionModel/CompositionModel.C
View file @
262e6be2
...
...
@@ -100,7 +100,7 @@ const Foam::liquidMixture& Foam::CompositionModel<CloudType>::liquids() const
template
<
class
CloudType
>
const
Foam
::
s
olidMixture
&
Foam
::
CompositionModel
<
CloudType
>::
solids
()
const
const
Foam
::
pointS
olidMixture
&
Foam
::
CompositionModel
<
CloudType
>::
solids
()
const
{
return
thermo_
.
solids
();
}
...
...
src/lagrangian/intermediate/submodels/Reacting/CompositionModel/CompositionModel/CompositionModel.H
View file @
262e6be2
...
...
@@ -143,7 +143,7 @@ public:
const
liquidMixture
&
liquids
()
const
;
//- Return the global (additional) solids
const
s
olidMixture
&
solids
()
const
;
const
pointS
olidMixture
&
solids
()
const
;
//- Return the list of phase properties
const
phasePropertiesList
&
phaseProps
()
const
;
...
...
src/surfaceFilmModels/Make/options
View file @
262e6be2
...
...
@@ -5,8 +5,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/SLGThermo/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/pdfs/lnInclude \
...
...
src/thermophysicalModels/Allwmake
View file @
262e6be2
...
...
@@ -3,11 +3,12 @@ cd ${0%/*} || exit 1 # run from this directory
set
-x
wmake libso specie
wmake libso solid
wmake libso thermophysicalFunctions
wmake libso liquids
wmake libso liquidMixture
wmake libso
s
olids
wmake libso
s
olidMixture
wmake libso
pointS
olids
wmake libso
pointS
olidMixture
wmake libso basic
wmake libso reactionThermo
...
...
src/thermophysicalModels/SLGThermo/Make/options
View file @
262e6be2
...
...
@@ -4,8 +4,8 @@ EXE_INC = \
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/liquidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
s
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olids/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/
pointS
olidMixture/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/reactionThermo/lnInclude
LIB_LIBS = \
...
...
Prev
1
2
3
4
5
…
7
Next
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