mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
constraining new velocity by solutionD()
This commit is contained in:
@ -85,6 +85,8 @@ void Foam::KinematicParcel<ParcelType>::calc
|
|||||||
const scalar rho0 = rho_;
|
const scalar rho0 = rho_;
|
||||||
const scalar mass0 = mass();
|
const scalar mass0 = mass();
|
||||||
|
|
||||||
|
const polyMesh& mesh = this->cloud().pMesh();
|
||||||
|
|
||||||
|
|
||||||
// Initialise transfer terms
|
// Initialise transfer terms
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -104,6 +106,9 @@ void Foam::KinematicParcel<ParcelType>::calc
|
|||||||
vector U1 =
|
vector U1 =
|
||||||
calcVelocity(td, dt, cellI, d0, U0, rho0, mass0, Fx, Cud, dUTrans);
|
calcVelocity(td, dt, cellI, d0, U0, rho0, mass0, Fx, Cud, dUTrans);
|
||||||
|
|
||||||
|
// Constrain the new velocity for reduced -D cases
|
||||||
|
meshTools::constrainDirection(mesh, mesh.solutionD(), U1);
|
||||||
|
|
||||||
|
|
||||||
// Accumulate carrier phase source terms
|
// Accumulate carrier phase source terms
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|||||||
Reference in New Issue
Block a user