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

ND_MAG

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Bogdan

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2007, 02:13
Default ND_MAG
  #1
J.Y.Shin
Guest
 
Posts: n/a
ND_MAG(dx[0],dx[1],dx[2]);

Please let me know the above statement ND_MAG.

  Reply With Quote

Old   February 6, 2007, 02:33
Default Re: ND_MAG
  #2
Bogdan
Guest
 
Posts: n/a
it is equivalent with:

sqrt(pow(dx[0],2.0)+pow(dx[1],2.0)+pow(dx[2],2.0)).

Should be used with care in 2D version since dx[2] is not always 0 as expected.
fuzzylogic likes this.
  Reply With Quote

Old   February 8, 2007, 10:24
Default Re: ND_MAG
  #3
Rizwan
Guest
 
Posts: n/a
in 2D it is automatically set to zero. you need not bother about dx[2]. Its a macro that calculates the MAGnigitude of a Vector quantity
  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



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