Skip to content
GitLab
Menu
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
b3a28977
Commit
b3a28977
authored
Dec 06, 2012
by
andy
Browse files
ENH: Replaced buoyantSimpleRadiationFoam by buoyantSimpleFoam - radiation now included by default
parent
fd7527bf
Changes
8
Hide whitespace changes
Inline
Side-by-side
applications/solvers/heatTransfer/buoyantSimpleFoam/Allwmake
deleted
100755 → 0
View file @
fd7527bf
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# run from this directory
set
-x
wmake
wmake buoyantSimpleRadiationFoam
# ----------------------------------------------------------------- end-of-file
applications/solvers/heatTransfer/buoyantSimpleFoam/EEqn.H
View file @
b3a28977
...
...
@@ -10,10 +10,13 @@
:
fvc
::
div
(
phi
,
volScalarField
(
"K"
,
0
.
5
*
magSqr
(
U
)))
)
-
fvm
::
laplacian
(
turbulence
->
alphaEff
(),
he
)
==
radiation
->
Sh
(
thermo
)
);
EEqn
.
relax
();
EEqn
.
solve
();
thermo
.
correct
();
radiation
->
correct
();
}
applications/solvers/heatTransfer/buoyantSimpleFoam/Make/options
View file @
b3a28977
EXE_INC = \
-I.. \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/compressible/RAS/lnInclude \
-I$(LIB_SRC)/turbulenceModels/RAS \
-I$(LIB_SRC)/finiteVolume/cfdTools \
-I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \
-lmeshTools \
-lfluidThermophysicalModels \
-lspecie \
-lradiationModels \
-lcompressibleTurbulenceModel \
-lcompressibleRASModels \
-lfiniteVolume
-lfiniteVolume \
-lmeshTools
applications/solvers/heatTransfer/buoyantSimpleFoam/buoyantSimpleFoam.C
View file @
b3a28977
...
...
@@ -22,10 +22,11 @@ License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
buoyantSimpleFoam
buoyantSimple
Radiation
Foam
Description
Steady-state solver for buoyant, turbulent flow of compressible fluids
Steady-state solver for buoyant, turbulent flow of compressible fluids,
including radiation, for ventilation and heat-transfer.
\*---------------------------------------------------------------------------*/
...
...
@@ -33,6 +34,7 @@ Description
#include
"psiThermo.H"
#include
"RASModel.H"
#include
"fixedGradientFvPatchFields.H"
#include
"radiationModel.H"
#include
"simpleControl.H"
#include
"IOMRFZoneList.H"
...
...
@@ -46,6 +48,7 @@ int main(int argc, char *argv[])
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createZones.H"
#include
"createRadiationModel.H"
#include
"initContinuityErrs.H"
simpleControl
simple
(
mesh
);
...
...
applications/solvers/heatTransfer/buoyantSimpleFoam/buoyantSimpleRadiationFoam/EEqn.H
deleted
100644 → 0
View file @
fd7527bf
{
volScalarField
&
he
=
thermo
.
he
();
fvScalarMatrix
EEqn
(
fvm
::
div
(
phi
,
he
)
+
(
he
.
name
()
==
"e"
?
fvc
::
div
(
phi
,
volScalarField
(
"Ekp"
,
0
.
5
*
magSqr
(
U
)
+
p
/
rho
))
:
fvc
::
div
(
phi
,
volScalarField
(
"K"
,
0
.
5
*
magSqr
(
U
)))
)
-
fvm
::
laplacian
(
turbulence
->
alphaEff
(),
he
)
==
radiation
->
Sh
(
thermo
)
);
EEqn
.
relax
();
EEqn
.
solve
();
thermo
.
correct
();
radiation
->
correct
();
}
applications/solvers/heatTransfer/buoyantSimpleFoam/buoyantSimpleRadiationFoam/Make/files
deleted
100644 → 0
View file @
fd7527bf
buoyantSimpleRadiationFoam.C
EXE = $(FOAM_APPBIN)/buoyantSimpleRadiationFoam
applications/solvers/heatTransfer/buoyantSimpleFoam/buoyantSimpleRadiationFoam/Make/options
deleted
100644 → 0
View file @
fd7527bf
EXE_INC = \
-I.. \
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \
-I$(LIB_SRC)/thermophysicalModels/radiationModels/lnInclude \
-I$(LIB_SRC)/turbulenceModels \
-I$(LIB_SRC)/turbulenceModels/compressible/RAS/lnInclude \
-I$(LIB_SRC)/turbulenceModels/RAS \
-I$(LIB_SRC)/finiteVolume/cfdTools \
-I$(LIB_SRC)/finiteVolume/lnInclude
EXE_LIBS = \
-lfluidThermophysicalModels \
-lspecie \
-lradiationModels \
-lcompressibleTurbulenceModel \
-lcompressibleRASModels \
-lfiniteVolume \
-lmeshTools
applications/solvers/heatTransfer/buoyantSimpleFoam/buoyantSimpleRadiationFoam/buoyantSimpleRadiationFoam.C
deleted
100644 → 0
View file @
fd7527bf
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
This file is part of OpenFOAM.
OpenFOAM is free software: you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
for more details.
You should have received a copy of the GNU General Public License
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
Application
buoyantSimpleRadiationFoam
Description
Steady-state solver for buoyant, turbulent flow of compressible fluids,
including radiation, for ventilation and heat-transfer.
\*---------------------------------------------------------------------------*/
#include
"fvCFD.H"
#include
"psiThermo.H"
#include
"RASModel.H"
#include
"fixedGradientFvPatchFields.H"
#include
"radiationModel.H"
#include
"simpleControl.H"
#include
"IOMRFZoneList.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
int
main
(
int
argc
,
char
*
argv
[])
{
#include
"setRootCase.H"
#include
"createTime.H"
#include
"createMesh.H"
#include
"readGravitationalAcceleration.H"
#include
"createFields.H"
#include
"createZones.H"
#include
"createRadiationModel.H"
#include
"initContinuityErrs.H"
simpleControl
simple
(
mesh
);
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Info
<<
"
\n
Starting time loop
\n
"
<<
endl
;
while
(
simple
.
loop
())
{
Info
<<
"Time = "
<<
runTime
.
timeName
()
<<
nl
<<
endl
;
// Pressure-velocity SIMPLE corrector
{
#include
"UEqn.H"
#include
"EEqn.H"
#include
"pEqn.H"
}
turbulence
->
correct
();
runTime
.
write
();
Info
<<
"ExecutionTime = "
<<
runTime
.
elapsedCpuTime
()
<<
" s"
<<
" ClockTime = "
<<
runTime
.
elapsedClockTime
()
<<
" s"
<<
nl
<<
endl
;
}
Info
<<
"End
\n
"
<<
endl
;
return
0
;
}
// ************************************************************************* //
Write
Preview
Supports
Markdown
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