uf3.representation.bsplineΒΆ

This module provides the BSplineBasis class for defining BSpline basis sets from knots and/or pair distance constraints.

Functions

evaluate_basis_functions

Evaluate basis functions.

featurize_force_2B

param basis_functions

list of callable basis functions.

find_spline_indices

Identify basis functions indices that are non-zero at each point.

fit_spline_1d

Utility function for fitting spline coefficients to a sampled 1D function.

generate_basis_functions

param knot_subintervals

list of knot subintervals,

generate_geometric_knots

Generate knot points or knot sequence using a geometric progression.

generate_inv_knots

Generate knot points or knot sequence using an inverse transformation.

generate_lammps_knots

Generate knot points or knot sequence using LAMMPS convention of distance^2.

generate_uniform_knots

Generate evenly-spaced knot points or knot sequence.

get_knot_spacer

get_knot_subintervals

Generate 5-knot subintervals for individual basis functions from specified knot sequence.

knot_sequence_from_points

Repeat endpoints to satisfy knot sequence requirements (i.e.

parse_knots_file

Parse a nested dictionary of knot sequences from JSON file.

Classes

BSplineBasis

Handler class for BSpline basis sets defined using knot sequences and/or pair distance constraints.