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

build a expression in CFX

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

Like Tree1Likes
  • 1 Post By ghorrocks

Reply
 
LinkBack Thread Tools Display Modes
Old   April 19, 2012, 02:26
Default build a expression in CFX
  #1
New Member
 
Join Date: Apr 2012
Posts: 7
Rep Power: 5
payam.t is on a distinguished road
Hi to everyone
I want to build a expression in CFX that sets static pressure equal to 5MPa, where -1<x<1,-1<y<1 (x , y are location of domain in x,y direction in meter).
Any ideas welcome.
After building this expression, how I can use it in numerical solution as an initial value?
payam.t is offline   Reply With Quote

Old   April 19, 2012, 08:59
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,941
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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.
ghorrocks is offline   Reply With Quote

Old   April 21, 2012, 06:49
Default
  #3
New Member
 
Join Date: Apr 2012
Posts: 7
Rep Power: 5
payam.t is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
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?
payam.t is offline   Reply With Quote

Old   April 21, 2012, 07:14
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,941
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
Look in the documentation or tutorials for tips on using interpolation functions.
ghorrocks 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
How to install CGNS under windows xp? lzgwhy Main CFD Forum 1 January 11, 2011 19:44
CGNS lib and Fortran compiler manaliac Main CFD Forum 2 November 29, 2010 07:25
PhD using CFX Rui CFX 9 May 28, 2007 05:59
Moving&Resizing an opening in CFX Build Basics CFX 1 February 17, 2003 17:31
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 05:07


All times are GMT -4. The time now is 00:01.