From 96508745fba1623d6dccb36f9b4e3ce95d72116d Mon Sep 17 00:00:00 2001 From: Daniel Queteschiner Date: Tue, 9 Apr 2019 15:49:36 +0200 Subject: [PATCH] move methods from dataExchangeModel to cfdemCloud methods operate directly on data owned by cfdemCloud, thus cfdemCloud should have the control over it --- .../cfdemParticle/cfdemCloud/cfdemCloud.H | 4 ++++ .../cfdemParticle/cfdemCloud/cfdemCloudI.H | 19 +++++++++++++++++ .../dataExchangeModel/dataExchangeModel.H | 21 ------------------- .../twoWayMany2Many/twoWayMany2Many.C | 4 ++-- .../twoWayOne2One/twoWayOne2One.C | 4 ++-- 5 files changed, 27 insertions(+), 25 deletions(-) diff --git a/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloud.H b/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloud.H index 5d96f0ad..4ec5eb87 100644 --- a/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloud.H +++ b/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloud.H @@ -403,6 +403,10 @@ public: // Write // write cfdemCloud internal data + inline void setPositions(label n,double* pos); + inline void setCellIDs(label n,int* ID); + inline void setCellIDs(labelList const& IDs); + virtual bool evolve(volScalarField&,volVectorField&,volVectorField&); virtual void postFlow() {} diff --git a/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloudI.H b/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloudI.H index 504c1682..b810e094 100644 --- a/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloudI.H +++ b/src/lagrangian/cfdemParticle/cfdemCloud/cfdemCloudI.H @@ -50,6 +50,25 @@ inline void cfdemCloud::setCG(double cg) Info << "cg is set to: " << cg_ << endl; } +inline void cfdemCloud::setPositions(label n,double* pos) +{ + for (int i=0; i