CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   STAR-CCM+ (https://www.cfd-online.com/Forums/star-ccm/)
-   -   Monitor Derivatives (https://www.cfd-online.com/Forums/star-ccm/167733-monitor-derivatives.html)

sarahtuvia March 7, 2016 14:28

Monitor Derivatives
 
Hi Everyone
Is it possible to calculate in STAR-CCM the derivatives of a monitor and display them on a plot ?

Thanks

Schwob77 March 7, 2016 17:01

What kind of monitor are you talking about? Field Monitor or Report monitor? Spatial or temporal derivative?

sarahtuvia March 8, 2016 02:25

Im talking about report monitor. Id like to calculate the derivatives of the Pressure.Vs.Time during the simulation

Schwob77 March 8, 2016 14:05

In this case you can do it like that:
Your Report for the Monitor has a Field Function like "ReportPressure". Use this FF for a Field Sum Monitor with a sliding window of 2 and a trigger of "TimeStep". In that way you sum the value of your Report of the current timestep and the previous one. This value exists in each cell but obviously has the same value everywhere. The adjacent Field Function has the name "SumOfReportPressure". To get the derivative you have to create another FF "DerivativePressure" with the Syntax "(2*$ReportPressure-$SumOfReportPressure)/$TimeStep".
This will deliver the derivative between the current and the previous timestep of your pressure Report. Again, it is presented in each and every cell with the same value. To get it into a plot you can simply create a Maximum Report with a derived Monitor that can be added to a plot.

Hope this helps.

sarahtuvia March 8, 2016 14:17

Thank you. Ill try it

sarahtuvia March 8, 2016 16:19

Its working ! Thanks

karahan March 12, 2020 08:44

That is a very good answer. I wish, there was an embedded field function or operator, which would enable you to calculate the rate of change of a variable. Nice trick!

cwl March 13, 2020 08:45

Said to be implemented in new version.

Schwob77 March 23, 2020 00:40

Is implemented in the latest version as "Field History" Monitor. You can give the tool a sliding window of 2 to have the latest 2 timestep values of a certain field function. They can then be used to calculate the time derivative.

Schwob77 March 23, 2020 00:50

Is implemented in the latest version as "Field History" Monitor. You can give the tool a sliding window of 2 to have the latest 2 timestep values of a certain field function. They can then be used to calculate the time derivative.


All times are GMT -4. The time now is 11:08.