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

step function

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 27, 2005, 23:17
Default step function
  #1
John
Guest
 
Posts: n/a
Hi,all

Here is an application of step fuction:

C=a*step(-x)

So c=0 when x>0; and c=a when x<0.

However, when x=0, I will get c=0.5a

I want to let c=0 when x=0, how can I do that?

Thanks!

John
  Reply With Quote

Old   August 28, 2005, 00:29
Default Re: step function
  #2
Jeff
Guest
 
Posts: n/a
The CFX step(x) function gives:

0 when X < 0 0.5 when X = 0 1.0 when X > 0

step(step(x)-0.6) should give

0 when x < 0 {step(-0.6) = 0} 0 when x=0 {step(-0.1) = 0} 1 when x > 0 {step( 0.4) = 1}

Jeff
  Reply With Quote

Old   August 28, 2005, 01:01
Default Re: step function
  #3
John
Guest
 
Posts: n/a
Great idea, Jeff

Thanks!

John
  Reply With Quote

Old   October 20, 2005, 00:37
Default Re: Ignore, just a test
  #4
Graeme
Guest
 
Posts: n/a
testing [/b] bold
  Reply With Quote

Old   October 20, 2005, 00:39
Default Re: Ignore, just a test
  #5
Graeme
Guest
 
Posts: n/a
testing bold not bold [i] italics?
  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
Help to create a CEL expression for Step function anirudster CFX 22 November 3, 2013 01:07
incompressible flow over step with vorticity_stream function hsaeedi Main CFD Forum 0 June 11, 2010 16:29
wall function UDFs...step gina Fluent UDF and Scheme Programming 7 June 2, 2009 14:04
Can anybody help me to solve the list errors while compiling Openfoam 15 on Opensuse 103 32bit coompressor OpenFOAM Installation 0 November 12, 2008 20:53
time step size in Custom Field Function Tong FLUENT 0 May 2, 2008 15:51


All times are GMT -4. The time now is 20:59.