turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Navigation
- Simcenter
- Forums
- Blogs
- Knowledge Bases

- Siemens PLM Community
- Simcenter
- 1D Simulation Knowledge Base
- How to integrate a variable between 2 instants on ...

- Article History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content

Community Manager

04-13-2017
11:35 AM

**Question:**

How to integrate a variable between 2 instants on the fly with the post-processing tool?

**Answer:**

For instance if we have a flowrate chart Q=f(t) and we want to know the corresponding volume between instants t1 and t2.

We can use the "integ" post-processing function and can combine it with the "restrict" function to limit this integration between t1 and t2.

The expression would then be: integ(restrict(*flowrate_variable*,*t1*,*t2*))

In order to get the actual flow value at t2 you would use: valueat(integ(restrict(*flowrate_variable*,*t1*,*t2*)),*t2*)

Then, it is important to notice that variables referenced in post processing expressions always have a default unit,** ****so we may need to convert to the unit of interest. In our example, the flowrate is in L/min but the integration is done over a time in seconds.**

An easy way is to change the unit of the variable from L/min to L/s and then drag it into the post-processing view to get the correct conversion factor.

**Did you know that post-processing allows many more calculations?**

For example you could also get the maximum of a signal during a specific time range, get the time at which the maximum is reached, filter signals and compute derivatives, averages… Parameters of the model can also be referenced. Here's an extract of the available functions:

Labels:

- Article History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Email to a Friend
- Printer Friendly Page
- Report Inappropriate Content

Follow Siemens PLM Software

© 2017 Siemens Product Lifecycle Management Software Inc