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
df073a34
Commit
df073a34
authored
Dec 11, 2012
by
andy
Browse files
ENH: Added sources to scalarTransportFoam
parent
100ed55f
Changes
2
Hide whitespace changes
Inline
Side-by-side
applications/solvers/basic/scalarTransportFoam/Make/options
View file @
df073a34
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude
-I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/fieldSources/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude \
-I$(LIB_SRC)/sampling/lnInclude
EXE_LIBS = -lfiniteVolume
EXE_LIBS = \
-lfiniteVolume \
-lfieldSources \
-lmeshTools \
-lsampling
applications/solvers/basic/scalarTransportFoam/scalarTransportFoam.C
View file @
df073a34
...
...
@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011
-2012
OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
...
...
@@ -30,6 +30,7 @@ Description
\*---------------------------------------------------------------------------*/
#include
"fvCFD.H"
#include
"IObasicSourceList.H"
#include
"simpleControl.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
...
...
@@ -40,6 +41,7 @@ int main(int argc, char *argv[])
#include
"createTime.H"
#include
"createMesh.H"
#include
"createFields.H"
#include
"createSources.H"
simpleControl
simple
(
mesh
);
...
...
@@ -60,6 +62,8 @@ int main(int argc, char *argv[])
fvm
::
ddt
(
T
)
+
fvm
::
div
(
phi
,
T
)
-
fvm
::
laplacian
(
DT
,
T
)
==
sources
(
T
)
);
}
...
...
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