|
[Sponsors] |
April 19, 2012, 03:26 |
build a expression in CFX
|
#1 |
New Member
Join Date: Apr 2012
Posts: 7
Rep Power: 14 |
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? |
|
April 19, 2012, 09:59 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
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. |
|
April 21, 2012, 07:49 |
|
#3 | |
New Member
Join Date: Apr 2012
Posts: 7
Rep Power: 14 |
Quote:
Can you explain me how can I do this by interpolation function? |
||
April 21, 2012, 08:14 |
|
#4 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Look in the documentation or tutorials for tips on using interpolation functions.
|
|
|
|
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 06: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 |