| 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(1)*nc(2)]) |
||
| real(kind=rk), | private, | allocatable | :: | Xc(:,:) |
Control points (2D array: [nc(1)*nc(2), dim]) |
||
| real(kind=rk), | private, | allocatable | :: | Xg(:,:) |
Geometry points (2D array: [ng(1)*ng(2), dim]) |
||
| real(kind=rk), | private, | allocatable | :: | Xt(:,:) |
Evaluation parameter values (2D array: [ng(1)*ng(2), 2]) |
||
| real(kind=rk), | private, | allocatable | :: | Xt1(:) |
Evaluation parameter values in the first direction (1D array: [ng(1)]) |
||
| real(kind=rk), | private, | allocatable | :: | Xt2(:) |
Evaluation parameter values in the second direction (1D array: [ng(2)]) |
||
| integer, | private | :: | degree(2) |
Degree (order) of the surface |
|||
| 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 | :: | knot1(:) |
Knot vector in the first direction (1D array) |
||
| real(kind=rk), | private, | allocatable | :: | knot2(:) |
Knot vector in the second direction (1D array) |
||
| integer, | private | :: | nc(2) |
Number of control points in each direction |
|||
| integer, | private | :: | ng(2) |
Number of geometry points in each direction |
Compute the shape functions, derivative of shape functions and dA
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | 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) | :: | dA | |||
| integer, | intent(in), | optional | :: | ngauss(2) |
Compute the basis functions of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res1 | ||
| integer, | intent(in), | optional | :: | res2 | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt1(:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt2(:) | |
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) |
Compute geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) |
Compute the area of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(out) | :: | area | |||
| integer, | intent(in), | optional | :: | ngauss(2) |
Compute degree of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | dir |
Generate IGA element connectivity
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Generate connectivity for control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in), | optional, | contiguous | :: | p(:) |
Generate connectivity for geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in), | optional, | contiguous | :: | p(:) |
Generate connectivity for parameter points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in), | optional, | contiguous | :: | p(:) |
Compute number of required control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | dir |
Generate geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res1 | ||
| integer, | intent(in), | optional | :: | res2 | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt1(:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt2(:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt(:,:) |
Compute the derivative of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res1 | ||
| integer, | intent(in), | optional | :: | res2 | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt1(:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt2(:) | |
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:,:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:,:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:) | |
| integer, | intent(in), | optional, | contiguous | :: | elem(:) |
Compute the second derivative of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res1 | ||
| integer, | intent(in), | optional | :: | res2 | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt1(:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt2(:) | |
| 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_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | 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(:) |
Elevate degree
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in) | :: | dir | |||
| integer, | intent(in) | :: | t | |||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | B(:,:) | |
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Bs(:,:) |
Export control points to VTK file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | 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 |
Export geometry points to VTK file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | 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 |
Export parameter space to VTK file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | 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 |
Export parameter space in geometry points to VTK file
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | filename | |||
| integer, | intent(in), | optional | :: | res | ||
| character(len=*), | intent(in), | optional | :: | encoding |
Export the NURBS surface to IGES format
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | filename |
Finalize the NURBS surface object
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this |
Get weights
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
Get control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n | |||
| integer, | intent(in) | :: | dir |
Get geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n | |||
| integer, | intent(in) | :: | dir |
Get parameter values
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Compute and return the continuity of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Get degree of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Get IGA element connectivity
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Get connectivity for control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Get connectivity for geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Get knot vector
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir | |||
| integer, | intent(in) | :: | i |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Compute and return the multiplicity of the knot vector
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Get number of control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Get number of geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Insert knots into the knot vector
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in) | :: | dir | |||
| 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(:,:) |
Check if the NURBS surface is rational
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Fit B-spline surface to structured data points using least squares
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:,:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xdata(:,:) | ||
| integer, | intent(in) | :: | ndata(2) |
Fit NURBS surface to structured data points using least squares
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:,:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xdata(:,:) | ||
| integer, | intent(in) | :: | ndata(2) | |||
| 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 |
Modify weights
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | W | |||
| integer, | intent(in) | :: | num |
Modify control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | X | |||
| integer, | intent(in) | :: | num | |||
| integer, | intent(in) | :: | dir |
Find the nearest point on the NURBS surface (Approximation)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | 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(2) | ||
| integer, | intent(out), | optional | :: | id |
Find the nearest point on the NURBS surface (Minimization - Newtons method)
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | 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(2) | |||
| real(kind=rk), | intent(out), | optional | :: | nearest_Xg(size(this%Xc,2)) |
Remove knots from the knot vector
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in) | :: | dir | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xth(:) | ||
| integer, | intent(in), | contiguous | :: | r(:) |
Rotate control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | alpha | |||
| real(kind=rk), | intent(in) | :: | beta | |||
| real(kind=rk), | intent(in) | :: | theta |
Rotate geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in) | :: | alpha | |||
| real(kind=rk), | intent(in) | :: | beta | |||
| real(kind=rk), | intent(in) | :: | theta |
Set NURBS surface
Set knot vectors, control points and weights for the NURBS surface object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot1(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot2(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set NURBS surface using nodes of parameter space, degree, continuity, control points and weights
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xth_dir1(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xth_dir2(:) | ||
| integer, | intent(in), | contiguous | :: | degree(:) | ||
| integer, | intent(in), | contiguous | :: | continuity1(:) | ||
| integer, | intent(in), | contiguous | :: | continuity2(:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xc(:,:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set Bezier or Rational Bezier surface using control points and weights.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | nc(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | degree(:) | ||
| integer, | intent(in), | contiguous | :: | nc(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set a C-shape
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | center(:) | ||
| real(kind=rk), | intent(in) | :: | radius1 | |||
| real(kind=rk), | intent(in) | :: | radius2 |
Set IGA element connectivity
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | elemConn(:,:) |
Set connectivity for control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | elemConn(:,:) |
Set connectivity for geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | elemConn(:,:) |
Set a half ring
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | center(:) | ||
| real(kind=rk), | intent(in) | :: | radius1 | |||
| real(kind=rk), | intent(in) | :: | radius2 |
Set a ring
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | center(:) | ||
| real(kind=rk), | intent(in) | :: | radius1 | |||
| real(kind=rk), | intent(in) | :: | radius2 |
Set a tetragon
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | L(:) | ||
| integer, | intent(in), | contiguous | :: | nc(:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Show the NURBS object using PyVista
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | vtkfile_Xc | |||
| character(len=*), | intent(in) | :: | vtkfile_Xg | |||
| character(len=*), | intent(in), | optional | :: | vtkfile_Xth_in_Xg |
Translate control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | vec(:) |
Translate geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | vec(:) |
Compute the basis functions of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:) |
Compute the basis functions of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res1 | ||
| integer, | intent(in), | optional | :: | res2 | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt1(:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt2(:) | |
| real(kind=rk), | intent(out), | allocatable | :: | Tgc(:,:) |
Compute the second derivative of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | 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(:) |
Compute the second derivative of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res1 | ||
| integer, | intent(in), | optional | :: | res2 | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt1(:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt2(:) | |
| real(kind=rk), | intent(out), | allocatable | :: | d2Tgc(:,:,:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | dTgc(:,:,:) | |
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:,:) |
Compute the derivative of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xt(:) | ||
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:) | |
| integer, | intent(in), | optional, | contiguous | :: | elem(:) |
Compute the derivative of the NURBS surface
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | optional | :: | res1 | ||
| integer, | intent(in), | optional | :: | res2 | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt1(:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xt2(:) | |
| real(kind=rk), | intent(out), | allocatable | :: | dTgc(:,:,:) | ||
| real(kind=rk), | intent(out), | optional, | allocatable | :: | Tgc(:,:) |
Get all weights
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Get i-th weight
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
Get all control points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Get i-th control point
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
Get i-th control point in a specific direction
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n | |||
| integer, | intent(in) | :: | dir |
Get all geometry points
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Get i-th geometry point
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n |
Get i-th geometry point in a specific direction
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | n | |||
| integer, | intent(in) | :: | dir |
Get degree of the NURBS surface in both directions
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Get degree of the NURBS surface in a specific direction
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Get all knot vectors
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Get i-th knot value
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir | |||
| integer, | intent(in) | :: | i |
Get number of control points in all directions
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this |
Get number of control points in a specific direction
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(in) | :: | this | |||
| integer, | intent(in) | :: | dir |
Set knot vectors, control points and weights for the NURBS surface object
Set knot vectors, control points and weights for the NURBS surface object.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | knot1(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | knot2(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set NURBS surface using nodes of parameter space, degree, continuity, control points and weights
Set NURBS surface using nodes of parameter space, degree, continuity, control points and weights
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| real(kind=rk), | intent(in), | contiguous | :: | Xth_dir1(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xth_dir2(:) | ||
| integer, | intent(in), | contiguous | :: | degree(:) | ||
| integer, | intent(in), | contiguous | :: | continuity1(:) | ||
| integer, | intent(in), | contiguous | :: | continuity2(:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Xc(:,:) | |
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set Bezier or Rational Bezier surface using control points and weights
Set Bezier or Rational Bezier surface using control points and weights.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | nc(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |
Set NURBS surface using degree, number of control points, control points and weights
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nurbs_surface), | intent(inout) | :: | this | |||
| integer, | intent(in), | contiguous | :: | degree(:) | ||
| integer, | intent(in), | contiguous | :: | nc(:) | ||
| real(kind=rk), | intent(in), | contiguous | :: | Xc(:,:) | ||
| real(kind=rk), | intent(in), | optional, | contiguous | :: | Wc(:) |