|
Nektar++
|
base class for a cad surface More...
#include <CADSurf.h>
Public Member Functions | |
| CADSurf () | |
| Default constructor. | |
| ~CADSurf () override | |
| std::vector< EdgeLoopSharedPtr > | GetEdges () |
| Get the loop structures which bound the cad surface. | |
| void | SetEdges (std::vector< EdgeLoopSharedPtr > ein) |
| Set the edge loop. | |
| virtual std::array< NekDouble, 4 > | GetBounds ()=0 |
| Get the limits of the parametric space for the surface. | |
| virtual void | GetBounds (NekDouble &umin, NekDouble &umax, NekDouble &vmin, NekDouble &vmax)=0 |
| Get the limits of the parametric space for the surface. | |
| virtual std::array< NekDouble, 3 > | N (std::array< NekDouble, 2 > uv)=0 |
| Get the normal vector at parametric point u,v. | |
| virtual std::array< NekDouble, 9 > | D1 (std::array< NekDouble, 2 > uv)=0 |
| Get the set of first derivatives at parametric point u,v. | |
| virtual std::array< NekDouble, 18 > | D2 (std::array< NekDouble, 2 > uv)=0 |
| Get the set of second derivatives at parametric point u,v. | |
| virtual std::array< NekDouble, 3 > | P (std::array< NekDouble, 2 > uv)=0 |
| Get the x,y,z at parametric point u,v. | |
| virtual void | P (std::array< NekDouble, 2 > uv, NekDouble &x, NekDouble &y, NekDouble &z)=0 |
| Get the x,y,z at parametric point u,v. | |
| virtual std::array< NekDouble, 2 > | locuv (std::array< NekDouble, 3 > p, NekDouble &dist)=0 |
| Performs a reverse look up to find u,v and x,y,z. if xyz is off the surface it will return the closest point. | |
| std::array< NekDouble, 2 > | locuv (std::array< NekDouble, 3 > p) |
| overload function of locuv ommiting the dist parameter in this case if the projection is greater than a certain distance it will produce a warning. To do large distance projection use the other locuv method | |
| virtual std::array< NekDouble, 2 > | locuv (std::array< NekDouble, 3 > p, NekDouble &dist, NekDouble Umin, NekDouble Usup, NekDouble Vmin, NekDouble Vsup)=0 |
| Performs a reverse look up to find u,v and x,y,z. if xyz is off the surface it will return the closest point. | |
| virtual std::array< NekDouble, 6 > | BoundingBox ()=0 |
| Returns the bounding box of the surface. | |
| virtual std::array< NekDouble, 6 > | BoundingBox (NekDouble scale)=0 |
| Returns the bounding box of the surface that scales the enlargement and the meshing parameters * scale. | |
| virtual NekDouble | Curvature (std::array< NekDouble, 2 > uv)=0 |
| returns curvature at point uv | |
| virtual std::array< NekDouble, 2 > | locuvFrom (std::array< NekDouble, 3 > p, std::array< NekDouble, 2 > guess, NekDouble &dist) |
Curvature and position at uv together. | |
| virtual std::array< NekDouble, 2 > | locuvOnCurve (const CADCurveSharedPtr &curve, NekDouble t) |
| virtual NekDouble | CurvatureAndPosition (std::array< NekDouble, 2 > uv, std::array< NekDouble, 3 > &loc) |
| virtual bool | IsPlanar ()=0 |
| Is the surface defined by a planar surface (i.e not nurbs and is flat) | |
| CADOrientation::Orientation | Orientation () override |
| query reversed normal | |
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. | |
| 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. | |
Static Public Member Functions | |
| static void | OrientateEdges (CADSurfSharedPtr surf, std::vector< EdgeLoopSharedPtr > &ein) |
| Static function which orientates the edge loop on a surface. | |
Protected Member Functions | |
| virtual void | Test (std::array< NekDouble, 2 > uv)=0 |
| Function which tests the the value of uv used is within the surface. | |
Protected Attributes | |
| std::vector< EdgeLoopSharedPtr > | m_edges |
| List of bounding edges in loops with orientation. | |
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< CADSurf > |
|
inline |
Default constructor.
Definition at line 77 of file CADSurf.h.
References Nektar::SpatialDomains::CADOrientation::eForwards, Nektar::SpatialDomains::CADType::eSurf, Nektar::SpatialDomains::CADObject::m_orientation, and Nektar::SpatialDomains::CADObject::m_type.
|
inlineoverride |
|
pure virtual |
Returns the bounding box of the surface.
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
pure virtual |
Returns the bounding box of the surface that scales the enlargement and the meshing parameters * scale.
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
pure virtual |
returns curvature at point uv
Implemented in Nektar::SpatialDomains::CADSurfOCE.
Referenced by CurvatureAndPosition().
|
inlinevirtual |
Reimplemented in Nektar::SpatialDomains::CADSurfOCE.
Definition at line 260 of file CADSurf.h.
References Curvature(), and Nektar::LibUtilities::P.
|
pure virtual |
Get the set of first derivatives at parametric point u,v.
| uv | Array of u and v parametric coords. |
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
pure virtual |
Get the set of second derivatives at parametric point u,v.
| uv | array of u and v parametric coords |
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
pure virtual |
Get the limits of the parametric space for the surface.
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
pure virtual |
Get the limits of the parametric space for the surface.
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
inline |
Get the loop structures which bound the cad surface.
Definition at line 96 of file CADSurf.h.
References m_edges.
|
pure virtual |
Is the surface defined by a planar surface (i.e not nurbs and is flat)
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
inline |
overload function of locuv ommiting the dist parameter in this case if the projection is greater than a certain distance it will produce a warning. To do large distance projection use the other locuv method
Definition at line 185 of file CADSurf.h.
|
pure virtual |
Performs a reverse look up to find u,v and x,y,z. if xyz is off the surface it will return the closest point.
| p | Array of xyz location |
Implemented in Nektar::SpatialDomains::CADSurfOCE.
Referenced by locuv(), locuvFrom(), locuvOnCurve(), and Nektar::SpatialDomains::CADSurfOCE::locuvOnCurve().
|
pure virtual |
Performs a reverse look up to find u,v and x,y,z. if xyz is off the surface it will return the closest point.
| p | Array of xyz location |
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
inlinevirtual |
Curvature and position at uv together.
The octree wants both at every one of its curvature samples, of which there are millions, and a CAD engine that derives curvature from the surface's second derivatives has the position in hand already. This default asks twice, which is what the callers used to do; an engine that can do better overrides it.
The \( (u,v) \) of the point at parameter t on curve, which must be one of this surface's bounding curves.
Projecting a point back onto the surface it is already known to lie on is expensive and unnecessary where the CAD engine stores the curve's own representation in the surface's parameter plane. This default does the projection; an engine that keeps that representation overrides it.
As locuv(), but starting the search from guess.
Finding the parameters of a point on a surface is an iterative minimisation, and the cost of it depends strongly on where it starts. Callers placing a run of points that lie near one another – the interior nodes of one high-order element, say – can hand each the answer from the last. The default ignores the guess.
Reimplemented in Nektar::SpatialDomains::CADSurfOCE.
Definition at line 249 of file CADSurf.h.
References locuv(), and Nektar::void.
|
virtual |
Reimplemented in Nektar::SpatialDomains::CADSurfOCE.
Definition at line 50 of file CADSurf.cpp.
References locuv().
|
pure virtual |
Get the normal vector at parametric point u,v.
| uv | Array of u and v parametric coords. |
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
static |
Static function which orientates the edge loop on a surface.
Definition at line 56 of file CADSurf.cpp.
References ASSERTL0, Nektar::SpatialDomains::CADOrientation::eForwards, N, Nektar::LibUtilities::P, and tinysimd::sqrt().
Referenced by Nektar::SpatialDomains::CADSystemOCE::AddSurf().
|
inlineoverridevirtual |
query reversed normal
Reimplemented from Nektar::SpatialDomains::CADObject.
Definition at line 277 of file CADSurf.h.
References Nektar::SpatialDomains::CADObject::m_orientation.
|
pure virtual |
Get the x,y,z at parametric point u,v.
| uv | Array of u and v parametric coords. |
Implemented in Nektar::SpatialDomains::CADSurfOCE.
Referenced by class_topology.Topology::Serial_Compute().
|
pure virtual |
Get the x,y,z at parametric point u,v.
| uv | Array of u and v parametric coords. |
Implemented in Nektar::SpatialDomains::CADSurfOCE.
Referenced by class_topology.Topology::Serial_Compute().
|
inline |
|
protectedpure virtual |
Function which tests the the value of uv used is within the surface.
Implemented in Nektar::SpatialDomains::CADSurfOCE.
|
friend |
|
protected |
List of bounding edges in loops with orientation.
Definition at line 284 of file CADSurf.h.
Referenced by GetEdges(), and SetEdges().