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

Calculate internal angles of an Trilinear interpolation Cube

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 8, 2011, 11:09
Default Calculate internal angles of an Trilinear interpolation Cube
  #1
New Member
 
zampa's Avatar
 
Join Date: Aug 2011
Posts: 8
Rep Power: 16
zampa is on a distinguished road
Does anybody know the (computational) fastest way to calculate the internal angles (minimal internal angle) of a cube, result of a trilinear interpolation between 8 points, in 3D space, of course.
zampa is offline   Reply With Quote

Old   October 11, 2011, 11:09
Default
  #2
Senior Member
 
Rami Ben-Zvi
Join Date: Mar 2009
Posts: 155
Rep Power: 17
Rami is on a distinguished road
Quote:
Originally Posted by zampa View Post
Does anybody know the (computational) fastest way to calculate the internal angles (minimal internal angle) of a cube, result of a trilinear interpolation between 8 points, in 3D space, of course.
Aren't all the cube internal angles 90 degrees?...
I guess you meant a hexa rather than a cube.
A straightforward way is computing angles from scalar product of vectors. Doing this for all the combinations you need, you can find the minimum angle.
Not sure this is the fastest way, and whether it is what you were asking.
Rami is offline   Reply With Quote

Old   October 11, 2011, 12:18
Default
  #3
New Member
 
zampa's Avatar
 
Join Date: Aug 2011
Posts: 8
Rep Power: 16
zampa is on a distinguished road
Ok. Yes, itīs a hexa, resulting from a trilinear interpolation between 8 vertices.

And yes, actually I use the common way calculating each vector and the angles between them.

I could save time, by allocating a Matrix with all vectors. So I only compute each vector one time.

But does anyone know of a method, for example taking some diagonal, in order to save computacional cost?
zampa is offline   Reply With Quote

Reply

Tags
cube, mininal angle, trilinear interpolation


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
Gambit help: Cube inside cube Jack Martinez FLUENT 13 August 11, 2010 07:29
Surface interpolation schemes and parallelization jutta OpenFOAM Running, Solving & CFD 0 February 25, 2010 15:32
How to store the variable on internal faces to calculate UDS_FLUX? bigfans FLUENT 0 October 28, 2009 15:22
Problems with internal angles when meshing Ivan CFX 2 August 30, 2002 07:54
Trilinear interpolation Bowen Zhong Main CFD Forum 0 November 2, 1999 05:45


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