Skip to content

Commit

Permalink
changed things on input
Browse files Browse the repository at this point in the history
  • Loading branch information
luchete80 committed Jul 25, 2023
1 parent a6b805a commit 71196cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Source/Contact_Wang.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -300,8 +300,9 @@ inline void Domain::CalcContactForcesWang(){

}//friction

omp_set_lock(&dom_lock);
omp_set_lock(&dom_lock);
contact_force_sum += norm(Particles[P1] ->contforce);
//contact_force_sum_v += Particles[P1] ->contforce;
contact_reaction_sum += dot (Particles[P1] -> a,Particles[P2]->normal)* Particles[P1]->Mass;
//ext_forces_work_step += dot (Particles[P1] -> contforce,//Particles[P2]->v);
//ext_forces_work_step += /*dot(*/Particles[P1] -> contforce/*,1./norm(Particles[P2]->v)*Particles[P2]->v)*/ * Particles[P2]->v; //Assuming v2 and forces are parallel
Expand All @@ -312,6 +313,8 @@ inline void Domain::CalcContactForcesWang(){
}// if inside
} //If distance is less than h
}//Contact Pairs

//contact_force_sum = norm (contact_force_sum_v);
}//Nproc
//cout << "END CONTACT----------------------"<<endl;
max_contact_force = sqrt (max_contact_force);
Expand Down
2 changes: 1 addition & 1 deletion changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
- Randles and Libersky variable time step integrator working
### Input File
- Nb frequency update option on input
-
- Changed Sjohnson Cook constant order
- Added Cylindrical grid option in input
### Deprecated
- Original Simultaneous Solver (All vars calculated at same time)
Expand Down

0 comments on commit 71196cd

Please sign in to comment.