Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

ADAMS: terminate current step when passing through the same value as at t = 0

Status
Not open for further replies.

jdox09

Student
Mar 3, 2023
4
Hi, an MSC.ADAMS beginner here.

I'm doing a design of experiments for various variables while studying a vertical DY deviation of a marker using a function measure:
DY(MARKER_RUN, MARKER_INIT)
The coupler curves I am working with are convex curves and I want them to start and end at circa the same y-coordinate if possible within certain time range:
image_2023-03-03_104822995_db3r8y.png

How do I set a sensor to terminate current step when the measure passes the initial value (meaning the same value of DY(MARKER_RUN, MARKER_INIT) as at t = 0.0 )? I'm opened to different approaches as well.

Thanks in advance.
 
Replies continue below

Recommended for you

Sorry I don't know how to it in View, but in your solver code (adm) you need a statement loosely based on the following

THE SENSOR STATEMENT HALTS THE SIMULATION IF THE
VEHICLE LONGITUDINAL VELOCITY DROPS BELOW 5.000000 MPH.

SENSOR/1000,VALUE= -2235.200000, GE,ERROR=0.001,HALT
, FUNC=IF(MODE-4:-1.0E+10,VX(5100,0100,5100),-1.0E+10)

A simpler option might be to add a test to your MOTION statement that is driving the rig - if t>1 and y>=y0 then motion =motion*0 sort of logic. Getting y0 might be an issue. This will freeze the mechanism and the sim continues until the end of the TIME statement.






Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor