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

CFX Expressions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 14, 2010, 13:20
Default CFX Expressions
  #1
Member
 
Pavelistyj
Join Date: Jul 2010
Posts: 42
Rep Power: 7
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, 17:25
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 10,937
Rep Power: 85
ghorrocks has a spectacular aura aboutghorrocks has a spectacular aura aboutghorrocks has a spectacular aura about
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, 02:23
Default
  #3
Member
 
Pavelistyj
Join Date: Jul 2010
Posts: 42
Rep Power: 7
Pavelko is on a distinguished road
Yes, this is a typo
Thank you very much!
Pavelko 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
[ICEM] Proper way to name boundaries on 2D model for use in CFX? RossFS ANSYS Meshing & Geometry 4 November 10, 2011 03: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 09:12
PhD using CFX Rui CFX 9 May 28, 2007 05:59
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 05:07


All times are GMT -4. The time now is 18:07.