mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Merge branch 'master' of /home/dm4/OpenFOAM/repositories/OpenFOAM-dev
This commit is contained in:
@ -106,7 +106,7 @@ int main(int argc, char *argv[])
|
||||
zeroGradientFvPatchVectorField::typeName
|
||||
);
|
||||
|
||||
cloudVolSUSu.internalField() = - cloudSU.source()/mesh.V();
|
||||
cloudVolSUSu.internalField() = -cloudSU.source()/mesh.V();
|
||||
cloudVolSUSu.correctBoundaryConditions();
|
||||
cloudSU.source() = vector::zero;
|
||||
|
||||
|
||||
@ -123,7 +123,7 @@ void Foam::AveragingMethods::Dual<Type>::tetGeometry
|
||||
|
||||
tetIs.tet(this->mesh_).barycentric(position, tetCoordinates_);
|
||||
|
||||
tetCoordinates_ = max(tetCoordinates_, 0.0);
|
||||
tetCoordinates_ = max(tetCoordinates_, scalar(0));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -87,7 +87,7 @@ Foam::TimeScaleModels::equilibrium::oneByTau
|
||||
|
||||
return
|
||||
a
|
||||
*alpha*sqrt(max(uSqr, 0.0))/max(r32, SMALL)
|
||||
*alpha*sqrt(max(uSqr, scalar(0)))/max(r32, SMALL)
|
||||
*alphaPacked_/max(alphaPacked_ - alpha, SMALL);
|
||||
}
|
||||
|
||||
|
||||
@ -3508,7 +3508,7 @@ void Foam::autoLayerDriver::addLayers
|
||||
meshRefiner_.updateMesh(map, labelList(0));
|
||||
|
||||
// Update numbering of faceWantedThickness
|
||||
meshRefinement::updateList(map().faceMap(), 0.0, faceWantedThickness);
|
||||
meshRefinement::updateList(map().faceMap(), scalar(0), faceWantedThickness);
|
||||
|
||||
// Update numbering on baffles
|
||||
forAll(baffles, i)
|
||||
|
||||
@ -91,10 +91,10 @@ void Foam::cyclicACMIPolyPatch::resetAMI
|
||||
);
|
||||
|
||||
srcMask_ =
|
||||
min(1.0 - tolerance_, max(tolerance_, AMI().srcWeightsSum()));
|
||||
min(scalar(1) - tolerance_, max(tolerance_, AMI().srcWeightsSum()));
|
||||
|
||||
tgtMask_ =
|
||||
min(1.0 - tolerance_, max(tolerance_, AMI().tgtWeightsSum()));
|
||||
min(scalar(1) - tolerance_, max(tolerance_, AMI().tgtWeightsSum()));
|
||||
|
||||
forAll(Sf, faceI)
|
||||
{
|
||||
|
||||
@ -121,9 +121,9 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
|
||||
max
|
||||
(
|
||||
(do_ - pDist.internalField())/(do_ - di_),
|
||||
0.0
|
||||
scalar(0)
|
||||
),
|
||||
1.0
|
||||
scalar(1)
|
||||
);
|
||||
|
||||
// Convert the scale function to a cosine
|
||||
@ -136,9 +136,9 @@ Foam::sixDoFRigidBodyMotionSolver::sixDoFRigidBodyMotionSolver
|
||||
- 0.5
|
||||
*cos(scale_.internalField()
|
||||
*Foam::constant::mathematical::pi),
|
||||
0.0
|
||||
scalar(0)
|
||||
),
|
||||
1.0
|
||||
scalar(1)
|
||||
);
|
||||
|
||||
scale_.correctBoundaryConditions();
|
||||
|
||||
@ -17,14 +17,14 @@ FoamFile
|
||||
|
||||
solvers
|
||||
{
|
||||
alpha.water
|
||||
"alpha.water.*"
|
||||
{
|
||||
nAlphaCorr 1;
|
||||
nAlphaSubCycles 3;
|
||||
cAlpha 1;
|
||||
}
|
||||
|
||||
pcorr
|
||||
"pcorr.*"
|
||||
{
|
||||
solver PCG;
|
||||
preconditioner
|
||||
|
||||
@ -17,7 +17,7 @@ FoamFile
|
||||
|
||||
solvers
|
||||
{
|
||||
alpha.water
|
||||
"alpha.water.*"
|
||||
{
|
||||
nAlphaCorr 1;
|
||||
nAlphaSubCycles 2;
|
||||
@ -38,7 +38,7 @@ solvers
|
||||
mergeLevels 1;
|
||||
}
|
||||
|
||||
pcorr
|
||||
"pcorr.*"
|
||||
{
|
||||
$p_rgh;
|
||||
tolerance 0.1;
|
||||
|
||||
@ -54,5 +54,6 @@ runTimeModifiable true;
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 2;
|
||||
maxAlphaCo 2;
|
||||
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -16,7 +16,7 @@ FoamFile
|
||||
|
||||
solvers
|
||||
{
|
||||
alpha.water
|
||||
"alpha.water.*"
|
||||
{
|
||||
cAlpha 0;
|
||||
nAlphaCorr 2;
|
||||
@ -32,7 +32,7 @@ solvers
|
||||
maxIter 10;
|
||||
};
|
||||
|
||||
pcorr
|
||||
"pcorr.*"
|
||||
{
|
||||
solver GAMG;
|
||||
tolerance 1e-2;
|
||||
|
||||
Reference in New Issue
Block a user