CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Periodicity of a function (loop) CFX

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 26, 2009, 09:01
Default Periodicity of a function (loop) CFX
  #1
New Member
 
Join Date: Oct 2009
Posts: 13
Rep Power: 16
uorinopuot is on a distinguished road
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
uorinopuot is offline   Reply With Quote

Old   October 26, 2009, 17:06
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
Use the mod function. It does modulo arithmetic so "mod(time,1)" would return 0.57s if the time was 4.57s.
ghorrocks is offline   Reply With Quote

Old   October 27, 2009, 19:15
Default
  #3
New Member
 
Join Date: Oct 2009
Posts: 13
Rep Power: 16
uorinopuot is on a distinguished road
Works! Cheers again!
uorinopuot is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
LiencubiclowRemodel nzy102 OpenFOAM Bugs 14 January 10, 2012 08:53
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
Installation 1.5 as a user of server (New bird) chiven OpenFOAM Installation 15 April 26, 2009 22:33
Could you please help me about the VTKFoam liugx212 OpenFOAM Pre-Processing 5 February 13, 2008 11:31
CFX function in Fluent Andrew FLUENT 4 December 11, 2006 08:44


All times are GMT -4. The time now is 16:39.