/multiphaseEulerPbeFoam/CourantNo.H (005d01ad8449bd9e9c1cf7241d3d5abad9feea97) (1948 bytes) (mode 100644) (type blob)
/*---------------------------------------------------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2016 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.
\*---------------------------------------------------------------------------*/
scalar CoNum = 0.0;
scalar meanCoNum = 0.0;
if (mesh.nInternalFaces())
{
scalarField sumPhi
(
fvc::surfaceSum(mag(phi))().primitiveField()
);
forAllIter(PtrDictionary<phaseModel>, fluid.phases(), iter)
{
sumPhi = max
(
sumPhi,
fvc::surfaceSum(mag(iter().phi()))().primitiveField()
);
}
CoNum = 0.5*gMax(sumPhi/mesh.V().field())*runTime.deltaTValue();
meanCoNum =
0.5*(gSum(sumPhi)/gSum(mesh.V().field()))*runTime.deltaTValue();
}
Info<< "Courant Number mean: " << meanCoNum
<< " max: " << CoNum << endl;
// ************************************************************************* //
Mode |
Type |
Size |
Ref |
File |
100644 |
blob |
1678 |
eafd65dc86ce0addd22b8a6fc9f915452304e6a0 |
.gitignore |
100644 |
blob |
35087 |
388bc6322ccd6364794f92bdc22c3bc7121d4be0 |
LICENSE |
100644 |
blob |
1871 |
0c953b080b0c626c4ccc220d9c7d77005b8f2b1b |
README.md |
040000 |
tree |
- |
d1f7ee27a1a04274eb1e539108870fc6bada9d59 |
multiphaseEulerPbeFoam |
040000 |
tree |
- |
f9a7003d143a63a933e01eb9e150798b0ee54168 |
squareSettler |
040000 |
tree |
- |
4093cc709bb89943c79dbded845b542990ac3e45 |
testCase |
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"
Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/velagala/MultiPhaseQBMM
Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/velagala/MultiPhaseQBMM
Clone this repository using git:
git clone git://git.rocketgit.com/user/velagala/MultiPhaseQBMM
You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a
merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main