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

Periodicity of a function (loop) CFX

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   October 26, 2009, 10:01
Default Periodicity of a function (loop) CFX
  #1
New Member
 
Join Date: Oct 2009
Posts: 13
Rep Power: 7
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, 18:06
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,803
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 20:15
Default
  #3
New Member
 
Join Date: Oct 2009
Posts: 13
Rep Power: 7
uorinopuot is on a distinguished road
Works! Cheers again!
uorinopuot is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


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 22: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


All times are GMT -4. The time now is 17:23.