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

Access to arrays of variables with CCL or perl in command editor

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 17, 2011, 08:17
Default Access to arrays of variables with CCL or perl in command editor
  #1
Senior Member
 
omid
Join Date: Apr 2011
Posts: 105
Rep Power: 15
omidiut is on a distinguished road
Hi all
I'm trying to simulate flow over airfoil. this airfoil has a moving surface and the relation that specify mesh motion of this surface based on pressure distribution on surface. in this relation i need to access the arrays of pressure in this surface, such as pressure on a line on surface of airfoil. Could you please let me know how to access to the pressure on each node? can i use CCL with command editor CFX-pre ?


Thanks
omidiut is offline   Reply With Quote

Old   October 17, 2011, 18:27
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You do not need access to the pressure arrays to do this. You can do this using CEL expressions and lineAve()@location, areaAve()@location and other functions. I suspect you probably want force_x/y/z()@location anyway, not pressure integrals.
ghorrocks is offline   Reply With Quote

Old   October 18, 2011, 06:13
Default
  #3
Senior Member
 
omid
Join Date: Apr 2011
Posts: 105
Rep Power: 15
omidiut is on a distinguished road
Thanks for reply
output of Locator base function such as lineAave()@Location, areaAve()@location is one number. in my problem each node have a different displacement and for specify displacement of each node i need pressure on each node. Could you please let me know how i can do that?

i use an expression like this: LogicalExp= if(x>0[m]&&x<10[m]&&z=1[m],Pressure,0)

my purpose from this expression is the pressure of specified location( 0<x<10, z=1) store in it ( Logical expression).
i tested it, but i think pressure of any node of location that i use in my relation be stored. (not in range 0<x<10 , z=1) !! Do you have any idea?

best regards
omidiut 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
udf to access variables from a different case yashmash Fluent UDF and Scheme Programming 6 January 25, 2012 10:10
Access to arrays of Pressure matrix in CFX omidiut CFX 5 October 14, 2011 13:05
How to access surrounding variables? chemycc CFX 0 April 30, 2009 02:42
Time-steps via Perl in CCL Rui CFX 5 March 29, 2004 01:47
access to variables at interface of porous media? Mazyar FLUENT 0 October 10, 2003 15:59


All times are GMT -4. The time now is 20:52.