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

CFX Expressions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 14, 2010, 12:20
Default CFX Expressions
  #1
Member
 
Pavelistyj
Join Date: Jul 2010
Posts: 42
Rep Power: 15
Pavelko is on a distinguished road
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.
Pavelko is offline   Reply With Quote

Old   December 14, 2010, 16:25
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   December 15, 2010, 01:23
Default
  #3
Member
 
Pavelistyj
Join Date: Jul 2010
Posts: 42
Rep Power: 15
Pavelko is on a distinguished road
Yes, this is a typo
Thank you very much!
Pavelko is offline   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
[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


All times are GMT -4. The time now is 02:38.