forked from csoulain/porousMedia4Foam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cyprien SOULAINE
committed
Feb 20, 2020
1 parent
498a810
commit 1e9df1a
Showing
14 changed files
with
439 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
90 changes: 90 additions & 0 deletions
90
libraries/porousModels/geochemicalModels/flowOnly/flowOnly.C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
/*---------------------------------------------------------------------------*\ | ||
========= | | ||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox | ||
\\ / O peration | Website: https://openfoam.org | ||
\\ / A nd | Copyright (C) 2011-2018 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/>. | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
#include "flowOnly.H" | ||
#include "addToRunTimeSelectionTable.H" | ||
|
||
|
||
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // | ||
|
||
namespace Foam | ||
{ | ||
namespace geochemicalModels | ||
{ | ||
defineTypeNameAndDebug(flowOnly, 0); | ||
|
||
addToRunTimeSelectionTable | ||
( | ||
basicGeochemicalModel, | ||
flowOnly, | ||
dictionary | ||
); | ||
} | ||
} | ||
|
||
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // | ||
|
||
Foam::geochemicalModels::flowOnly::flowOnly | ||
( | ||
const fvMesh& mesh, | ||
const dictionary& dict | ||
) | ||
: | ||
basicGeochemicalModel(mesh, dict) | ||
/// rhol_(dict.lookup("rhol")) | ||
{ | ||
Info << " flowOnly, no geochemistry " << nl << endl; | ||
} | ||
|
||
// -------------------------------------------------------------------------// | ||
|
||
/* | ||
Foam::volScalarField Foam::flowOnly::dMl() const | ||
{ | ||
volScalarField dMl_(0.0*fvc::ddt(Y_[0])/this->rhol()); | ||
forAll(Y_,s) | ||
{ | ||
dMl_ = dMl_ + fvc::ddt(Y_[s])/this->rhol(); | ||
} | ||
return dMl_; | ||
} | ||
*/ | ||
|
||
/* | ||
Foam::volScalarField Foam::flowOnly::rhol() const | ||
{ | ||
volScalarField rhol_(0.0*Y_[0]); | ||
forAll(Y_,s) | ||
{ | ||
rhol_ = rhol_ + Y_[s]; | ||
} | ||
return rhol_; | ||
} | ||
*/ | ||
// ************************************************************************* // |
Oops, something went wrong.