A NURBS 3D surface. More...
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< vector2DField > | findClosestSurfacePoint (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< 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. 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 NURBSbasis & | getBasisFunctionU () const |
Get basis function. More... | |
const NURBSbasis & | getBasisFunctionV () const |
const List< vector > & | getCPs () const |
Get CPs. More... | |
const scalarList & | getWeights () const |
Get weights. More... | |
const scalarList & | getParametricCoordinatesU () const |
Get parametric coordinates. More... | |
const scalarList & | getParametricCoordinatesV () const |
const word & | getName () 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 labelList & | getBoundaryCPIDs () |
Get IDs of boundary control points. More... | |
const labelList & | getBoundaryCPIs () |
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 vector & | givenInitNrm () const |
Return the initial nrmal given to compare to the Curve's nrmals. More... | |
const labelList & | getCPsUCPIs () const |
Return ID in u direction for a given cp ID. More... | |
const labelList & | getCPsVCPIs () 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< Type > | |
constexpr | Field () noexcept |
Construct null. More... | |
Field (const label len) | |
Construct given size. More... | |
Field (const label len, const Type &val) | |
Construct given size and initial value. More... | |
Field (const label len, const zero) | |
Construct given size and initial values of zero. More... | |
Field (const Field< Type > &fld) | |
Copy construct. More... | |
Field (const UList< Type > &list) | |
Copy construct from UList<Type> More... | |
template<class Addr > | |
Field (const IndirectListBase< Type, Addr > &list) | |
Copy construct from IndirectList. More... | |
Field (Field< Type > &&fld) | |
Move construct from Field. More... | |
Field (List< Type > &&list) | |
Move construct from List. More... | |
template<int SizeMin> | |
Field (DynamicList< Type, SizeMin > &&list) | |
Move construct from DynamicList. More... | |
Field (const UList< Type > &mapF, const labelUList &mapAddressing) | |
Construct by 1 to 1 mapping from the given field. More... | |
Field (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) | |
Construct by 1 to 1 mapping from the given tmp field. More... | |
Field (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights) | |
Construct by interpolative mapping from the given field. More... | |
Field (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights) | |
Construct by interpolative mapping from the given tmp field. More... | |
Field (const UList< Type > &mapF, const FieldMapper &map, const bool applyFlip=true) | |
Construct by mapping from the given field. More... | |
Field (const UList< Type > &mapF, const FieldMapper &map, const Type &defaultValue, const bool applyFlip=true) | |
Construct by mapping from the given field. More... | |
Field (const UList< Type > &mapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true) | |
Construct by mapping from the given field. More... | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const bool applyFlip=true) | |
Construct by mapping from the given tmp field. More... | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const Type &defaultValue, const bool applyFlip=true) | |
Field (const tmp< Field< Type >> &tmapF, const FieldMapper &map, const UList< Type > &defaultValues, const bool applyFlip=true) | |
Field (Field< Type > &fld, bool reuse) | |
Copy construct or re-use as specified. More... | |
Field (const tmp< Field< Type >> &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< Type > > | clone () const |
Clone. More... | |
void | map (const UList< Type > &mapF, const labelUList &mapAddressing) |
1 to 1 map from the given field More... | |
void | map (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) |
1 to 1 map from the given tmp field More... | |
void | map (const UList< Type > &mapF, const labelListList &mapAddressing, const scalarListList &weights) |
Interpolative map from the given field. More... | |
void | map (const tmp< Field< Type >> &tmapF, const labelListList &mapAddressing, const scalarListList &weights) |
Interpolative map from the given tmp field. More... | |
void | map (const UList< Type > &mapF, const FieldMapper &map, const bool applyFlip=true) |
Map from the given field. More... | |
void | map (const tmp< Field< Type >> &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< Type > &mapF, const labelUList &mapAddressing) |
1 to 1 reverse-map from the given field More... | |
void | rmap (const tmp< Field< Type >> &tmapF, const labelUList &mapAddressing) |
1 to 1 reverse-map from the given tmp field More... | |
void | rmap (const UList< Type > &mapF, const labelUList &mapAddressing, const UList< scalar > &weights) |
Interpolative reverse map from the given field. More... | |
void | rmap (const tmp< Field< Type >> &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... | |
template<class VSForm > | |
VSForm | block (const label start) const |
tmp< Field< Type > > | 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... | |
void | operator= (const Field< Type > &) |
Copy assignment. More... | |
void | operator= (const tmp< Field< Type >> &) |
void | operator= (const UList< Type > &) |
void | operator= (const SubField< Type > &) |
void | operator= (Field< Type > &&rhs) |
Move assignment. More... | |
void | operator= (List< Type > &&rhs) |
template<int SizeMin> | |
void | operator= (DynamicList< Type, SizeMin > &&rhs) |
void | operator= (const Type &val) |
Value assignment. More... | |
void | operator= (const zero) |
template<class Form , class Cmpt , direction nCmpt> | |
void | operator= (const VectorSpace< Form, Cmpt, nCmpt > &) |
void | operator+= (const UList< Type > &) |
void | operator+= (const tmp< Field< Type >> &) |
void | operator-= (const UList< Type > &) |
void | operator-= (const tmp< Field< Type >> &) |
void | operator*= (const UList< scalar > &) |
void | operator*= (const tmp< Field< scalar >> &) |
void | operator/= (const UList< scalar > &) |
void | operator/= (const tmp< Field< scalar >> &) |
void | operator+= (const Type &) |
void | operator-= (const Type &) |
void | operator*= (const scalar &) |
void | operator/= (const scalar &) |
template<class Type> | |
void | operator= (const tmp< Field > &rhs) |
Additional Inherited Members | |
Public Types inherited from Field< Type > | |
typedef pTraits< Type >::cmptType | cmptType |
Component type. More... | |
typedef SubField< Type > | subField |
Declare type of subField. More... | |
Static Public Member Functions inherited from Field< Type > | |
static const Field< Type > & | null () |
Return nullObject reference field. More... | |
static autoPtr< Field< Type > > | New (Istream &is) |
Return a pointer to a new Field created on freestore. More... | |
template<class Type2 > | |
static tmp< Field< Type > > | NewCalculatedType (const Field< Type2 > &f) |
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 | ( | 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 | ( | 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.
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.
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.
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.
NURBS3DSurface | ( | const NURBS3DSurface & | ) |
Construct as copy.
|
default |
Destructor.
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().
void flipNrmOrientation | ( | ) |
Flip the orientation of the nrm.
Definition at line 613 of file NURBS3DSurface.C.
Definition at line 626 of file NURBS3DSurface.C.
void setWeights | ( | const scalarList & | weights | ) |
Definition at line 632 of file NURBS3DSurface.C.
void setName | ( | const word & | name | ) |
Definition at line 638 of file NURBS3DSurface.C.
References Foam::name().
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().
void invertU | ( | ) |
Definition at line 703 of file NURBS3DSurface.C.
References NURBS3DSurface::buildSurface(), Foam::endl(), Foam::Info, NURBSbasis::nCPs(), and Foam::Zero.
void invertV | ( | ) |
Definition at line 732 of file NURBS3DSurface.C.
References NURBS3DSurface::buildSurface(), Foam::endl(), Foam::Info, NURBSbasis::nCPs(), and Foam::Zero.
void invertUV | ( | ) |
Definition at line 761 of file NURBS3DSurface.C.
References NURBS3DSurface::buildSurface(), Foam::endl(), Foam::Info, NURBSbasis::nCPs(), and Foam::Zero.
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.
vector surfacePoint | ( | const scalar & | u, |
const scalar & | v | ||
) |
Definition at line 878 of file NURBS3DSurface.C.
References Foam::Zero.
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.
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.
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.
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.
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.
bool checkRangeU | ( | const scalar | u, |
const label | CPI, | ||
const label | uDegree | ||
) | const |
Definition at line 1381 of file NURBS3DSurface.C.
bool checkRangeU | ( | const scalar | u, |
const label | CPI | ||
) | const |
Definition at line 1394 of file NURBS3DSurface.C.
bool checkRangeV | ( | const scalar | v, |
const label | CPI, | ||
const label | vDegree | ||
) | const |
Definition at line 1406 of file NURBS3DSurface.C.
bool checkRangeV | ( | const scalar | v, |
const label | CPI | ||
) | const |
Definition at line 1419 of file NURBS3DSurface.C.
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.
bool checkRangeUV | ( | const scalar | v, |
const scalar | u, | ||
const label | CPI | ||
) | const |
Definition at line 1449 of file NURBS3DSurface.C.
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().
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.
scalar lengthU | ( | const label | vIConst | ) | const |
Definition at line 1527 of file NURBS3DSurface.C.
References NURBS3DSurface::lengthU().
scalar lengthU | ( | const scalar | vConst | ) | const |
Definition at line 1533 of file NURBS3DSurface.C.
References NURBS3DSurface::lengthU().
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().
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.
scalar lengthV | ( | const label | uIConst | ) | const |
Definition at line 1604 of file NURBS3DSurface.C.
References NURBS3DSurface::lengthV().
scalar lengthV | ( | const scalar | uConst | ) | const |
Definition at line 1610 of file NURBS3DSurface.C.
References NURBS3DSurface::lengthV().
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().
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().
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.
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.
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.
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.
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.
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.
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.
|
inline |
Get basis function.
Definition at line 457 of file NURBS3DSurface.H.
|
inline |
Definition at line 462 of file NURBS3DSurface.H.
Get CPs.
Definition at line 468 of file NURBS3DSurface.H.
|
inline |
Get weights.
Definition at line 474 of file NURBS3DSurface.H.
|
inline |
Get parametric coordinates.
Definition at line 480 of file NURBS3DSurface.H.
|
inline |
Definition at line 485 of file NURBS3DSurface.H.
|
inline |
Get name.
Definition at line 491 of file NURBS3DSurface.H.
|
inline |
Get number of point in u direction.
Definition at line 497 of file NURBS3DSurface.H.
|
inline |
Get number of point in u direction.
Definition at line 503 of file NURBS3DSurface.H.
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().
const labelList & getBoundaryCPIs | ( | ) |
Definition at line 2077 of file NURBS3DSurface.C.
References NURBS3DSurface::getBoundaryCPIDs().
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().
|
inline |
Return the nrm sgn relation to the u=0 nrm.
Definition at line 517 of file NURBS3DSurface.H.
|
inline |
Return the initial nrmal given to compare to the Curve's nrmals.
Definition at line 523 of file NURBS3DSurface.H.
|
inline |
Return ID in u direction for a given cp ID.
Definition at line 529 of file NURBS3DSurface.H.
|
inline |
Return ID in v direction for a given cp ID.
Definition at line 535 of file NURBS3DSurface.H.
void write | ( | ) |
Write curve to file.
Definition at line 2096 of file NURBS3DSurface.C.
void write | ( | const word | fileName | ) |
Definition at line 2102 of file NURBS3DSurface.C.
References Foam::endl(), forAll, and UPstream::master().
Definition at line 2159 of file NURBS3DSurface.C.
References Foam::endl(), forAll, and UPstream::master().
void writeWParses | ( | ) |
Definition at line 2216 of file NURBS3DSurface.C.
void writeWParses | ( | const word | fileName | ) |
Definition at line 2222 of file NURBS3DSurface.C.
References Foam::endl(), forAll, and UPstream::master().
Definition at line 2282 of file NURBS3DSurface.C.
References Foam::endl(), forAll, and UPstream::master().
Definition at line 2345 of file NURBS3DSurface.C.
References Foam::exit(), fileName::ext(), Foam::FatalError, FatalErrorInFunction, UPstream::master(), and word::null.