mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
Minor changes to the momentum source and particle velocity
This commit is contained in:
@ -5,7 +5,7 @@ fvVectorMatrix UEqn
|
||||
+ turbulence->divDevReff(U)
|
||||
==
|
||||
fvOptions(U)
|
||||
+ (lambda*(1-voidfractionNext)/U.mesh().time().deltaT())*(Us - fvm::Sp(1,U))
|
||||
+ (lambda*(1-voidfractionNext)/U.mesh().time().deltaT())*(fvc::Sp(1,Us)-fvm::Sp(1,U))
|
||||
);
|
||||
|
||||
UEqn.relax();
|
||||
|
||||
@ -177,7 +177,7 @@ void cfdemCloudIBmodified::calcForcingTerm(volVectorField& Us)
|
||||
// calc particle velocity
|
||||
//for(int i=0;i<3;i++) rVec[i]=Us.mesh().C()[cell][i]-position(index)[i];
|
||||
for(int i=0;i<3;i++) uP[i] = velocities()[index][i];
|
||||
Us[cell] = uP;//(1-voidfractions_[index][subCell])*uP;
|
||||
Us[cell] = (1-voidfractions_[index][subCell])*uP;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user