syned.beamline.shape.HyperbolicCylinder

class syned.beamline.shape.HyperbolicCylinder(min_axis=0.0, maj_axis=0.0, p_focus=0.0, convexity=0, cylinder_direction=0)[source]

Constructor.

Parameters:
  • min_axis (float, optional) – the ellipse minor axis.

  • maj_axis (float, optional) – the ellipse majot axis.

  • p_focus (float, optional) – the distance from the first focus (source position) to the mirror pole.

  • convexity (int (as defined by Convexity), optional) – NONE = -1, UPWARD = 0, DOWNWARD = 1.

  • cylinder_direction (int (as defined by Direction), optional) – TANGENTIAL = 0, SAGITTAL = 1.

__init__(min_axis=0.0, maj_axis=0.0, p_focus=0.0, convexity=0, cylinder_direction=0)[source]

Methods

__init__([min_axis, maj_axis, p_focus, ...])

create_hyperbolic_cylinder_from_axes([...])

Returns an HyperbolicCylinder instance from main parameters.

create_hyperbolic_cylinder_from_p_q([p, q, ...])

Returns an HyperbolicCylinder instance from factory parameters.

create_hyperboloid_from_axes([min_axis, ...])

Creates an hyperboloid from main parameters.

create_hyperboloid_from_p_q([p, q, ...])

Creates an hyperboloid from factory parameters.

duplicate()

Returns a copy of the SYNED object instance.

from_hex_tring(hex_string)

get_a()

Returns a = half of the major axis.

get_axes()

Returns the hyperboloid axes.

get_axis_from_p_q([p, q, grazing_angle, ...])

Calculates the hyperbola axes from the factory parameters.

get_b()

Returns b = half of the minor axis.

get_c()

Returns c = sqrt(a^2 + b^2).

get_convexity()

Gets the convexity flag.

get_cylinder_direction()

Returns the cylinder direction.

get_eccentricity()

returns the eccentricity e = c / a.

get_grazing_angle()

Returns the grazing angle.

get_mirror_center()

Returns the coordinates of the mirror pole or center.

get_p_focus()

Returns p (=p_focus).

get_p_q([grazing_angle])

Returns p and q distances for a given grazing angle.

get_p_q_from_axis([min_axis, maj_axis, ...])

Calculates the p and q values from axis and grazing angle.

get_q_focus()

Returns q.

get_value_from_key_name(key)

Gets a value using its key value.

info()

Get text info of recurrent SYNED objects.

info_recurrent(fd[, prefix])

Get text info of recurrent SYNED objects.

initialize_from_p_q([p, q, grazing_angle])

Sets the hyperboloid parameters for given factory parameters.

keys()

Returns the keys of the supporting doctionary.

set_value_from_key_name(key, value)

Sets a value using its key value.

to_dictionary()

Returns a dictionary with the object fields.

to_full_dictionary()

Returns a dictionary with the object fields, including other syned objects embedded or list of elements.

to_hex_tring()

to_json([file_name])

Writes a json file with the SYNED object data.