|
[Sponsors] |
October 26, 2009, 10:01 |
Periodicity of a function (loop) CFX
|
#1 |
New Member
Join Date: Oct 2009
Posts: 13
Rep Power: 17 |
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 |
|
October 26, 2009, 18:06 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Use the mod function. It does modulo arithmetic so "mod(time,1)" would return 0.57s if the time was 4.57s.
|
|
October 27, 2009, 20:15 |
|
#3 |
New Member
Join Date: Oct 2009
Posts: 13
Rep Power: 17 |
Works! Cheers again!
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
LiencubiclowRemodel | nzy102 | OpenFOAM Bugs | 14 | January 10, 2012 09:53 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
Installation 1.5 as a user of server (New bird) | chiven | OpenFOAM Installation | 15 | April 26, 2009 23:33 |
Could you please help me about the VTKFoam | liugx212 | OpenFOAM Pre-Processing | 5 | February 13, 2008 12:31 |
CFX function in Fluent | Andrew | FLUENT | 4 | December 11, 2006 09:44 |