mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: Correct treatment of contactAngleForce near boundaries
This commit is contained in:
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2020 OpenCFD Ltd.
|
Copyright (C) 2020-2022 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -153,19 +153,6 @@ tmp<faVectorMatrix> contactAngleForce::correct(areaVectorField& U)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
forAll(sigma.boundaryField(), patchi)
|
|
||||||
{
|
|
||||||
const faPatchField<scalar>& alphaPf = sigma.boundaryField()[patchi];
|
|
||||||
const faPatchField<scalar>& sigmaPf = sigma.boundaryField()[patchi];
|
|
||||||
const labelUList& faces = alphaPf.patch().edgeFaces();
|
|
||||||
|
|
||||||
forAll(sigmaPf, edgei)
|
|
||||||
{
|
|
||||||
label face0 = faces[edgei];
|
|
||||||
force[face0] = vector::zero;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
force /= magSf.field();
|
force /= magSf.field();
|
||||||
|
|
||||||
|
|||||||
@ -5,9 +5,9 @@ cd "${0%/*}" || exit # Run from this directory
|
|||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
|
|
||||||
runApplication decomposePar
|
runApplication makeFaMesh
|
||||||
|
|
||||||
runParallel makeFaMesh
|
runApplication decomposePar
|
||||||
|
|
||||||
runParallel $(getApplication)
|
runParallel $(getApplication)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user