# Calculate internal angles of an Trilinear interpolation Cube

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

 October 8, 2011, 10:09 Calculate internal angles of an Trilinear interpolation Cube #1 New Member     Join Date: Aug 2011 Posts: 8 Rep Power: 6 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.

October 11, 2011, 10:09
#2
Senior Member

Rami Ben-Zvi
Join Date: Mar 2009
Posts: 148
Rep Power: 8
Quote:
 Originally Posted by zampa 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.

 October 11, 2011, 11:18 #3 New Member     Join Date: Aug 2011 Posts: 8 Rep Power: 6 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?

 Tags cube, mininal angle, trilinear interpolation

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Jack Martinez FLUENT 13 August 11, 2010 06:29 jutta OpenFOAM Running, Solving & CFD 0 February 25, 2010 15:32 bigfans FLUENT 0 October 28, 2009 15:22 Ivan CFX 2 August 30, 2002 06:54 Bowen Zhong Main CFD Forum 0 November 2, 1999 05:45

All times are GMT -4. The time now is 03:54.