cancel
Showing results for 
Search instead for 
Did you mean: 

Variable Integration

Valued Contributor
Valued Contributor

Hello,

Is it possible to integrate a variable between 2 times on the fly with the post-processing tool,

without modifying the circuit by inserting some components from the signal/control library.

 

For instance I have a flowrate chart Q=f(t), and I want to know the volume of flow  between t1 & t2

--> V= integral(Q) between t1 and t2

 

Thanks in advance

mAx

5 REPLIES

Re: Variable Integration

Siemens Genius Siemens Genius
Siemens Genius

Hi @mAx

 

Yes you can use the "integ" post-processing function. You can combine it with the "restrict" function if you want to limit this integration between t1 and t2.

 

Kind regards

Re: Variable Integration

Valued Contributor
Valued Contributor

Got it!

Thank you

Re: Variable Integration

Valued Contributor
Valued Contributor

One question more.

What about the units?

If I integrate the flow rate in L/min, does AMESim modify the units since time is in s, or do I have to convert the flow rate in L/s?

 

Re: Variable Integration

Siemens Phenom Siemens Phenom
Siemens Phenom

Indeed, post-processing won't know if the unit is L/min or Pa or L or whatever, so you need to convert to the unit of interest.
The easiest may be to change the unit from L/min to L/s in the original submodel and then drag this into post-processing view to get the conversion factor.

amesim_unit_post_processing.jpg

Re: Variable Integration

Valued Contributor
Valued Contributor

Thank you @Emmanuel_D,

I only divide my variable by 60 in the post-processing tool.

it makes also the job