NURBS3DSurface Class Reference

A NURBS 3D surface. More...

Inheritance diagram for NURBS3DSurface:
[legend]
Collaboration diagram for NURBS3DSurface:
[legend]

Public Member Functions

 NURBS3DSurface (const List< vector > &CPs, const label nPointsU, const label nPointsV, const NURBSbasis &uBasis, const NURBSbasis &vBasis, const word name="NURBS3DSurface")
 Construct from number of control points and basis functions. More...
 
 NURBS3DSurface (const List< vector > &CPs, const List< scalar > &weights, const label nPointsU, const label nPointsV, const NURBSbasis &uBasis, const NURBSbasis &vBasis, const word name="NURBS3DSurface")
 Construct from number of control points, weights and basis functions. More...
 
 NURBS3DSurface (const List< vector > &CPs, const label nPointsU, const label nPointsV, const label uDegree, const label vDegree, const label nCPsU, const label nCPsV, const word name="NURBS3DSurface")
 Construct from control points, basis degree and number of points. More...
 
 NURBS3DSurface (const List< vector > &CPs, const label nPointsU, const label nPointsV, const label uDegree, const label vDegree, const label nCPsU, const label nCPsV, const scalarField &knotsU, const scalarField &knotsV, const word name="NURBS3DSurface")
 Construct from control points, basis degree, knots and number of. More...
 
 NURBS3DSurface (const List< vector > &CPs, const List< scalar > &weights, const label nPointsU, const label nPointsV, const label uDegree, const label vDegree, const label nCPsU, const label nCPsV, const word name="NURBS3DSurface")
 Construct from control points, weights, basis degree, and number of. More...
 
 NURBS3DSurface (const List< vector > &CPs, const List< scalar > &weights, const label nPointsU, const label nPointsV, const label uDegree, const label vDegree, const label nCPsU, const label nCPsV, const scalarField &knotsU, const scalarField &knotsV, const word name="NURBS3DSurface")
 Construct from control points, weights, basis degree, knots and. More...
 
 NURBS3DSurface (const NURBS3DSurface &)
 Construct as copy. More...
 
 ~NURBS3DSurface ()=default
 Destructor. More...
 
void setNrmOrientation (const vector &givenNrm, const scalar u, const scalar v)
 
void flipNrmOrientation ()
 Flip the orientation of the nrm. More...
 
void setCPs (const List< vector > &CPs)
 
void setWeights (const scalarList &weights)
 
void setName (const word &name)
 
void buildSurface ()
 
void invertU ()
 
void invertV ()
 
void invertUV ()
 
void makeEquidistant (const label lenAcc=25, const label maxIter=10, const label spacingCorrInterval=-1, const scalar tolerance=1.e-5)
 
vector surfacePoint (const scalar &u, const scalar &v)
 
scalarList findClosestSurfacePoint (const vector &targetPoint, const label maxIter=100, const scalar tolerance=1.e-6)
 
tmp< vector2DFieldfindClosestSurfacePoint (const vectorField &targetPoints, const label maxIter=100, const scalar tolerance=1.e-6)
 
scalarList findClosestSurfacePoint (const vector &targetPoint, const scalar &uInitGuess, const scalar &vInitGuess, const label maxIter=100, const scalar tolerance=1.e-6)
 
const vector nrm (scalar u, scalar v)
 
List< scalarListgenEquidistant (const label nUPts=100, const label nVPts=100, const label lenAcc=25, const label maxIter=10, const label spacingCorrInterval=-1, const scalar tolerance=1.e-5)
 Generate points on the surface which are evenly spaced in cartesian. More...
 
bool checkRangeU (const scalar u, const label CPI, const label uDegree) const
 
bool checkRangeU (const scalar u, const label CPI) const
 
bool checkRangeV (const scalar v, const label CPI, const label vDegree) const
 
bool checkRangeV (const scalar v, const label CPI) const
 
bool checkRangeUV (const scalar v, const scalar u, const label CPI, const label uDegree, const label vDegree) const
 
bool checkRangeUV (const scalar v, const scalar u, const label CPI) const
 
scalar lengthU (const label vIConst, const label uIStart, const label uIEnd) const
 
scalar lengthU (const scalar vConst, const scalar uStart, const scalar uEnd, const label nPts) const
 
scalar lengthU (const label vIConst) const
 
scalar lengthU (const scalar vConst) const
 
scalar lengthV (const label uIConst, const label vIStart, const label vIEnd) const
 
scalar lengthV (const scalar uConst, const scalar vStart, const scalar vEnd, const label nPts) const
 
scalar lengthV (const label uIConst) const
 
scalar lengthV (const scalar uConst) const
 
vector surfaceDerivativeU (const scalar u, const scalar v) const
 Surface derivative wrt u at point u,v. More...
 
vector surfaceDerivativeV (const scalar u, const scalar v) const
 Surface derivative wrt v at point u,v. More...
 
vector surfaceDerivativeUV (const scalar u, const scalar v) const
 Surface second derivative wrt u and v at point u,v. More...
 
vector surfaceDerivativeUU (const scalar u, const scalar v) const
 Surface second derivative wrt u at point u,v. More...
 
vector surfaceDerivativeVV (const scalar u, const scalar v) const
 Surface second derivative wrt v at point u,v. More...
 
scalar surfaceDerivativeCP (const scalar u, const scalar v, const label CPI) const
 Surface derivative wrt the weight of CPI at point u,v. More...
 
vector surfaceDerivativeW (const scalar u, const scalar v, const label CPI) const
 Surface derivative wrt WI at point u,v. More...
 
scalar lengthDerivativeU (const scalar vConst, const scalar uStart, const scalar uEnd, const label nPts) const
 Surface derivative wrt u length along v=const contour range. More...
 
scalar lengthDerivativeV (const scalar uConst, const scalar vStart, const scalar vEnd, const label nPts) const
 Surface derivative wrt v length along u=const contour range. More...
 
const NURBSbasisgetBasisFunctionU () const
 Get basis function. More...
 
const NURBSbasisgetBasisFunctionV () const
 
const List< vector > & getCPs () const
 Get CPs. More...
 
const scalarListgetWeights () const
 Get weights. More...
 
const scalarListgetParametricCoordinatesU () const
 Get parametric coordinates. More...
 
const scalarListgetParametricCoordinatesV () const
 
const wordgetName () const
 Get name. More...
 
label getNPtsU () const
 Get number of point in u direction. More...
 
label getNPtsV () const
 Get number of point in u direction. More...
 
const labelListgetBoundaryCPIDs ()
 Get IDs of boundary control points. More...
 
const labelListgetBoundaryCPIs ()
 
const label & whichBoundaryCPI (const label &globalCPI)
 Get the boundary CP ID based on the global CP ID. More...
 
label nrmOrientation () const
 Return the nrm sgn relation to the u=0 nrm. More...
 
const vectorgivenInitNrm () const
 Return the initial nrmal given to compare to the Curve's nrmals. More...
 
const labelListgetCPsUCPIs () const
 Return ID in u direction for a given cp ID. More...
 
const labelListgetCPsVCPIs () const
 Return ID in v direction for a given cp ID. More...
 
void write ()
 Write curve to file. More...
 
void write (const word fileName)
 
void write (const fileName dirName, const fileName fileName)
 
void writeWParses ()
 
void writeWParses (const word fileName)
 
void writeWParses (const fileName dirName, const fileName fileName)
 
void writeVTK (const fileName vtkDirName, const fileName vtkFileName)
 
- Public Member Functions inherited from Field< vector >
constexpr Field () noexcept
 Default construct. More...
 
 Field (const label len)
 Construct given size. More...
 
 Field (const label len, const vector &val)
 Construct given size and initial value. More...
 
 Field (const label len, const Foam::zero)
 Construct given size and initial values of zero. More...
 
 Field (const Foam::one, const vector &val)
 Construct with length=1, copying the value as the only content. More...
 
 Field (const Foam::one, vector &&val)
 Construct with length=1, moving the value as the only content. More...
 
 Field (const Foam::one, const Foam::zero)
 Construct with length=1, initializing content to zero. More...
 
 Field (const Field< vector > &fld)
 Copy construct. More...
 
 Field (const UList< vector > &list)
 Copy construct from UList<Type> More...
 
 Field (const IndirectListBase< vector, Addr > &list)
 Copy construct from IndirectList. More...
 
 Field (Field< vector > &&fld)
 Move construct from Field. More...
 
 Field (List< vector > &&list)
 Move construct from List. More...
 
 Field (DynamicList< vector, SizeMin > &&list)
 Move construct from DynamicList. More...
 
 Field (const UList< vector > &mapF, const labelUList &mapAddressing)
 Construct by 1 to 1 mapping from the given field. More...
 
 Field (const tmp< Field< vector >> &tmapF, const labelUList &mapAddressing)
 Construct by 1 to 1 mapping from the given tmp field. More...
 
 Field (const UList< vector > &mapF, const labelListList &mapAddressing, const scalarListList &weights)
 Construct by interpolative mapping from the given field. More...
 
 Field (const tmp< Field< vector >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights)
 Construct by interpolative mapping from the given tmp field. More...
 
 Field (const UList< vector > &mapF, const FieldMapper &map, const bool applyFlip=true)
 Construct by mapping from the given field. More...
 
 Field (const UList< vector > &mapF, const FieldMapper &map, const vector &defaultValue, const bool applyFlip=true)
 Construct by mapping from the given field. More...
 
 Field (const UList< vector > &mapF, const FieldMapper &map, const UList< vector > &defaultValues, const bool applyFlip=true)
 Construct by mapping from the given field. More...
 
 Field (const tmp< Field< vector >> &tmapF, const FieldMapper &map, const bool applyFlip=true)
 Construct by mapping from the given tmp field. More...
 
 Field (const tmp< Field< vector >> &tmapF, const FieldMapper &map, const vector &defaultValue, const bool applyFlip=true)
 
 Field (const tmp< Field< vector >> &tmapF, const FieldMapper &map, const UList< vector > &defaultValues, const bool applyFlip=true)
 
 Field (Field< vector > &fld, bool reuse)
 Copy construct or re-use as specified. More...
 
 Field (const tmp< Field< vector >> &tfld)
 Copy or move construct from tmp. More...
 
 Field (Istream &is)
 Construct from Istream. More...
 
 Field (const word &keyword, const dictionary &dict, const label len)
 Construct from a dictionary entry. More...
 
tmp< Field< vector > > clone () const
 Clone. More...
 
void map (const UList< vector > &mapF, const labelUList &mapAddressing)
 1 to 1 map from the given field More...
 
void map (const tmp< Field< vector >> &tmapF, const labelUList &mapAddressing)
 1 to 1 map from the given tmp field More...
 
void map (const UList< vector > &mapF, const labelListList &mapAddressing, const scalarListList &weights)
 Interpolative map from the given field. More...
 
void map (const tmp< Field< vector >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights)
 Interpolative map from the given tmp field. More...
 
void map (const UList< vector > &mapF, const FieldMapper &map, const bool applyFlip=true)
 Map from the given field. More...
 
void map (const tmp< Field< vector >> &tmapF, const FieldMapper &map, const bool applyFlip=true)
 Map from the given tmp field. More...
 
void autoMap (const FieldMapper &map, const bool applyFlip=true)
 Map from self. More...
 
void rmap (const UList< vector > &mapF, const labelUList &mapAddressing)
 1 to 1 reverse-map from the given field More...
 
void rmap (const tmp< Field< vector >> &tmapF, const labelUList &mapAddressing)
 1 to 1 reverse-map from the given tmp field More...
 
void rmap (const UList< vector > &mapF, const labelUList &mapAddressing, const UList< scalar > &weights)
 Interpolative reverse map from the given field. More...
 
void rmap (const tmp< Field< vector >> &tmapF, const labelUList &mapAddressing, const UList< scalar > &weights)
 Interpolative reverse map from the given tmp field. More...
 
void negate ()
 Negate this field (negative). More...
 
tmp< Field< cmptType > > component (const direction) const
 Return a component field of the field. More...
 
void replace (const direction, const UList< cmptType > &)
 Replace a component field of the field. More...
 
void replace (const direction, const tmp< Field< cmptType >> &)
 Replace a component field of the field. More...
 
void replace (const direction, const cmptType &)
 Replace a component field of the field. More...
 
VSForm block (const label start) const
 
tmp< Field< vector > > T () const
 Return the field transpose (only defined for second rank tensors) More...
 
void writeEntry (const word &keyword, Ostream &os) const
 Write the field as a dictionary entry. More...
 
SubField< vectorslice (const label pos, label len=-1)
 Return SubField slice (non-const access) - no range checking. More...
 
const SubField< vectorslice (const label pos, label len=-1) const
 Return SubField slice (const access) - no range checking. More...
 
SubField< vectorslice (const labelRange &range)
 Return SubField slice (non-const access) - with range checking. More...
 
const SubField< vectorslice (const labelRange &range) const
 Return SubField slice (const access) - with range checking. More...
 
void operator= (const Field< vector > &)
 Copy assignment. More...
 
void operator= (const tmp< Field< vector >> &)
 
void operator= (const UList< vector > &rhs)
 
void operator= (const SubField< vector > &rhs)
 
void operator= (const IndirectListBase< vector, Addr > &rhs)
 Copy assign from IndirectList. More...
 
void operator= (Field< vector > &&rhs)
 Move assignment. More...
 
void operator= (List< vector > &&rhs)
 
void operator= (DynamicList< vector, SizeMin > &&rhs)
 
void operator= (const vector &val)
 Value assignment. More...
 
void operator= (const Foam::zero)
 
void operator= (const VectorSpace< Form, Cmpt, nCmpt > &)
 
void operator= (const tmp< Field > &rhs)
 
void operator+= (const UList< vector > &)
 
void operator+= (const tmp< Field< vector >> &)
 
void operator+= (const vector &)
 
void operator-= (const UList< vector > &)
 
void operator-= (const tmp< Field< vector >> &)
 
void operator-= (const vector &)
 
void operator*= (const UList< scalar > &)
 
void operator*= (const tmp< Field< scalar >> &)
 
void operator*= (const scalar &)
 
void operator/= (const UList< scalar > &)
 
void operator/= (const tmp< Field< scalar >> &)
 
void operator/= (const scalar &)
 

Additional Inherited Members

- Public Types inherited from Field< vector >
typedef pTraits< vector >::cmptType cmptType
 Component type. More...
 
typedef SubField< vectorsubField
 Declare type of subField. More...
 
- Static Public Member Functions inherited from Field< vector >
static const Field< vector > & null ()
 Return nullObject reference Field. More...
 
static autoPtr< Field< vector > > New (Istream &is)
 Return a pointer to a new Field created on freestore. More...
 
static tmp< Field< vector > > NewCalculatedType (const Field< Type2 > &f)
 

Detailed Description

A NURBS 3D surface.

Source files

Definition at line 54 of file NURBS3DSurface.H.

Constructor & Destructor Documentation

◆ NURBS3DSurface() [1/7]

NURBS3DSurface ( const List< vector > &  CPs,
const label  nPointsU,
const label  nPointsV,
const NURBSbasis uBasis,
const NURBSbasis vBasis,
const word  name = "NURBS3DSurface" 
)

Construct from number of control points and basis functions.

Definition at line 308 of file NURBS3DSurface.C.

◆ NURBS3DSurface() [2/7]

NURBS3DSurface ( const List< vector > &  CPs,
const List< scalar > &  weights,
const label  nPointsU,
const label  nPointsV,
const NURBSbasis uBasis,
const NURBSbasis vBasis,
const word  name = "NURBS3DSurface" 
)

Construct from number of control points, weights and basis functions.

Definition at line 345 of file NURBS3DSurface.C.

◆ NURBS3DSurface() [3/7]

NURBS3DSurface ( const List< vector > &  CPs,
const label  nPointsU,
const label  nPointsV,
const label  uDegree,
const label  vDegree,
const label  nCPsU,
const label  nCPsV,
const word  name = "NURBS3DSurface" 
)

Construct from control points, basis degree and number of points.

Definition at line 383 of file NURBS3DSurface.C.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ NURBS3DSurface() [4/7]

NURBS3DSurface ( const List< vector > &  CPs,
const label  nPointsU,
const label  nPointsV,
const label  uDegree,
const label  vDegree,
const label  nCPsU,
const label  nCPsV,
const scalarField knotsU,
const scalarField knotsV,
const word  name = "NURBS3DSurface" 
)

Construct from control points, basis degree, knots and number of.

points

Definition at line 431 of file NURBS3DSurface.C.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ NURBS3DSurface() [5/7]

NURBS3DSurface ( const List< vector > &  CPs,
const List< scalar > &  weights,
const label  nPointsU,
const label  nPointsV,
const label  uDegree,
const label  vDegree,
const label  nCPsU,
const label  nCPsV,
const word  name = "NURBS3DSurface" 
)

Construct from control points, weights, basis degree, and number of.

points

Definition at line 481 of file NURBS3DSurface.C.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ NURBS3DSurface() [6/7]

NURBS3DSurface ( const List< vector > &  CPs,
const List< scalar > &  weights,
const label  nPointsU,
const label  nPointsV,
const label  uDegree,
const label  vDegree,
const label  nCPsU,
const label  nCPsV,
const scalarField knotsU,
const scalarField knotsV,
const word  name = "NURBS3DSurface" 
)

Construct from control points, weights, basis degree, knots and.

number of points

Definition at line 531 of file NURBS3DSurface.C.

References Foam::exit(), Foam::FatalError, and FatalErrorInFunction.

Here is the call graph for this function:

◆ NURBS3DSurface() [7/7]

Construct as copy.

◆ ~NURBS3DSurface()

~NURBS3DSurface ( )
default

Destructor.

Member Function Documentation

◆ setNrmOrientation()

void setNrmOrientation ( const vector givenNrm,
const scalar  u,
const scalar  v 
)

Definition at line 585 of file NURBS3DSurface.C.

References Foam::endl(), Foam::Info, and Foam::mag().

Here is the call graph for this function:

◆ flipNrmOrientation()

void flipNrmOrientation ( )

Flip the orientation of the nrm.

Definition at line 613 of file NURBS3DSurface.C.

◆ setCPs()

void setCPs ( const List< vector > &  CPs)

Definition at line 626 of file NURBS3DSurface.C.

◆ setWeights()

void setWeights ( const scalarList weights)

Definition at line 632 of file NURBS3DSurface.C.

◆ setName()

void setName ( const word name)

Definition at line 638 of file NURBS3DSurface.C.

References Foam::name().

Here is the call graph for this function:

◆ buildSurface()

void buildSurface ( )

Definition at line 644 of file NURBS3DSurface.C.

References NURBSbasis::basisValue(), NURBSbasis::degree(), field(), NURBSbasis::nCPs(), VectorSpace< Vector< scalar >, scalar, 3 >::zero, and Foam::Zero.

Referenced by NURBS3DSurface::invertU(), NURBS3DSurface::invertUV(), and NURBS3DSurface::invertV().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ invertU()

void invertU ( )

Definition at line 703 of file NURBS3DSurface.C.

References NURBS3DSurface::buildSurface(), Foam::endl(), Foam::Info, NURBSbasis::nCPs(), and Foam::Zero.

Here is the call graph for this function:

◆ invertV()

void invertV ( )

Definition at line 732 of file NURBS3DSurface.C.

References NURBS3DSurface::buildSurface(), Foam::endl(), Foam::Info, NURBSbasis::nCPs(), and Foam::Zero.

Here is the call graph for this function:

◆ invertUV()

void invertUV ( )

Definition at line 761 of file NURBS3DSurface.C.

References NURBS3DSurface::buildSurface(), Foam::endl(), Foam::Info, NURBSbasis::nCPs(), and Foam::Zero.

Here is the call graph for this function:

◆ makeEquidistant()

void makeEquidistant ( const label  lenAcc = 25,
const label  maxIter = 10,
const label  spacingCorrInterval = -1,
const scalar  tolerance = 1.e-5 
)

Definition at line 792 of file NURBS3DSurface.C.

References forAll, and Foam::Zero.

◆ surfacePoint()

vector surfacePoint ( const scalar &  u,
const scalar &  v 
)

Definition at line 878 of file NURBS3DSurface.C.

References Foam::Zero.

◆ findClosestSurfacePoint() [1/3]

scalarList findClosestSurfacePoint ( const vector targetPoint,
const label  maxIter = 100,
const scalar  tolerance = 1.e-6 
)

Definition at line 925 of file NURBS3DSurface.C.

References Foam::constant::physicoChemical::b, Foam::constant::universal::c, Foam::endl(), forAll, Foam::mag(), and WarningInFunction.

Here is the call graph for this function:

◆ findClosestSurfacePoint() [2/3]

tmp< vector2DField > findClosestSurfacePoint ( const vectorField targetPoints,
const label  maxIter = 100,
const scalar  tolerance = 1.e-6 
)

Definition at line 1069 of file NURBS3DSurface.C.

References Foam::constant::physicoChemical::b, Foam::constant::universal::c, Foam::endl(), forAll, Foam::Info, Foam::mag(), Foam::max(), tmp< T >::New(), Foam::reduce(), WarningInFunction, and Foam::Zero.

Here is the call graph for this function:

◆ findClosestSurfacePoint() [3/3]

scalarList findClosestSurfacePoint ( const vector targetPoint,
const scalar &  uInitGuess,
const scalar &  vInitGuess,
const label  maxIter = 100,
const scalar  tolerance = 1.e-6 
)

Definition at line 1209 of file NURBS3DSurface.C.

References Foam::bound(), Foam::endl(), Foam::mag(), and WarningInFunction.

Here is the call graph for this function:

◆ nrm()

const vector nrm ( scalar  u,
scalar  v 
)

Definition at line 1265 of file NURBS3DSurface.C.

References Foam::mag(), NURBS3DSurface::surfaceDerivativeU(), NURBS3DSurface::surfaceDerivativeV(), and Foam::Zero.

Here is the call graph for this function:

◆ genEquidistant()

List< scalarList > genEquidistant ( const label  nUPts = 100,
const label  nVPts = 100,
const label  lenAcc = 25,
const label  maxIter = 10,
const label  spacingCorrInterval = -1,
const scalar  tolerance = 1.e-5 
)

Generate points on the surface which are evenly spaced in cartesian.

coordinate distances.

Definition at line 1285 of file NURBS3DSurface.C.

References forAll, U, and Foam::Zero.

◆ checkRangeU() [1/2]

bool checkRangeU ( const scalar  u,
const label  CPI,
const label  uDegree 
) const

Definition at line 1381 of file NURBS3DSurface.C.

◆ checkRangeU() [2/2]

bool checkRangeU ( const scalar  u,
const label  CPI 
) const

Definition at line 1394 of file NURBS3DSurface.C.

◆ checkRangeV() [1/2]

bool checkRangeV ( const scalar  v,
const label  CPI,
const label  vDegree 
) const

Definition at line 1406 of file NURBS3DSurface.C.

◆ checkRangeV() [2/2]

bool checkRangeV ( const scalar  v,
const label  CPI 
) const

Definition at line 1419 of file NURBS3DSurface.C.

◆ checkRangeUV() [1/2]

bool checkRangeUV ( const scalar  v,
const scalar  u,
const label  CPI,
const label  uDegree,
const label  vDegree 
) const

Definition at line 1431 of file NURBS3DSurface.C.

◆ checkRangeUV() [2/2]

bool checkRangeUV ( const scalar  v,
const scalar  u,
const label  CPI 
) const

Definition at line 1449 of file NURBS3DSurface.C.

◆ lengthU() [1/4]

scalar lengthU ( const label  vIConst,
const label  uIStart,
const label  uIEnd 
) const

Definition at line 1463 of file NURBS3DSurface.C.

References forAll, Foam::mag(), and Foam::Zero.

Referenced by NURBS3DSurface::lengthU().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lengthU() [2/4]

scalar lengthU ( const scalar  vConst,
const scalar  uStart,
const scalar  uEnd,
const label  nPts 
) const

Definition at line 1497 of file NURBS3DSurface.C.

References forAll, Foam::mag(), and Foam::Zero.

Here is the call graph for this function:

◆ lengthU() [3/4]

scalar lengthU ( const label  vIConst) const

Definition at line 1527 of file NURBS3DSurface.C.

References NURBS3DSurface::lengthU().

Here is the call graph for this function:

◆ lengthU() [4/4]

scalar lengthU ( const scalar  vConst) const

Definition at line 1533 of file NURBS3DSurface.C.

References NURBS3DSurface::lengthU().

Here is the call graph for this function:

◆ lengthV() [1/4]

scalar lengthV ( const label  uIConst,
const label  vIStart,
const label  vIEnd 
) const

Definition at line 1540 of file NURBS3DSurface.C.

References forAll, Foam::mag(), and Foam::Zero.

Referenced by NURBS3DSurface::lengthV().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ lengthV() [2/4]

scalar lengthV ( const scalar  uConst,
const scalar  vStart,
const scalar  vEnd,
const label  nPts 
) const

Definition at line 1574 of file NURBS3DSurface.C.

References forAll, Foam::mag(), and Foam::Zero.

Here is the call graph for this function:

◆ lengthV() [3/4]

scalar lengthV ( const label  uIConst) const

Definition at line 1604 of file NURBS3DSurface.C.

References NURBS3DSurface::lengthV().

Here is the call graph for this function:

◆ lengthV() [4/4]

scalar lengthV ( const scalar  uConst) const

Definition at line 1610 of file NURBS3DSurface.C.

References NURBS3DSurface::lengthV().

Here is the call graph for this function:

◆ surfaceDerivativeU()

vector surfaceDerivativeU ( const scalar  u,
const scalar  v 
) const

Surface derivative wrt u at point u,v.

Definition at line 1619 of file NURBS3DSurface.C.

References Foam::bound(), and Foam::Zero.

Referenced by NURBS3DSurface::nrm().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ surfaceDerivativeV()

vector surfaceDerivativeV ( const scalar  u,
const scalar  v 
) const

Surface derivative wrt v at point u,v.

Definition at line 1661 of file NURBS3DSurface.C.

References Foam::bound(), and Foam::Zero.

Referenced by NURBS3DSurface::nrm().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ surfaceDerivativeUV()

vector surfaceDerivativeUV ( const scalar  u,
const scalar  v 
) const

Surface second derivative wrt u and v at point u,v.

Definition at line 1703 of file NURBS3DSurface.C.

References Foam::bound(), and Foam::Zero.

Here is the call graph for this function:

◆ surfaceDerivativeUU()

vector surfaceDerivativeUU ( const scalar  u,
const scalar  v 
) const

Surface second derivative wrt u at point u,v.

Definition at line 1765 of file NURBS3DSurface.C.

References Foam::bound(), and Foam::Zero.

Here is the call graph for this function:

◆ surfaceDerivativeVV()

vector surfaceDerivativeVV ( const scalar  u,
const scalar  v 
) const

Surface second derivative wrt v at point u,v.

Definition at line 1821 of file NURBS3DSurface.C.

References Foam::bound(), and Foam::Zero.

Here is the call graph for this function:

◆ surfaceDerivativeCP()

scalar surfaceDerivativeCP ( const scalar  u,
const scalar  v,
const label  CPI 
) const

Surface derivative wrt the weight of CPI at point u,v.

Definition at line 1877 of file NURBS3DSurface.C.

References Foam::Zero.

◆ surfaceDerivativeW()

vector surfaceDerivativeW ( const scalar  u,
const scalar  v,
const label  CPI 
) const

Surface derivative wrt WI at point u,v.

Definition at line 1919 of file NURBS3DSurface.C.

References Foam::Zero.

◆ lengthDerivativeU()

scalar lengthDerivativeU ( const scalar  vConst,
const scalar  uStart,
const scalar  uEnd,
const label  nPts 
) const

Surface derivative wrt u length along v=const contour range.

Definition at line 1962 of file NURBS3DSurface.C.

References forAll, Foam::mag(), and Foam::Zero.

Here is the call graph for this function:

◆ lengthDerivativeV()

scalar lengthDerivativeV ( const scalar  uConst,
const scalar  vStart,
const scalar  vEnd,
const label  nPts 
) const

Surface derivative wrt v length along u=const contour range.

Definition at line 2000 of file NURBS3DSurface.C.

References forAll, Foam::mag(), and Foam::Zero.

Here is the call graph for this function:

◆ getBasisFunctionU()

const NURBSbasis& getBasisFunctionU ( ) const
inline

Get basis function.

Definition at line 457 of file NURBS3DSurface.H.

◆ getBasisFunctionV()

const NURBSbasis& getBasisFunctionV ( ) const
inline

Definition at line 462 of file NURBS3DSurface.H.

◆ getCPs()

const List<vector>& getCPs ( ) const
inline

Get CPs.

Definition at line 468 of file NURBS3DSurface.H.

◆ getWeights()

const scalarList& getWeights ( ) const
inline

Get weights.

Definition at line 474 of file NURBS3DSurface.H.

◆ getParametricCoordinatesU()

const scalarList& getParametricCoordinatesU ( ) const
inline

Get parametric coordinates.

Definition at line 480 of file NURBS3DSurface.H.

◆ getParametricCoordinatesV()

const scalarList& getParametricCoordinatesV ( ) const
inline

Definition at line 485 of file NURBS3DSurface.H.

◆ getName()

const word& getName ( ) const
inline

Get name.

Definition at line 491 of file NURBS3DSurface.H.

◆ getNPtsU()

label getNPtsU ( ) const
inline

Get number of point in u direction.

Definition at line 497 of file NURBS3DSurface.H.

◆ getNPtsV()

label getNPtsV ( ) const
inline

Get number of point in u direction.

Definition at line 503 of file NURBS3DSurface.H.

◆ getBoundaryCPIDs()

const labelList & getBoundaryCPIDs ( )

Get IDs of boundary control points.

Definition at line 2039 of file NURBS3DSurface.C.

References NURBSbasis::nCPs().

Referenced by NURBS3DSurface::getBoundaryCPIs(), and NURBS3DSurface::whichBoundaryCPI().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ getBoundaryCPIs()

const labelList & getBoundaryCPIs ( )

Definition at line 2077 of file NURBS3DSurface.C.

References NURBS3DSurface::getBoundaryCPIDs().

Here is the call graph for this function:

◆ whichBoundaryCPI()

const label & whichBoundaryCPI ( const label &  globalCPI)

Get the boundary CP ID based on the global CP ID.

Definition at line 2083 of file NURBS3DSurface.C.

References NURBS3DSurface::getBoundaryCPIDs().

Here is the call graph for this function:

◆ nrmOrientation()

label nrmOrientation ( ) const
inline

Return the nrm sgn relation to the u=0 nrm.

Definition at line 517 of file NURBS3DSurface.H.

◆ givenInitNrm()

const vector& givenInitNrm ( ) const
inline

Return the initial nrmal given to compare to the Curve's nrmals.

Definition at line 523 of file NURBS3DSurface.H.

◆ getCPsUCPIs()

const labelList& getCPsUCPIs ( ) const
inline

Return ID in u direction for a given cp ID.

Definition at line 529 of file NURBS3DSurface.H.

◆ getCPsVCPIs()

const labelList& getCPsVCPIs ( ) const
inline

Return ID in v direction for a given cp ID.

Definition at line 535 of file NURBS3DSurface.H.

◆ write() [1/3]

void write ( )

Write curve to file.

Definition at line 2096 of file NURBS3DSurface.C.

◆ write() [2/3]

void write ( const word  fileName)

Definition at line 2102 of file NURBS3DSurface.C.

References Foam::endl(), forAll, and UPstream::master().

Here is the call graph for this function:

◆ write() [3/3]

void write ( const fileName  dirName,
const fileName  fileName 
)

Definition at line 2159 of file NURBS3DSurface.C.

References Foam::endl(), forAll, and UPstream::master().

Here is the call graph for this function:

◆ writeWParses() [1/3]

void writeWParses ( )

Definition at line 2216 of file NURBS3DSurface.C.

◆ writeWParses() [2/3]

void writeWParses ( const word  fileName)

Definition at line 2222 of file NURBS3DSurface.C.

References Foam::endl(), forAll, and UPstream::master().

Here is the call graph for this function:

◆ writeWParses() [3/3]

void writeWParses ( const fileName  dirName,
const fileName  fileName 
)

Definition at line 2282 of file NURBS3DSurface.C.

References Foam::endl(), forAll, and UPstream::master().

Here is the call graph for this function:

◆ writeVTK()

void writeVTK ( const fileName  vtkDirName,
const fileName  vtkFileName 
)

Definition at line 2345 of file NURBS3DSurface.C.

References Foam::exit(), fileName::ext(), Foam::FatalError, FatalErrorInFunction, UPstream::master(), word::null, and writer().

Here is the call graph for this function:

The documentation for this class was generated from the following files: