CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   Periodicity of a function (loop) CFX (http://www.cfd-online.com/Forums/cfx/69525-periodicity-function-loop-cfx.html)

uorinopuot October 26, 2009 10:01

Periodicity of a function (loop) CFX
 
Hello,

I have created a function for times 0 to 1 second. I want to make it periodical using the expressions but there is no periodicity choice. I have lots of values for my interpolated function so repeating all of them to a further range is not an option unfortunately. I was thinking about looping using expressions but i do not know how to do it.
Any ideas?
Thanks

ghorrocks October 26, 2009 18:06

Use the mod function. It does modulo arithmetic so "mod(time,1)" would return 0.57s if the time was 4.57s.

uorinopuot October 27, 2009 20:15

Works! Cheers again!


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