-
Notifications
You must be signed in to change notification settings - Fork 19
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
Showing
489 changed files
with
3,802 additions
and
1,824 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
EXE_INC = \ | ||
-I$(LIB_SRC)/physicalProperties/lnInclude \ | ||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ | ||
-I$(LIB_SRC)/thermophysicalModels/basic/lnInclude \ | ||
-I$(LIB_SRC)/MomentumTransportModels/momentumTransportModels/lnInclude \ | ||
-I$(LIB_SRC)/MomentumTransportModels/compressible/lnInclude \ | ||
-I$(LIB_SRC)/ThermophysicalTransportModels/thermophysicalTransportModel/lnInclude \ | ||
-I$(LIB_SRC)/ThermophysicalTransportModels/fluid/lnInclude \ | ||
-I$(LIB_SRC)/ThermophysicalTransportModels/fluidThermo/lnInclude \ | ||
-I$(LIB_SRC)/finiteVolume/lnInclude \ | ||
-I$(LIB_SRC)/sampling/lnInclude \ | ||
-I$(LIB_SRC)/meshTools/lnInclude \ | ||
-I$(LIB_SRC)/thermophysicalModels/specie/lnInclude \ | ||
-I$(LIB_SRC)/triSurface/lnInclude \ | ||
-I../../libraries/porousModels/lnInclude \ | ||
-I../../libraries/otherModels/lnInclude \ | ||
-I../../ThirdParty/phreeqcrm/include \ | ||
|
||
EXE_LIBS = \ | ||
-lmeshTools \ | ||
-lspecie \ | ||
-lmomentumTransportModels \ | ||
-lcompressibleMomentumTransportModels \ | ||
-lfiniteVolume \ | ||
-lfvModels \ | ||
-lfvConstraints \ | ||
-lsampling \ | ||
-lmeshTools \ | ||
-lspecie \ | ||
-L$(FOAM_USER_LIBBIN) \ | ||
-lporousModels \ | ||
-lotherModels \ | ||
-L../../ThirdParty/phreeqcrm/lib/ -lphreeqcrm-3.6.2 | ||
-L../../ThirdParty/phreeqcrm/lib/ -lphreeqcrm-3.6.2 |
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,48 @@ | ||
/*---------------------------------------------------------------------------*\ | ||
========= | | ||
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox | ||
\\ / O peration | Website: https://openfoam.org | ||
\\ / A nd | Copyright (C) 2011-2023 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/>. | ||
Global | ||
CourantNo | ||
Description | ||
Calculates and outputs the mean and maximum Courant Numbers. | ||
\*---------------------------------------------------------------------------*/ | ||
|
||
{ | ||
const scalarField sumPhi | ||
( | ||
fvc::surfaceSum(mag(phiSt))().primitiveField() | ||
/rho.primitiveField() | ||
); | ||
|
||
StCoNum = 0.5*gMax(sumPhi/mesh.V().field())*runTime.deltaTValue(); | ||
|
||
const scalar meanStCoNum = | ||
0.5*(gSum(sumPhi)/gSum(mesh.V().field()))*runTime.deltaTValue(); | ||
|
||
Info<< "St courant Number mean: " << meanStCoNum | ||
<< " max: " << StCoNum << endl; | ||
} | ||
|
||
// ************************************************************************* // |
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 |
---|---|---|
@@ -1,26 +1,21 @@ | ||
// Solve the Momentum equation | ||
fvVectorMatrix UEqn | ||
( | ||
1./(eps+SMALL)*(fvm::ddt(U) + fvm::div(phi, U)) | ||
// - fvm::laplacian(turbulence->nu()/(eps+SMALL),U, "laplacian(nu,U)") | ||
// + fvm::Sp(turbulence->nu()*invK,U) | ||
- fvm::laplacian(nu/(eps+SMALL),U, "laplacian(nu,U)") | ||
+ fvm::Sp(nu*invK,U) | ||
== | ||
fvModels.source(U) | ||
); | ||
|
||
MRF.correctBoundaryVelocity(U); | ||
UEqn.relax(); | ||
|
||
tmp<fvVectorMatrix> tUEqn | ||
( | ||
1./(eps+SMALL)*(fvm::ddt(U) + fvm::div(phi, U)) | ||
// - fvm::laplacian(turbulence->nu()/(eps+SMALL),U, "laplacian(nu,U)") | ||
// + fvm::Sp(turbulence->nu()*invK,U) | ||
- fvm::laplacian(nu/(eps+SMALL),U, "laplacian(nu,U)") | ||
+ fvm::Sp(nu*invK,U) | ||
== | ||
fvModels.source(U) | ||
); | ||
fvVectorMatrix& UEqn = tUEqn.ref(); | ||
fvConstraints.constrain(UEqn); | ||
|
||
UEqn.relax(); | ||
if (pimple.momentumPredictor()) | ||
{ | ||
solve(UEqn == -fvc::grad(p)); | ||
|
||
fvConstraints.constrain(UEqn); | ||
|
||
if (pimple.momentumPredictor()) | ||
{ | ||
solve(UEqn == -fvc::grad(p)); | ||
|
||
fvConstraints.constrain(U); | ||
} | ||
fvConstraints.constrain(U); | ||
} |
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 @@ | ||
const volScalarField& psi = thermo.psi(); |
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
Oops, something went wrong.