hcu5555 / tonatiuh

Automatically exported from code.google.com/p/tonatiuh
0 stars 0 forks source link

Fresnel plugin error in calculation (with correction attached) #35

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Build a Fresnel concentrator
2.Set the Sun perpendiculary to the axis => Angle of reflector are ok
3. Change the asimuth of 30°

What is the expected output? What do you see instead?
All reflected Rays should be aligned on target. But a lot of Rays are out of 
the target. 

What version of the product are you using? On what operating system?
1.5.0

Please provide any additional information below.
Correction:
//Dawann : in a Fresnel concentrator we use the project of the sun vector on 
the normal plan of the axis
//it= the projection of the sun on the normal plan of the axis...
if( localAxis == Vector3D( 1.0, 0.0, 0.0 ) )
{
  Vector3D r = Normalize( Vector3D( 0.0, focus.y, focus.z ));
  Vector3D it = Normalize( Vector3D( 0.0, i.y, i.z ) );
  Vector3D n = Normalize( it + r );
  if( fabs( n.z ) > 0.0  )  angle = atan2( n.z, n.y );
}

Original issue reported on code.google.com by Daw...@gmail.com on 17 Mar 2011 at 10:50

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by amaiamut...@gmail.com on 17 May 2011 at 3:57