|
[Sponsors] |
March 7, 2016, 15:28 |
Monitor Derivatives
|
#1 |
Member
tuvia milshtein
Join Date: Jun 2014
Location: Israel
Posts: 42
Rep Power: 11 |
Hi Everyone
Is it possible to calculate in STAR-CCM the derivatives of a monitor and display them on a plot ? Thanks |
|
March 7, 2016, 18:01 |
|
#2 |
Member
Join Date: Nov 2015
Posts: 38
Rep Power: 10 |
What kind of monitor are you talking about? Field Monitor or Report monitor? Spatial or temporal derivative?
|
|
March 8, 2016, 03:25 |
|
#3 |
Member
tuvia milshtein
Join Date: Jun 2014
Location: Israel
Posts: 42
Rep Power: 11 |
Im talking about report monitor. Id like to calculate the derivatives of the Pressure.Vs.Time during the simulation
|
|
March 8, 2016, 15:05 |
|
#4 |
Member
Join Date: Nov 2015
Posts: 38
Rep Power: 10 |
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. |
|
March 8, 2016, 15:17 |
|
#5 |
Member
tuvia milshtein
Join Date: Jun 2014
Location: Israel
Posts: 42
Rep Power: 11 |
Thank you. Ill try it
|
|
March 8, 2016, 17:19 |
|
#6 |
Member
tuvia milshtein
Join Date: Jun 2014
Location: Israel
Posts: 42
Rep Power: 11 |
Its working ! Thanks
|
|
March 12, 2020, 09:44 |
|
#7 |
New Member
Join Date: Jun 2016
Posts: 17
Rep Power: 9 |
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!
|
|
March 13, 2020, 09:45 |
|
#8 |
Senior Member
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 433
Rep Power: 17 |
Said to be implemented in new version.
|
|
March 23, 2020, 01:40 |
|
#9 |
Member
Join Date: Nov 2015
Posts: 38
Rep Power: 10 |
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.
|
|
March 23, 2020, 01:50 |
|
#10 |
Member
Join Date: Nov 2015
Posts: 38
Rep Power: 10 |
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.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|