Mirror Output

class example.mirror.example_MirrorOutput.ExampleMirrorOutput(methodName='runTest')

Bases: TestOutput

Example generation and rendering of mirror surfaces, their surface normals, etc.

example_facet() None

Draws a facet that contains a mirror. Includes the surface normals for multiple points on the mirror.

example_heliostat_05W01_and_14W01() None

Displays two NSTTF heliostats with an approximate, realistic focal length.

example_heliostat_stages() None

Shows construction stages from a flat heliostat to a canted and tracking heliostat.

example_heliostat_surface_normals() None

Displays the surface normal on the heliostat.

example_mirror() None

Draws the surface of a mirror facing up.

example_mirror_halfpi_rotation() None

Draws a pentagonal mirror that is rotated 90 deg in space. Should look like a mirror with its normal parallel in the xy plane.

example_solar_field() None

Shows a solar field with two heliostats, while tracking.

lambda_symmetric_paraboloid(focal_length: float) Callable[[float, float], float]

Returns a callable for a symmetric paraboloid surface

Parameters:

focal_length (float) – Focal length

Returns:

Ouptuts z coordinate when input x, y coordinate

Return type:

Callable[[float, float], float]

setUp()

Hook method for setting up the test fixture before exercising it.

classmethod setUpClass(source_file_body: str = 'ExampleMirrorOutput', figure_prefix_root: str = 'tmo', interactive: bool = False, verify: bool = True)

Hook method for setting up class fixture before running tests in the class.