correction for fluid force transfer to DEMsystem

This commit is contained in:
hamidrezanorouzi
2023-02-12 23:39:21 +03:30
parent 427637d635
commit 940318c239
4 changed files with 23 additions and 3 deletions

View File

@ -159,13 +159,14 @@ pFlow::span<pFlow::realx3> pFlow::sphereDEMSystem::parPosition()
pFlow::span<pFlow::realx3> pFlow::sphereDEMSystem::parFluidForce()
{
auto& hVec = particles_->fluidTorqueHostAll();
auto& hVec = particles_->fluidForceHostAll();
return span<realx3>(hVec.data(), hVec.size());
}
pFlow::span<pFlow::realx3> pFlow::sphereDEMSystem::parFluidTorque()
{
auto& hVec = particles_->fluidForceHostAll();
auto& hVec = particles_->fluidTorqueHostAll();
return span<realx3>(hVec.data(), hVec.size());
}