1- /*---------------------------------------------------------------------------*\
2- ========= |
3- \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4- \\ / O peration |
5- \\ / A nd | www.openfoam.com
6- \\/ M anipulation |
7- -------------------------------------------------------------------------------
8- Copyright (C) 2011-2017 OpenFOAM Foundation
9- -------------------------------------------------------------------------------
10- License
11- This file is part of OpenFOAM.
12-
13- OpenFOAM is free software: you can redistribute it and/or modify it
14- under the terms of the GNU General Public License as published by
15- the Free Software Foundation, either version 3 of the License, or
16- (at your option) any later version.
17-
18- OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21- for more details.
22-
23- You should have received a copy of the GNU General Public License
24- along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25-
26- Application
27- dynamicScalarTransportFoam
28-
29- Group
30- grpBasicSolvers
31-
32- Description
33- Passive scalar transport equation solver.
34-
35- \heading Solver details
36- The equation is given by:
37-
38- \f[
39- \ddt{T} + \div \left(\vec{U} T\right) - \div \left(D_T \grad T \right)
40- = S_{T}
41- \f]
42-
43- Where:
44- \vartable
45- T | Passive scalar
46- D_T | Diffusion coefficient
47- S_T | Source
48- \endvartable
49-
50- \heading Required fields
51- \plaintable
52- T | Passive scalar
53- U | Velocity [m/s]
54- \endplaintable
55-
56- \*---------------------------------------------------------------------------*/
1+ //
2+ // This file is based on the OpenFOAM example application scalarTransportFoam
3+ //
4+ // GitLab link: https://gitlab.com/openfoam/core/openfoam/-/tree/master/applications/solvers/basic/scalarTransportFoam
5+ //
6+ // This modified version doesn't expect a static velocity field U, instead, it repomputes it every time step.
7+ // Therefore it allows the preCICE adapter to provide the velocities.
578
589#include "fvCFD.H"
5910#include "fvOptions.H"
@@ -64,7 +15,7 @@ Description
6415int main (int argc , char * argv [])
6516{
6617 argList ::addNote (
67- "Passive scalar transport equation solver." );
18+ "Dynamic scalar transport equation solver." );
6819
6920#include "addCheckCaseOptions.H"
7021#include "createMesh.H"
0 commit comments