|
[Sponsors] |
December 14, 2010, 12:20 |
CFX Expressions
|
#1 |
Member
Pavelistyj
Join Date: Jul 2010
Posts: 42
Rep Power: 15 |
Hello All,
I need to simulate a pressure impulse at inlet boundary condition: for t<=0.01 I need: Pin=Pmax*(sin(w*t)^2) and for t>0.1 Pin=0 where Pmax and w are known. Please help to write it using CFX expressions. Thank you, P.K. |
|
December 14, 2010, 16:25 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143 |
In CFX V13 you can use if statements in CEL so this is easy. In previous versions you need to use the step function - still easy, but a bit weird. For instance Pin=step(t-0.01[s])*Pmax*(sin(w*t)^2) should do it.
I note your function is undefined for 0.01<t<0.1. I assume that is a typo. |
|
December 15, 2010, 01:23 |
|
#3 |
Member
Pavelistyj
Join Date: Jul 2010
Posts: 42
Rep Power: 15 |
Yes, this is a typo
Thank you very much! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ICEM] Proper way to name boundaries on 2D model for use in CFX? | RossFS | ANSYS Meshing & Geometry | 4 | November 10, 2011 02:38 |
Pros and Cons for CFX, CFdesign, COMSOL | Val | Main CFD Forum | 3 | June 10, 2011 02:20 |
CFX Expressions | lex | CFX | 6 | January 7, 2010 08:12 |
PhD using CFX | Rui | CFX | 9 | May 28, 2007 05:59 |
CFX 4.4 installation problem | Pandu Sattvika | CFX | 1 | December 1, 2001 04:07 |