# build a expression in CFX

 User Name Remember Me Password
 Register Blogs Members List Search Today's Posts Mark Forums Read

 LinkBack Thread Tools Display Modes
 April 19, 2012, 02:26 build a expression in CFX #1 New Member   Join Date: Apr 2012 Posts: 7 Rep Power: 7 Hi to everyone I want to build a expression in CFX that sets static pressure equal to 5MPa, where -1

 April 19, 2012, 08:59 #2 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 13,808 Rep Power: 107 You could do this using interpolation functions, but I would use an expression for this as it is easy and allows you to parameterise things easily. A function something like this should do it: output = 5 [MPa] * step(1-abs(x)/1[m]) * step(1-abs(y)/1[m]) Simply use this as the definition for an initial condition. payam.t likes this.

April 21, 2012, 06:49
#3
New Member

Join Date: Apr 2012
Posts: 7
Rep Power: 7
Quote:
 Originally Posted by ghorrocks You could do this using interpolation functions, but I would use an expression for this as it is easy and allows you to parameterise things easily. A function something like this should do it: output = 5 [MPa] * step(1-abs(x)/1[m]) * step(1-abs(y)/1[m]) Simply use this as the definition for an initial condition.
I am sorry to ask again...
Can you explain me how can I do this by interpolation function?

 April 21, 2012, 07:14 #4 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 13,808 Rep Power: 107 Look in the documentation or tutorials for tips on using interpolation functions.

 Thread Tools Display Modes Linear Mode

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

 Similar Threads Thread Thread Starter Forum Replies Last Post lzgwhy Main CFD Forum 1 January 11, 2011 19:44 manaliac Main CFD Forum 2 November 29, 2010 07:25 Rui CFX 9 May 28, 2007 05:59 Basics CFX 1 February 17, 2003 17:31 Pandu Sattvika CFX 1 December 1, 2001 05:07

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

 Contact Us - CFD Online - Privacy Statement - Top