|
Nektar++
|
Prescribed zone: applies equation to every point. More...
#include <Zones.h>
Public Member Functions | |
| ZonePrescribe (int id, int domainID, const CompositeMap &domain, const int coordDim, LibUtilities::EquationSharedPtr xDeform, LibUtilities::EquationSharedPtr yDeform, LibUtilities::EquationSharedPtr zDeform) | |
| ~ZonePrescribe () override=default | |
| Default destructor. More... | |
| NekDouble | GetXDeform (NekDouble x, NekDouble y, NekDouble z, NekDouble t) const |
| NekDouble | GetYDeform (NekDouble x, NekDouble y, NekDouble z, NekDouble t) const |
| NekDouble | GetZDeform (NekDouble x, NekDouble y, NekDouble z, NekDouble t) const |
| LibUtilities::EquationSharedPtr | GetXDeformEquation () const |
| Returns the equation for the prescribed motion in the x-coordinate. More... | |
| LibUtilities::EquationSharedPtr | GetYDeformEquation () const |
| Returns the equation for the prescribed motion in the y-coordinate. More... | |
| LibUtilities::EquationSharedPtr | GetZDeformEquation () const |
| Returns the equation for the prescribed motion in the z-coordinate. More... | |
Public Member Functions inherited from Nektar::SpatialDomains::ZoneBase | |
| ZoneBase (MovementType type, int indx, int domainID, CompositeMap domain, int coordDim) | |
| Constructor. More... | |
| virtual | ~ZoneBase ()=default |
| Default destructor. More... | |
| MovementType | GetMovementType () const |
| Returns the type of movement. More... | |
| CompositeMap | GetDomain () const |
| Returns the domain the zone is on. More... | |
| int & | GetId () |
| Returns the zone ID. More... | |
| int & | GetDomainID () |
| Returns the ID of the domain making up this Zone. More... | |
| bool | Move (NekDouble time) |
| Performs the movement of the zone at. More... | |
| std::vector< GeometrySharedPtr > const & | GetElements () const |
| Returns all highest dimension elements in the zone. More... | |
| bool & | GetMoved () |
| Returns the flag which states if the zone has moved in this timestep. More... | |
| void | ClearBoundingBoxes () |
| Clears all bounding boxes associated with the zones elements. More... | |
Protected Member Functions | |
| bool | v_Move (NekDouble time) final |
| Virtual function for movement of the zone at. More... | |
| virtual bool | v_Move (NekDouble time) |
| Virtual function for movement of the zone at. More... | |
Protected Attributes | |
| LibUtilities::EquationSharedPtr | m_xDeform |
| Equation specifying prescribed motion in x-direction. More... | |
| LibUtilities::EquationSharedPtr | m_yDeform |
| Equation specifying prescribed motion in y-direction. More... | |
| LibUtilities::EquationSharedPtr | m_zDeform |
| Equation specifying prescribed motion in z-direction. More... | |
Protected Attributes inherited from Nektar::SpatialDomains::ZoneBase | |
| MovementType | m_type = MovementType::eNone |
| Type of zone movement. More... | |
| int | m_id |
| Zone ID. More... | |
| int | m_domainID |
| ID for the composite making up this zone. More... | |
| CompositeMap | m_domain |
| Zone domain. More... | |
| std::vector< GeometrySharedPtr > | m_elements |
| Vector of highest dimension zone elements. More... | |
| bool | m_moved = true |
| Moved flag. More... | |
| int | m_coordDim |
| Coordinate dimension. More... | |
| std::vector< PointGeomSharedPtr > | m_verts |
| Vector of all points in the zone. More... | |
| std::vector< CurveSharedPtr > | m_curves |
| Vector of all curves in the zone. More... | |
| std::vector< PointGeom > | m_origVerts |
| Vector of all points in the zone at initialisation. More... | |
|
inline |
Constructor for prescribed zone
| id | Zone ID |
| domainID | ID associated with the the domain making up the zone |
| domain | Domain that the zone consists of |
| coordDim | Coordinate dimension |
| xDeform | Equation for prescribed motion of x-coordinate |
| yDeform | Equation for prescribed motion of y-coordinate |
| zDeform | Equation for prescribed motion of z-coordinate |
Definition at line 257 of file Zones.h.
|
overridedefault |
Default destructor.
|
inline |
Returns point
| x |
param y
| z | deformation in the x direction at time |
| t | |
| x | x-coordinate |
| y | y-coordinate |
| z | z-coordinate |
| t | time |
Definition at line 278 of file Zones.h.
References m_xDeform, and Nektar::UnitTests::z().
|
inline |
|
inline |
Returns point
| x |
param y
| z | deformation in the y direction at time |
| t | |
| x | x-coordinate |
| y | y-coordinate |
| z | z-coordinate |
| t | time |
Definition at line 293 of file Zones.h.
References m_yDeform, and Nektar::UnitTests::z().
|
inline |
|
inline |
Returns point
| x |
param y
| z | deformation in the z direction at time |
| t | |
| x | x-coordinate |
| y | y-coordinate |
| z | z-coordinate |
| t | time |
Definition at line 308 of file Zones.h.
References m_zDeform, and Nektar::UnitTests::z().
|
inline |
|
finalprotectedvirtual |
Virtual function for movement of the zone at.
| time |
Reimplemented from Nektar::SpatialDomains::ZoneBase.
Definition at line 284 of file Movement/Zones.cpp.
References Nektar::SpatialDomains::ZoneBase::ClearBoundingBoxes(), Nektar::SpatialDomains::ZoneBase::m_origVerts, Nektar::SpatialDomains::ZoneBase::m_verts, m_xDeform, m_yDeform, and m_zDeform.
|
protected |
Equation specifying prescribed motion in x-direction.
Definition at line 334 of file Zones.h.
Referenced by GetXDeform(), GetXDeformEquation(), and v_Move().
|
protected |
Equation specifying prescribed motion in y-direction.
Definition at line 336 of file Zones.h.
Referenced by GetYDeform(), GetYDeformEquation(), and v_Move().
|
protected |
Equation specifying prescribed motion in z-direction.
Definition at line 338 of file Zones.h.
Referenced by GetZDeform(), GetZDeformEquation(), and v_Move().