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

Spatial Derivative Using CEL Functions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   July 10, 2011, 08:07
Default Spatial Derivative Using CEL Functions
  #1
New Member
 
Josh Yen
Join Date: Jul 2011
Posts: 14
Rep Power: 6
dae4god is on a distinguished road
Hi,

I am trying to find the normal component of the gradient of the vorticity, dw/dn, around the entire surface of an airfoil. Here, w is the vorticity and n is the direction normal to the surface, both at a particular point on the airfoil surface. Is there a way to find this normal vorticity distribution and export the results during a transient analysis? Perhaps using a CEL function?

The vorticity is found from the curl of the velocity, but is there a way to define a CEL function that describes the gradient of the curl of the velocity?
dae4god is offline   Reply With Quote

Old   July 11, 2011, 09:13
Default
  #2
Senior Member
 
Join Date: Apr 2009
Posts: 516
Rep Power: 12
stumpy is on a distinguished road
There already a Vorticity variable available, so no need to calculate this. CEL has a .Gradient operator, so in theory "Vorticity.Gradient X" would work.
stumpy is offline   Reply With Quote

Old   July 12, 2011, 19:08
Default
  #3
New Member
 
Josh Yen
Join Date: Jul 2011
Posts: 14
Rep Power: 6
dae4god is on a distinguished road
Thanks stumpy. I'll give it a try and let you know how it goes!
dae4god is offline   Reply With Quote

Old   July 26, 2011, 03:09
Default
  #4
New Member
 
Josh Yen
Join Date: Jul 2011
Posts: 14
Rep Power: 6
dae4god is on a distinguished road
Hi Stumpy,

Thanks for your suggestion but I couldn't get it to work. When I entered an expression, like "Velocity.Curl.Gradient", or similar into CFX-Pre, it couldn't evaluate the expression in CFX-Post.

Perhaps I could try to clarify my problem. I'm trying to create an expression/variable/function in CFX-Pre which evaluates the normal component of the vorticity gradient on a curved surface (Wall Boundary Condition) and outputs the results to a file (.csv or similar) while it is solving. Do you know if this is possible?

I was trying to find a way to find the normal unit vector to the surface, and then inner dot product it with the vorticity gradient to get the result, but it wasn't as easy as I thought. Any ideas or thoughts or criticisms would be greatly appreciated!
dae4god is offline   Reply With Quote

Old   July 26, 2011, 08:49
Default
  #5
Senior Member
 
Join Date: Apr 2009
Posts: 516
Rep Power: 12
stumpy is on a distinguished road
The double operator ".Curl.Gradient" probably won't work, which is why I suggested Vorticity.Gradient X. Also ".Gradient" won't work since you haven't specified in which direction you want the gradient, X, Y or Z. CFD-Post cannot evaluate gradients as far as I know, so you should write whatever quantity you want to an Additional Variable. Vorticity is also not written to the res file by default, you'll need to ask for that in the Results sections in CFX-Pre.
stumpy 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
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 06:27
derivative in CEL expressions alinik CFX 59 July 16, 2014 23:31
Need help to use Hermite basis functions Vasilis Main CFD Forum 8 October 29, 2009 14:26
Discontinuous functions in CEL Doug CFX 2 June 5, 2006 15:42
N-S equations:divergence free functions? D. Puigjaner Main CFD Forum 1 July 27, 2000 12:43


All times are GMT -4. The time now is 14:46.