|
Nektar++
|
base class for CAD curves. More...
#include <CADCurve.h>
Public Member Functions | |
| CADCurve () | |
| Default constructor. | |
| ~CADCurve () override | |
| virtual std::array< NekDouble, 2 > | GetBounds ()=0 |
| Returns the minimum and maximum parametric coords t of the curve. | |
| virtual void | GetBounds (NekDouble &tmin, NekDouble &tmax)=0 |
| Returns the minimum and maximum parametric coords t of the curve. | |
| virtual NekDouble | Length (NekDouble ti, NekDouble tf)=0 |
Calculates the arclength between the two paremetric points ti and tf. ti must be less than tf. | |
| virtual std::array< NekDouble, 3 > | P (NekDouble t)=0 |
Gets the location (x,y,z) in an array out of the curve at point t. | |
| virtual void | P (NekDouble t, NekDouble &x, NekDouble &y, NekDouble &z)=0 |
Gets the location (x,y,z) in an array out of the curve at point t. | |
| virtual std::array< NekDouble, 9 > | D2 (NekDouble t)=0 |
| Gets the second derivatives at t. | |
| virtual NekDouble | Curvature (NekDouble t)=0 |
| Calculates the radius of curvature of the curve at point t. | |
| virtual NekDouble | tAtArcLength (NekDouble s)=0 |
Calculates the parametric coordinate and arclength location defined by s. | |
| virtual std::array< NekDouble, 6 > | GetMinMax ()=0 |
| Gets the start and end of the curve. | |
| void | SetAdjSurf (std::pair< CADSurfSharedPtr, CADOrientation::Orientation > i) |
| set the ids of the surfaces either side of the curve | |
| std::vector< std::pair< std::weak_ptr< CADSurf >, CADOrientation::Orientation > > | GetAdjSurf () |
| returns the ids of surfaces bound by this curve as well as their Orientation with respect to the loop of curves | |
| NekDouble | GetTotLength () |
| returns lenght of the curve | |
| void | SetVert (std::vector< CADVertSharedPtr > &falVert) |
| assign ids of end vertices in main cad | |
| std::vector< CADVertSharedPtr > | GetVertex () |
| get the vertices that are the ends of the curve, which are in the main cad list | |
| virtual NekDouble | loct (std::array< NekDouble, 3 > xyz, NekDouble &t)=0 |
| locates a point in the parametric space. returns the distance to the point and passes t by reference and updates it | |
| virtual NekDouble | loct (std::array< NekDouble, 3 > xyz, NekDouble &t, NekDouble cf, NekDouble cl)=0 |
| locates a point in the parametric space. returns the distance to the point and passes t by reference and updates it This is in the parametric bounds of the Curve and is important for periodic surfaces (Circles) | |
| virtual NekDouble | GetMinDistance (std::array< NekDouble, 3 > &xyz)=0 |
Locates a point xyz in the parametric space. returns the distance to the point. | |
| CADOrientation::Orientation | GetOrienationWRT (int surf) |
| Returns the orientation of the curve with respect to a given surface by id surf. | |
| std::array< NekDouble, 3 > | NormalWRT (NekDouble t, int surf) |
| Returns the normal to the curve which is orientate with respect to the surface surf. | |
| virtual std::array< NekDouble, 3 > | N (NekDouble t)=0 |
| Returns the normal to a curve, it will always point in the concave direction. | |
| virtual std::array< NekDouble, 6 > | BoundingBox (NekDouble scale)=0 |
| Returns the bounding box of a curve enlarged by 5e-3mm * scale. | |
Public Member Functions inherited from Nektar::SpatialDomains::CADObject | |
| CADObject () | |
| Default constructor. | |
| virtual | ~CADObject () |
| int | GetId () |
| Return ID of the CAD object. | |
| CADType::cadType | GetType () |
| Get the type of the CAD object. | |
| virtual CADOrientation::Orientation | Orientation () |
| Get the Orientation of the CAD object. | |
| void | SetName (std::string i) |
| Give the CAD object a string name. | |
| std::string | GetName () |
| Get the name of a CAD object. | |
| void | SetLogger (Logger &log) |
| Set the logger for this CAD object. | |
Protected Attributes | |
| NekDouble | m_length |
| Length of edge. | |
| std::vector< std::pair< std::weak_ptr< CADSurf >, CADOrientation::Orientation > > | m_adjSurfs |
| List of surfaces which this curve belongs to. | |
| std::vector< CADVertSharedPtr > | m_mainVerts |
| list of end vertices | |
Protected Attributes inherited from Nektar::SpatialDomains::CADObject | |
| int | m_id |
| ID of the vert. | |
| CADType::cadType | m_type |
| type of the cad object | |
| CADOrientation::Orientation | m_orientation |
| orientation of the CADObject | |
| std::string | m_name |
| string name of the cad | |
| Logger | m_log |
| Logger. | |
Friends | |
| class | MemoryManager< CADCurve > |
base class for CAD curves.
Definition at line 57 of file CADCurve.h.
|
inline |
Default constructor.
Definition at line 65 of file CADCurve.h.
References Nektar::SpatialDomains::CADType::eCurve, and Nektar::SpatialDomains::CADObject::m_type.
|
inlineoverride |
Definition at line 70 of file CADCurve.h.
|
pure virtual |
Returns the bounding box of a curve enlarged by 5e-3mm * scale.
Implemented in Nektar::SpatialDomains::CADCurveOCE.
Calculates the radius of curvature of the curve at point t.
Implemented in Nektar::SpatialDomains::CADCurveOCE.
Gets the second derivatives at t.
Implemented in Nektar::SpatialDomains::CADCurveOCE.
|
inline |
returns the ids of surfaces bound by this curve as well as their Orientation with respect to the loop of curves
Definition at line 157 of file CADCurve.h.
References m_adjSurfs.
|
pure virtual |
Returns the minimum and maximum parametric coords t of the curve.
Implemented in Nektar::SpatialDomains::CADCurveOCE.
|
pure virtual |
Returns the minimum and maximum parametric coords t of the curve.
Implemented in Nektar::SpatialDomains::CADCurveOCE.
|
pure virtual |
Locates a point xyz in the parametric space. returns the distance to the point.
Implemented in Nektar::SpatialDomains::CADCurveOCE.
|
pure virtual |
Gets the start and end of the curve.
Implemented in Nektar::SpatialDomains::CADCurveOCE.
| CADOrientation::Orientation CADCurve::GetOrienationWRT | ( | int | surf | ) |
Returns the orientation of the curve with respect to a given surface by id surf.
Definition at line 87 of file CADCurve.cpp.
References ASSERTL0, Nektar::SpatialDomains::CADOrientation::eUnknown, and m_adjSurfs.
|
inline |
returns lenght of the curve
Definition at line 165 of file CADCurve.h.
References m_length.
|
inline |
get the vertices that are the ends of the curve, which are in the main cad list
Definition at line 182 of file CADCurve.h.
References m_mainVerts.
|
pure virtual |
Calculates the arclength between the two paremetric points ti and tf. ti must be less than tf.
| ti | First parametric coordinate. |
| tf | Second parametric coordinate. |
ti and tf. Implemented in Nektar::SpatialDomains::CADCurveOCE.
|
pure virtual |
locates a point in the parametric space. returns the distance to the point and passes t by reference and updates it
Implemented in Nektar::SpatialDomains::CADCurveOCE.
|
pure virtual |
locates a point in the parametric space. returns the distance to the point and passes t by reference and updates it This is in the parametric bounds of the Curve and is important for periodic surfaces (Circles)
Implemented in Nektar::SpatialDomains::CADCurveOCE.
Returns the normal to a curve, it will always point in the concave direction.
Implemented in Nektar::SpatialDomains::CADCurveOCE.
Returns the normal to the curve which is orientate with respect to the surface surf.
Definition at line 44 of file CADCurve.cpp.
References ASSERTL0, Nektar::SpatialDomains::CADOrientation::eBackwards, m_adjSurfs, N, Nektar::LibUtilities::P, and tinysimd::sqrt().
Gets the location (x,y,z) in an array out of the curve at point t.
| t | Parametric coordinate |
Implemented in Nektar::SpatialDomains::CADCurveOCE.
Referenced by class_topology.Topology::Serial_Compute().
|
pure virtual |
Gets the location (x,y,z) in an array out of the curve at point t.
| t | Parametric coordinate |
Implemented in Nektar::SpatialDomains::CADCurveOCE.
Referenced by class_topology.Topology::Serial_Compute().
|
inline |
set the ids of the surfaces either side of the curve
Definition at line 147 of file CADCurve.h.
References m_adjSurfs.
|
inline |
assign ids of end vertices in main cad
Definition at line 173 of file CADCurve.h.
References m_mainVerts.
Calculates the parametric coordinate and arclength location defined by s.
| s | Arclength location. |
Implemented in Nektar::SpatialDomains::CADCurveOCE.
|
friend |
Definition at line 251 of file CADCurve.h.
|
protected |
List of surfaces which this curve belongs to.
Definition at line 242 of file CADCurve.h.
Referenced by GetAdjSurf(), GetOrienationWRT(), NormalWRT(), and SetAdjSurf().
|
protected |
Length of edge.
Definition at line 239 of file CADCurve.h.
Referenced by GetTotLength(), and Nektar::SpatialDomains::CADCurveOCE::Initialise().
|
protected |
list of end vertices
Definition at line 244 of file CADCurve.h.
Referenced by GetVertex(), and SetVert().