This module defines the 'nurbs_curve' type for representing a Non-Uniform Rational B-Spline (NURBS) curve.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) | ||
| integer, | intent(in), | optional, | contiguous | :: | elem(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) | ||
| integer, | intent(in), | optional, | contiguous | :: | elem(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) |
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| type(debug), | public | :: | err |
101: size mismatch (weights vs control points), 102: missing control points, 103: missing knot vector, 104: missing geometry points, 105: missing weights, 106: lsq fit underdetermined |
|||
| real(kind=rk), | private, | allocatable | :: | Wc(:) |
Weights for control points (1D array: [nc]) |
||
| real(kind=rk), | private, | allocatable | :: | Xc(:,:) |
Control points (2D array: [nc, dim]) |
||
| real(kind=rk), | private, | allocatable | :: | Xg(:,:) |
Geometry points (2D array: [ng, dim]) |
||
| real(kind=rk), | private, | allocatable | :: | Xt(:) |
Evaluation points (1D array: [ng]) |
||
| integer, | private | :: | degree |
Degree (order) of the curve |
|||
| integer, | private, | allocatable | :: | elemConn(:,:) |
IGA element connectivity |
||
| integer, | private, | allocatable | :: | elemConn_Xc_vis(:,:) |
Connectivity for visualization of control points |
||
| integer, | private, | allocatable | :: | elemConn_Xg_vis(:,:) |
Connectivity for visualization of geometry points |
||
| real(kind=rk), | private, | allocatable | :: | knot(:) |
Knot vector (1D array) |
||
| integer, | private | :: | nc |
Number of control points |
|||
| integer, | private | :: | ng |
Number of geometry points |
| procedure, public :: ansatz | Compute the shape functions, derivative of shape functions and dL |
| generic, public :: basis => basis_vector, basis_scalar | Compute the basis functions of the NURBS curve |
| procedure, public :: cmp_Xg | Compute geometry points |
| procedure, public :: cmp_degree | Compute degree of the NURBS curve |
| procedure, public :: cmp_elem | Generate IGA element connectivity |
| procedure, public :: cmp_elem_Xc_vis | Generate connectivity for control points |
| procedure, public :: cmp_elem_Xg_vis | Generate connectivity for geometry points |
| procedure, public :: cmp_elem_Xth | Generate connectivity for parameter points |
| procedure, public :: cmp_length | Compute the length of the NURBS curve |
| procedure, public :: cmp_nc | Compute number of required control points |
| procedure, public :: create | Generate geometry points |
| generic, public :: derivative => derivative_vector, derivative_scalar | Compute the derivative of the NURBS curve |
| generic, public :: derivative2 => derivative2_vector, derivative2_scalar | Compute the second derivative of the NURBS curve |
| procedure, public :: elevate_degree | Elevate the degree of the curve |
| procedure, public :: export_Xc | Export control points to VTK file |
| procedure, public :: export_Xg | Export geometry points to VTK file |
| procedure, public :: export_Xth | Export parameter space to VTK file |
| procedure, public :: export_iges | Export the NURBS curve to an IGES file |
| procedure, public :: finalize | Finalize the NURBS curve object |
| generic, public :: get_Wc => get_Wc_all, get_Wci | Get weights |
| generic, public :: get_Xc => get_Xc_all, get_Xci, get_Xcid | Get control points |
| generic, public :: get_Xg => get_Xg_all, get_Xgi, get_Xgid | Get geometry points |
| procedure, public :: get_Xt | Get parameter values |
| procedure, public :: get_continuity | Compute and return the continuity of the curve |
| procedure, public :: get_degree | Get degree of the NURBS curve |
| procedure, public :: get_elem | Get IGA element connectivity |
| procedure, public :: get_elem_Xc_vis | Get connectivity for control points |
| procedure, public :: get_elem_Xg_vis | Get connectivity for geometry points |
| generic, public :: get_knot => get_knoti, get_knot_all | Get knot vector |
| procedure, public :: get_multiplicity | Compute and return the multiplicity of the knots |
| procedure, public :: get_nc | Get number of control points |
| procedure, public :: get_ng | Get number of geometry points |
| procedure, public :: insert_knots | Insert knots into the knot vector |
| procedure, public :: is_rational | Check if the NURBS curve is rational |
| procedure, public :: lsq_fit_bspline | Fit B-spline curve to structured data points using least squares |
| procedure, public :: lsq_fit_nurbs | Fit NURBS curve to structured data points using least squares |
| procedure, public :: modify_Wc | Modify weights |
| procedure, public :: modify_Xc | Modify control points |
| procedure, public :: nearest_point | Find the nearest point on the NURBS curve (Approximation) |
| procedure, public :: nearest_point2 | Find the nearest point on the NURBS curve (Minimization - Newtons method) |
| procedure, public :: remove_knots | Remove knots from the knot vector |
| procedure, public :: rotate_Xc | Rotate control points |
| procedure, public :: rotate_Xg | Rotate geometry points |
| generic, public :: set => set1, set1a, set2, set3, set4 | Set NURBS curve |
| procedure, public :: set_C | Set a C-shape |
| procedure, public :: set_circle | Set a circle |
| procedure, public :: set_elem | Set IGA element connectivity |
| procedure, public :: set_elem_Xc_vis | Set connectivity for control points |
| procedure, public :: set_elem_Xg_vis | Set connectivity for geometry points |
| procedure, public :: set_half_circle | Set a half circle |
| procedure, public :: show | Show the NURBS object using PyVista |
| procedure, public :: translate_Xc | Translate control points |
| procedure, public :: translate_Xg | Translate geometry points |
| procedure, private :: basis_scalar | Compute the basis functions of the NURBS curve |
| procedure, private :: basis_vector | Compute the basis functions of the NURBS curve |
| procedure, private :: derivative2_scalar | Compute the second derivative of the NURBS curve |
| procedure, private :: derivative2_vector | Compute the second derivative of the NURBS curve |
| procedure, private :: derivative_scalar | Compute the derivative of the NURBS curve |
| procedure, private :: derivative_vector | Compute the derivative of the NURBS curve |
| procedure, private :: get_Wc_all | Get all weights |
| procedure, private :: get_Wci | Get i-th weight |
| procedure, private :: get_Xc_all | Get all control points |
| procedure, private :: get_Xci | Get i-th control point |
| procedure, private :: get_Xcid | Get i-th control point in a specific direction |
| procedure, private :: get_Xg_all | Get all geometry points |
| procedure, private :: get_Xgi | Get i-th geometry point |
| procedure, private :: get_Xgid | Get i-th geometry point in a specific direction |
| procedure, private :: get_knot_all | Get all knot vectors |
| procedure, private :: get_knoti | Get i-th knot value |
| procedure, private :: set1 | Set knot vector, control points and weights for the NURBS curve object |
| procedure, private :: set1a | |
| procedure, private :: set2 | Set NURBS curve using nodes of parameter space, degree, continuity, control points and weights |
| procedure, private :: set3 | Set Bezier or Rational Bezier curve using control points and weights |
| procedure, private :: set4 | Set NURBS curve using degree, number of control points, control points and weights |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xti | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in) | :: | degree | |||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| real(kind=rk), | intent(in) | :: | Xt |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in), | optional | :: | p |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in), | optional | :: | p |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in), | optional | :: | p |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n | |||
| integer, | intent(in) | :: | dir |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n | |||
| integer, | intent(in) | :: | dir |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | i |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in) | :: | ie | |||
| integer, | intent(in) | :: | ig | |||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc_dXg(:,:) | ||
| real(kind=rk), | intent(out) | :: | dL | |||
| integer, | intent(in), | optional | :: | ngauss |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt(:) | |
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(out) | :: | length | |||
| integer, | intent(in), | optional | :: | ngauss |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) | ||
| integer, | intent(in), | optional, | contiguous | :: | elem(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) | ||
| integer, | intent(in), | optional, | contiguous | :: | elem(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| integer, | intent(in), | optional | :: | ng | ||
| real(kind=rk), | intent(in), | contiguous | :: | Wc(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | dTgc(:) | |
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt(:) | |
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:,:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | dTgc(:,:) | |
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | Xt | |||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:) | |
| integer, | intent(in), | optional, | contiguous | :: | elem(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt(:) | |
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in) | :: | t | |||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | B(:,:) | |
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Bs(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | filename | |||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | point_data(:,:) | |
| character(len=*), | intent(in), | optional, | contiguous | :: | field_names(:) | |
| character(len=*), | intent(in), | optional | :: | encoding |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | filename | |||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | point_data(:,:) | |
| character(len=*), | intent(in), | optional, | contiguous | :: | field_names(:) | |
| character(len=*), | intent(in), | optional | :: | encoding |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| character(len=*), | intent(in) | :: | filename | |||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | point_data(:,:) | |
| character(len=*), | intent(in), | optional, | contiguous | :: | field_names(:) | |
| character(len=*), | intent(in), | optional | :: | encoding |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | filename |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xth(:) | ||
| integer, | intent(in), | contiguous | :: | r(:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | B(:,:) | |
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Bs(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xdata(:,:) | ||
| integer, | intent(in) | :: | ndata |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xdata(:,:) | ||
| integer, | intent(in) | :: | ndata | |||
| integer, | intent(in), | optional | :: | maxit | ||
| real(kind=rk), | intent(in), | optional | :: | tol | ||
| real(kind=rk), | intent(in), | optional | :: | lambda_xc | ||
| real(kind=rk), | intent(in), | optional | :: | mu0 | ||
| real(kind=rk), | intent(in), | optional | :: | reg_logw |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | W | |||
| integer, | intent(in) | :: | num |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | X | |||
| integer, | intent(in) | :: | num | |||
| integer, | intent(in) | :: | dir |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(in) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | point_Xg(:) | ||
| real(kind=rk), | intent(out), | optional | :: | nearest_Xg(size(point_Xg)) | ||
| real(kind=rk), | intent(out), | optional | :: | nearest_Xt | ||
| integer, | intent(out), | optional | :: | id |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | point_Xg(:) | ||
| real(kind=rk), | intent(in) | :: | tol | |||
| integer, | intent(in) | :: | maxit | |||
| real(kind=rk), | intent(out) | :: | nearest_Xt | |||
| real(kind=rk), | intent(out), | optional | :: | nearest_Xg(size(this%Xc,2)) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xth(:) | ||
| integer, | intent(in), | contiguous | :: | r(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | alpha | |||
| real(kind=rk), | intent(in) | :: | beta | |||
| real(kind=rk), | intent(in) | :: | theta |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | alpha | |||
| real(kind=rk), | intent(in) | :: | beta | |||
| real(kind=rk), | intent(in) | :: | theta |
Set knot vector, control points and weights for the NURBS curve object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set knot vector, control points and weights for the NURBS curve object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set NURBS curve using nodes of parameter space (Xth), degree, continuity, control points and weights.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xth_dir(:) | ||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in), | contiguous | :: | continuity(:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xc(:,:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set Bezier or Rational Bezier curve using control points and weights.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in) | :: | degree | |||
| integer, | intent(in) | :: | nc | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | center(:) | ||
| real(kind=rk), | intent(in) | :: | radius |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | center(:) | ||
| real(kind=rk), | intent(in) | :: | radius |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | elemConn(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | elemConn(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | elemConn(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | center(:) | ||
| real(kind=rk), | intent(in) | :: | radius |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | vtkfile_Xc | |||
| character(len=*), | intent(in) | :: | vtkfile_Xg |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | vec(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_curve), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | vec(:) |