# How can I find the peak result of a combination of two harmonic analyses?

 The most rigorous way to obtain the peak value of the combined resultis to check every possible phase angle combination between the two excitations.That would require a lot of expansion passes, but they tend to run quickly.The input below shows how you could do this. To be accurate you would need tocheck at closer intervals than the 30 degrees used in this input file. The numberof solutions is (360/interval)^2, which could be prohibitive. You could assume thatthe maximum combined result is the sum of the maximums in which case you onlyneed to solve 2*(360/interval) times./prep7et,1,42mp,ex,1,1e7mp,nuxy,1,.3mp,dens,1,.00025rect,,20,,1esize,.5amesh,1nsel,s,loc,x,0d,all,allnsel,allfini/soluantype,modalmodop,lanb,10mxpand,10solvefini/soluantyp,harmhropt,msupdmprat,.02harf,,90nsub,1nsel,s,loc,x,20f,all,fx,100nsel,allsolveharf,,100fdele,all,allnsel,s,loc,x,20f,all,fy,20nsel,allsolvefini/soluexpass,onnumexp,allsolvefini/post1set,list*do,iii,30,360,30*do,jjj,30,360,30/goprhrcplx,1,1,iiilcwrite,99,ls1,lc99hrcplx,1,2,jjjlcfile,99,ls1,lc99lcoper,add,99! Retrieve max displacementnsort,u,sum*get,U_max,sort,,max*get,Node_max,sort,,imax*enddo*enddo