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

Cfx

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 20, 2010, 00:43
Default Cfx
  #1
Member
 
Pavelistyj
Join Date: Jul 2010
Posts: 42
Rep Power: 15
Pavelko is on a distinguished road
Hello All,

I want to use the following expression in inlet boundary condition:

Pmax*((sin(omega*t))^2)*(step(t)-step(t-0.02))+Pmax*step(t-0.02)

where omega,Pmax are defined.
But I get the following error:

Bad expression value 'Pin' detected in parameter 'Relative Pressure' in object '/FLOW:Flow Analysis 1/DOMAINefault Domain/BOUNDARY:Inlet/BOUNDARY CONDITIONS/MASS AND MOMENTUM'.
CEL error:
The dimensions of the argument to function 'step' are inconsistent with expected dimensions.
Argument dimensions resolve to 's'; expected '<dimensionless>'.


Please help.
Pavelko is offline   Reply With Quote

Old   December 20, 2010, 02:20
Default
  #2
Senior Member
 
Lance
Join Date: Mar 2009
Posts: 669
Rep Power: 22
Lance is on a distinguished road
Your step functions need to be dimensionless, just as the error says.

Change step(t-0.02) to step((t-0.02[s])/1[s]) for example.
Lance is offline   Reply With Quote

Old   December 20, 2010, 02:41
Default
  #3
New Member
 
Fabio
Join Date: Dec 2010
Posts: 2
Rep Power: 0
cougarCFD is on a distinguished road
Yes, Lance is right! Wherever you have something that has a dimension in your expression, you need to divide it for its dimension unit. So, wherever you have time, you need to divide by 1 [s].
cougarCFD is offline   Reply With Quote

Old   December 22, 2010, 05:26
Default
  #4
Member
 
Pavelistyj
Join Date: Jul 2010
Posts: 42
Rep Power: 15
Pavelko is on a distinguished road
Ok, it works!

Thank you very much!
P.K.
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 pressure in Simulations problem nasdak CFX 1 April 14, 2010 13:22
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 15:27.