Showing results for 
Search instead for 
Do you mean 
Reply
Solved! Go to solution

amesim formulas

 Hi everyone,

 

how can I display in AMESim (or ameset) the formulas for calculating of the various blocks?

for example, for the element in the figure, where I can see the script of those formulas?

4 REPLIES

Re: amesim formulas

Hi Barile91,

 

First you need to make sure that your installation of Amesim does contain the submodel c codes.

For example I think this is not the case with student edition.

A quick way to check is to navigate to Amesim installation folder and find the folder libmec/submodels.

If you see c codes there you're good, there will be a LML034.c which show you the actual code (which is what's in the Help file).

 

If you have these codes, you can also start Ameset and open the submodel you're interested in, save it as a new submodel and edit its code.

 

I hope this helps.

Re: amesim formulas

Thank you Emmanuel for your reply,
I can't see them in that folder, but i can open in ameset the specific submodel and view the code. The problem is that i can't find formulas but only variables definitions. For the mechanical lever i see in ameset (notte in the c code) that the expression of the output velocity is displayed in port 1, but where is the alpha formula?This is only an example. I'm also interested in more complex submodels such as tyre submodel in powertrain library. I would know the expression of variables such as the mobility number bn.
Thanks
Solution
Solution
Accepted by topic author Barile91
‎02-17-2017 07:56 AM

Re: amesim formulas

I'm afraid if the c code is not available in your installation Ameset will only generate an 'empty shell' code without the actual equations.

That generated code will actually reuse the existing structure/specification of the submodel you've opened (which is defined in *.spe file - always available in that submodel folder). For the lever case, the output velocities formulations are actually defined in those *.spe files, that's why you see them. But alpha is computed explicitely in the code...

 

Even if the code is not available, the help file usually gives the details of the calculation or references.

The case you mention (mobility bn) is special, we only give references as there are some ip restrictions here. Meaning that even with the c code you wouldn't see the actual calculations which are done by a library function which code is not open...

 

Re: amesim formulas

A comment about availability of c codes. These should always be available as long as you're not using an evaluation or training license. Get in touch with your local contact or raise a request in GTAC to sort this out.