Skip to content

Commit

Permalink
working on kickdrift #94, fixed update pos, still pendant stresses an…
Browse files Browse the repository at this point in the history
…d strain
  • Loading branch information
luchete80 committed Jun 13, 2022
1 parent 60f047a commit 7431f1a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/cuda/Mechanical.cu
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ __device__ inline void Domain_d::UpdatePos(double dt){

if ( i < particle_count ) {
x[i] += dt*v[i];
u[i] += dt*v[i];
}
}

Expand Down
6 changes: 5 additions & 1 deletion src/main_mech.cu
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,11 @@ int main(int argc, char **argv) //try
dom_d->auto_ts = true;
dom_d->Alpha = 1.0;
//dom_d->MechSolve(0.0101,1.0e-4);
dom_d->MechKickDriftSolve(0.0101,0.0101);

//New solver
dom_d->auto_ts = false;
timestep = (0.4*h/(Cs));
dom_d->MechKickDriftSolve(0.0101,1.0e-4);

//First example
// dom_d->deltat = 1.0e-7;
Expand Down

0 comments on commit 7431f1a

Please sign in to comment.