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

step function

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 28, 2005, 00: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, 01: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, 02:01
Default Re: step function
  #3
John
Guest
 
Posts: n/a
Great idea, Jeff

Thanks!

John
  Reply With Quote

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

Old   October 20, 2005, 01:39
Default Re: Ignore, just a test
  #5
Graeme
Guest
 
Posts: n/a
testing bold not bold [i] italics?
  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
Help to create a CEL expression for Step function anirudster CFX 25 January 11, 2018 00:41
incompressible flow over step with vorticity_stream function hsaeedi Main CFD Forum 0 June 11, 2010 17:29
wall function UDFs...step gina Fluent UDF and Scheme Programming 7 June 2, 2009 15: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 16:51


All times are GMT -4. The time now is 18:53.