Skip to content
Snippets Groups Projects
Commit e9288a69 authored by andy's avatar andy
Browse files

ENH: added fields sources to simpleFoam

parent cddb8bd8
No related merge requests found
...@@ -3,10 +3,12 @@ EXE_INC = \ ...@@ -3,10 +3,12 @@ EXE_INC = \
-I$(LIB_SRC)/turbulenceModels/incompressible/RAS/RASModel \ -I$(LIB_SRC)/turbulenceModels/incompressible/RAS/RASModel \
-I$(LIB_SRC)/transportModels \ -I$(LIB_SRC)/transportModels \
-I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \ -I$(LIB_SRC)/transportModels/incompressible/singlePhaseTransportModel \
-I$(LIB_SRC)/finiteVolume/lnInclude -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-lincompressibleTurbulenceModel \ -lincompressibleTurbulenceModel \
-lincompressibleRASModels \ -lincompressibleRASModels \
-lincompressibleTransportModels \ -lincompressibleTransportModels \
-lfiniteVolume -lfiniteVolume \
-lmeshTools
...@@ -6,6 +6,8 @@ ...@@ -6,6 +6,8 @@
+ turbulence->divDevReff(U) + turbulence->divDevReff(U)
); );
sources.apply(UEqn());
UEqn().relax(); UEqn().relax();
solve(UEqn() == -fvc::grad(p)); solve(UEqn() == -fvc::grad(p));
...@@ -39,3 +39,5 @@ ...@@ -39,3 +39,5 @@
( (
incompressible::RASModel::New(U, phi, laminarTransport) incompressible::RASModel::New(U, phi, laminarTransport)
); );
IObasicSourceList sources(mesh);
...@@ -33,6 +33,7 @@ Description ...@@ -33,6 +33,7 @@ Description
#include "singlePhaseTransportModel.H" #include "singlePhaseTransportModel.H"
#include "RASModel.H" #include "RASModel.H"
#include "simpleControl.H" #include "simpleControl.H"
#include "IObasicSourceList.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment