Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reintroduce temperature in computeMFFarfield
Browse files Browse the repository at this point in the history
RaulPPelaez committed Feb 25, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent dd270a5 commit a23fcd5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/Integrator/BDHI/BDHI_PSE.cuh
Original file line number Diff line number Diff line change
@@ -73,9 +73,9 @@ namespace uammd{
PSE(std::make_shared<ParticleGroup>(pd, "All"), par){}

PSE(shared_ptr<ParticleGroup> pg, Parameters par);

~PSE(){}

void setup_step(cudaStream_t st = 0){}
/*Compute M·F = Mr·F + Mw·F, also includes the far field stochastic displacements*/
void computeMF(real3* MF, cudaStream_t st){
@@ -95,13 +95,13 @@ namespace uammd{
}

void computeMFFarField(real3* MF, cudaStream_t st){
System::log<System::DEBUG1>("[BDHI::PSE] Computing MFFarField....");
System::log<System::DEBUG1>("[BDHI::PSE] Computing MFFarField....");
auto pd = pg->getParticleData();
int numberParticles = pg->getNumberParticles();
auto pos = pd->getPos(access::gpu, access::read);
auto force = pd->getForce(access::gpu, access::read);
auto force = pd->getForce(access::gpu, access::read);
farField->computeHydrodynamicDisplacements(pos.begin(), force.begin(), MF, numberParticles,
0.0, 0.0, st);
temperature, 1.0/sqrt(dt), st);
}

void computeBdW(real3* BdW, cudaStream_t st){
@@ -134,15 +134,15 @@ namespace uammd{
nearField->setShearStrain(newStrain);
farField->setShearStrain(newStrain);
}

real getHydrodynamicRadius(){
return hydrodynamicRadius;
}

real getSelfMobility(){
return this->M0;
return this->M0;
}

private:
shared_ptr<ParticleGroup> pg;
real hydrodynamicRadius, M0;

0 comments on commit a23fcd5

Please sign in to comment.