Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

A faster way to model using scripts?

Status
Not open for further replies.

AustinEich

Mechanical
Mar 28, 2020
5
Hello,

I've posted on here a few times, I've been working to simulate the dynamics between close proximity magnets. I have successfully created a runtime function for force and been able to create a number of models, albeit slowly, that properly simulate magnet interactions and have been verified by experiments.

Now the problem I am facing is that it is that the modeling process has become too tedious. Surely there is a way to write a script to create these parts and their interactive forces? say I have just 12 magnets, that becomes 12! forces I have to create by hand, their markers and force functions. I know the software uses python, is there a way to build models using a .py or something? I just need to automate the process so that I can create magnets and the forces generate themselves.

Any help or suggestions are appreciated, I am very new to this program so I apologize if my question is very basic and common

Thanks!
 
Replies continue below

Recommended for you

Sure. I actually use an excel file to generate simple adm files. I'm guessing in View you don't have templates, if you do then that's what you should be using. Solver language is the core of ADAMS, an adm file is the thing that gets run, and consists merely of a long stream of Solver language.

Parametrising your model is the hard part.

A quick look suggests coomand scripts or macros may be an approach - from the help
Code:
Among the tasks you can perform with macros are: 

Automate repetitive procedures.
 
Build general-purpose extensions to Adams View.

Automatically create an entire model. 
 
Quickly build many variations of a mechanism.




Cheers

Greg Locock


New here? Try reading these, they might help FAQ731-376
 
Hmm, I'll have to look into it more.

Thanks again Greg, you're saving my life here
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor