Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev

This commit is contained in:
mattijs
2013-12-31 11:30:23 +00:00
10 changed files with 18 additions and 17 deletions

View File

@ -106,7 +106,7 @@ int main(int argc, char *argv[])
zeroGradientFvPatchVectorField::typeName zeroGradientFvPatchVectorField::typeName
); );
cloudVolSUSu.internalField() = - cloudSU.source()/mesh.V(); cloudVolSUSu.internalField() = -cloudSU.source()/mesh.V();
cloudVolSUSu.correctBoundaryConditions(); cloudVolSUSu.correctBoundaryConditions();
cloudSU.source() = vector::zero; cloudSU.source() = vector::zero;

View File

@ -123,7 +123,7 @@ void Foam::AveragingMethods::Dual<Type>::tetGeometry
tetIs.tet(this->mesh_).barycentric(position, tetCoordinates_); tetIs.tet(this->mesh_).barycentric(position, tetCoordinates_);
tetCoordinates_ = max(tetCoordinates_, 0.0); tetCoordinates_ = max(tetCoordinates_, scalar(0));
} }

View File

@ -85,9 +85,9 @@ Foam::TimeScaleModels::equilibrium::oneByTau
16.0/sqrt(3.0*constant::mathematical::pi) 16.0/sqrt(3.0*constant::mathematical::pi)
*0.25*(1.0 - e_*e_); *0.25*(1.0 - e_*e_);
return return
a a
*alpha*sqrt(max(uSqr, 0.0))/max(r32, SMALL) *alpha*sqrt(max(uSqr, scalar(0)))/max(r32, SMALL)
*alphaPacked_/max(alphaPacked_ - alpha, SMALL); *alphaPacked_/max(alphaPacked_ - alpha, SMALL);
} }

View File

@ -3508,7 +3508,7 @@ void Foam::autoLayerDriver::addLayers
meshRefiner_.updateMesh(map, labelList(0)); meshRefiner_.updateMesh(map, labelList(0));
// Update numbering of faceWantedThickness // Update numbering of faceWantedThickness
meshRefinement::updateList(map().faceMap(), 0.0, faceWantedThickness); meshRefinement::updateList(map().faceMap(), scalar(0), faceWantedThickness);
// Update numbering on baffles // Update numbering on baffles
forAll(baffles, i) forAll(baffles, i)

View File

@ -91,10 +91,10 @@ void Foam::cyclicACMIPolyPatch::resetAMI
); );
srcMask_ = srcMask_ =
min(1.0 - tolerance_, max(tolerance_, AMI().srcWeightsSum())); min(scalar(1) - tolerance_, max(tolerance_, AMI().srcWeightsSum()));
tgtMask_ = tgtMask_ =
min(1.0 - tolerance_, max(tolerance_, AMI().tgtWeightsSum())); min(scalar(1) - tolerance_, max(tolerance_, AMI().tgtWeightsSum()));
forAll(Sf, faceI) forAll(Sf, faceI)
{ {

View File

@ -121,9 +121,9 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
max max
( (
(do_ - pDist.internalField())/(do_ - di_), (do_ - pDist.internalField())/(do_ - di_),
0.0 scalar(0)
), ),
1.0 scalar(1)
); );
// Convert the scale function to a cosine // Convert the scale function to a cosine
@ -136,9 +136,9 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
- 0.5 - 0.5
*cos(scale_.internalField() *cos(scale_.internalField()
*Foam::constant::mathematical::pi), *Foam::constant::mathematical::pi),
0.0 scalar(0)
), ),
1.0 scalar(1)
); );
scale_.correctBoundaryConditions(); scale_.correctBoundaryConditions();

View File

@ -17,14 +17,14 @@ FoamFile
solvers solvers
{ {
alpha.water "alpha.water.*"
{ {
nAlphaCorr 1; nAlphaCorr 1;
nAlphaSubCycles 3; nAlphaSubCycles 3;
cAlpha 1; cAlpha 1;
} }
pcorr "pcorr.*"
{ {
solver PCG; solver PCG;
preconditioner preconditioner

View File

@ -17,7 +17,7 @@ FoamFile
solvers solvers
{ {
alpha.water "alpha.water.*"
{ {
nAlphaCorr 1; nAlphaCorr 1;
nAlphaSubCycles 2; nAlphaSubCycles 2;
@ -38,7 +38,7 @@ solvers
mergeLevels 1; mergeLevels 1;
} }
pcorr "pcorr.*"
{ {
$p_rgh; $p_rgh;
tolerance 0.1; tolerance 0.1;

View File

@ -54,5 +54,6 @@ runTimeModifiable true;
adjustTimeStep yes; adjustTimeStep yes;
maxCo 2; maxCo 2;
maxAlphaCo 2;
// ************************************************************************* // // ************************************************************************* //

View File

@ -16,7 +16,7 @@ FoamFile
solvers solvers
{ {
alpha.water "alpha.water.*"
{ {
cAlpha 0; cAlpha 0;
nAlphaCorr 2; nAlphaCorr 2;
@ -32,7 +32,7 @@ solvers
maxIter 10; maxIter 10;
}; };
pcorr "pcorr.*"
{ {
solver GAMG; solver GAMG;
tolerance 1e-2; tolerance 1e-2;