papoto_model
convert_grad_to_rad
convert_grad_to_rad(angle_in_grad: ndarray) -> ndarray
Converts an angle in grad to radians.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
array of angles in grad |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: array of angles in radians |
Source code in src/mechaphlowers/core/papoto/papoto_model.py
269 270 271 272 273 274 275 276 277 278 | |
function_f
Function for which we want to find the root.
\(f(p) = p * (\cosh(\frac{val}{p}) - \cosh(\frac{x-val}{p}) - \delta\)
with \(val = \frac{a}{2} - p * \sinh^{-1}(\frac{h} {2 * p * sinh(\frac{a} {2 * p})})\)
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
parameter (variable to find) |
required |
|
ndarray
|
span length |
required |
|
ndarray
|
altitude difference between supports |
required |
|
ndarray
|
altitude difference between point 1 and left support |
required |
|
ndarray
|
abscissa of chosen point 1 |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: value of the function f at p |
Source code in src/mechaphlowers/core/papoto/papoto_model.py
215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 | |
function_f_prime
Approximation of the derivate of function_f with respect to p, computed using finite difference.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
parameter (variable to find) |
required |
|
ndarray
|
span length |
required |
|
ndarray
|
altitude difference between supports |
required |
|
ndarray
|
altitude difference between point 1 and left support |
required |
|
ndarray
|
abscissa of chosen point 1 |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: approximation of \(f'(p)\) |
Source code in src/mechaphlowers/core/papoto/papoto_model.py
244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 | |
papoto_2_points
papoto_2_points(
a: ndarray,
HL: ndarray,
VL: ndarray,
HR: ndarray,
VR: ndarray,
H1: ndarray,
V1: ndarray,
H2: ndarray,
V2: ndarray,
) -> ndarray
Computes PAPOTO method with 2 points.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
Length of the span |
required |
|
ndarray
|
horizontal angle in rad of the left part of the span |
required |
|
ndarray
|
vertical angle in rad of the left part of the span |
required |
|
ndarray
|
horizontal angle in rad of the right part of the span |
required |
|
ndarray
|
vertical angle in rad of the right part of the span |
required |
|
ndarray
|
horizontal angle in rad of point 1 |
required |
|
ndarray
|
vertical angle in rad of point 1 |
required |
|
ndarray
|
horizontal angle in rad of point 2 |
required |
|
ndarray
|
vertical angle in rad of point 2 |
required |
Returns: parameter (np.ndarray): parameter value
Source code in src/mechaphlowers/core/papoto/papoto_model.py
94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 | |
papoto_3_points
papoto_3_points(
a: ndarray,
HL: ndarray,
VL: ndarray,
HR: ndarray,
VR: ndarray,
H1: ndarray,
V1: ndarray,
H2: ndarray,
V2: ndarray,
H3: ndarray,
V3: ndarray,
) -> ndarray
Computes PAPOTO 3 times, and return the mean between those 3 values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
Length of the span |
required |
|
ndarray
|
horizontal distance of the left part of the span |
required |
|
ndarray
|
vertical distance of the left part of the span |
required |
|
ndarray
|
horizontal distance of the right part of the span |
required |
|
ndarray
|
vertical distance of the right part of the span |
required |
|
ndarray
|
horizontal distance of point 1 |
required |
|
ndarray
|
vertical distance of point 1 |
required |
|
ndarray
|
horizontal distance of point 2 |
required |
|
ndarray
|
vertical distance of point 2 |
required |
|
ndarray
|
horizontal distance of point 3 |
required |
|
ndarray
|
vertical distance of point 3 |
required |
Returns: parameter_mean (np.ndarray): mean of the 3 computed parameters
Source code in src/mechaphlowers/core/papoto/papoto_model.py
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 | |
papoto_validity
papoto_validity(
parameter_1_2: ndarray,
parameter_2_3: ndarray,
parameter_1_3: ndarray,
) -> ndarray
papoto_validity
Function providing a validity criteria for the papoto method, based on the 3 computed values.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
float
|
first computed parameters |
required |
|
float
|
second computed parameters |
required |
|
float
|
third computed parameters |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.float: validity criteria vector |
Source code in src/mechaphlowers/core/papoto/papoto_model.py
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | |