CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

Fieldfunction du/dy - du/dx

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

Like Tree2Likes
  • 2 Post By kyle

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 4, 2011, 08:21
Default Fieldfunction du/dy - du/dx
  #1
Senior Member
 
Join Date: Dec 2010
Posts: 135
Rep Power: 15
eRzBeNgEl is on a distinguished road
Hi guys,

I have got a little problem. I want to set up a field function where velocity gradients are included:

e.g:

du/dx -> CCM Code: grad($$Velocity[0]). I think this is for du/dx right, where u is the first component of the velocity vector.

How does this work for du/dy or du/dz??

Thanks for help
eRzBeNgEl is offline   Reply With Quote

Old   October 4, 2011, 11:34
Default
  #2
f-w
Senior Member
 
f-w's Avatar
 
Join Date: Apr 2009
Posts: 154
Rep Power: 16
f-w is on a distinguished road
Check out the help file:

Using Tools > Using Field Functions > Field Function Programming Reference > Vector Functions, Miscellaneous Functions
f-w is offline   Reply With Quote

Old   October 5, 2011, 19:10
Default
  #3
Senior Member
 
Join Date: Mar 2009
Location: Austin, TX
Posts: 160
Rep Power: 18
kyle is on a distinguished road
"grad($$Velocity[0])" will get you a vector field function consisting of (du/dx, du/dy, du/dz). If you just want du/dx, then you need to do "grad($$Velocity[0])[0]"

To be clear...

du/dx = grad($$Velocity[0])[0]
du/dy = grad($$Velocity[0])[1]
dv/dx = grad($$Velocity[1])[0]
dv/dy = grad($$Velocity[1])[1]
dw/dx = grad($$Velocity[2])[0]
etc...
eRzBeNgEl and locoiam1991 like this.
kyle is offline   Reply With Quote

Old   October 6, 2011, 02:25
Default
  #4
Senior Member
 
Join Date: Dec 2010
Posts: 135
Rep Power: 15
eRzBeNgEl is on a distinguished road
Ah Kyle, thank u! :-) This is it what I was looking for....
eRzBeNgEl is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Momentum and displacement thickness: du/dy calculation Josh CFX 13 October 27, 2013 14:38
Fieldfunction Velocity (i) Direction eRzBeNgEl STAR-CCM+ 1 September 19, 2011 19:06
Why are the du/dy values so low? syler3321 CFX 2 September 11, 2010 06:09
derivative dU/dx pipe flow daniel FLUENT 0 May 2, 2008 16:15


All times are GMT -4. The time now is 10:16.