Orientation Models¶
Closures¶
Aspect Ratios¶
Compute equivalent aspect ratios.
- fiberoripy.aspect_ratios.get_cox_aspect_ratio(aspect_ratio)[source]¶
Compute an equivalent aspect ratio according to Cox.
- Parameters
- aspect_ratiofloat
Aspect ratio of a cylindrical fiber.
- Returns
- float
Equivalent aspect ratio for an ellipsoid.
References
- 1
Cox, R.G. ‘The motion of long slender bodies in a viscous fluid Part 2. Shear flow.’, J. Fluid Mech. 1971, 45, 625-657. https://doi.org/10.1017/S0022112071000259
- fiberoripy.aspect_ratios.get_zhang_aspect_ratio(aspect_ratio)[source]¶
Compute an equivalent aspect ratio according to Zhang.
- Parameters
- aspect_ratiofloat
Aspect ratio of a cylindrical fiber.
- Returns
- float
Equivalent aspect ratio for an ellipsoid.
References
- 1
Zhang, D.; Smith, D.E.; Jack, D.A.; Montgomery-Smith, S., ‘Numerical Evaluation of Single Fiber Motion for Short-Fiber-Reinforced Composite Materials Processing.’ J. Manuf. Sci. Eng. 2011, 133, 51002. https://doi.org/10.1115/1.4004831
Fitting¶
Fit parameters to model.
- fiberoripy.fit.compute_error(params, t, reference, ode, xi, L)[source]¶
Compute the error between dataset mean and solution.
- fiberoripy.fit.fit_optimal_params(t, reference, ode, xi, L, params, bounds)[source]¶
Apply least-squares optimization to find optimal parameters.
- Parameters
- tnumpy array
Desired output times.
- referencenumpy array
Reference solution for each time step to be fitted.
- odefunction handle
function that describes the fiber orientation model, e.g. ‘folgar_tucker_ode’.
- xifloat
shape_factor
- Lfunction hanlde
Velocity gradient as function of time.
- paramslist of float
parameters passed for optimization.
- boundstuple of list of floats
Upper and lower bounds of the parameters for optimization.
- Returns
- list
Optimal parameter set, resulting fiber orientation evolution, optimizer message.