← Back to team overview

yade-users team mailing list archive

Re: [Question #295301]: calculate external work in Uniaxial Strainer

 

Question #295301 on Yade changed:
https://answers.launchpad.net/yade/+question/295301

Yor1 posted a new comment:
I change the manner that i calculate the displacement

if(asymmetry==0){ 
	  dAX*=.5;
	  for(size_t i=0; i<max(posIds.size(),negIds.size()); i++){
		  displacement+=2*dAX;   
	  }
	}

I'm inspiring from the calculation of the displacement for "asymmetry!=1" and  "assymetry!=-1".
For example, the displacement in the case of  "asymmetry!=1" is calculated like this:

if(asymmetry!=1){
		for(size_t i=0; i<negIds.size(); i++){
			negCoords[i]-=dAX;
			axisVel(negIds[i]) = -dAX/scene->dt; // update current position
			
		}

        }

Jabrane.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.