MyStraightLine Class Reference

Straight 1D line in 2D space. More...

+ Inheritance diagram for MyStraightLine:

Public Member Functions

 MyStraightLine (const Vector< double > &r_start, const Vector< double > &r_end)
 Constructor: Pass start and end points. More...
 
 MyStraightLine (const MyStraightLine &dummy)
 Broken copy constructor. More...
 
void operator= (const MyStraightLine &)
 Broken assignment operator. More...
 
 ~MyStraightLine ()
 Destructor: Empty. More...
 
void position (const Vector< double > &zeta, Vector< double > &r) const
 Position Vector at Lagrangian coordinate zeta. More...
 
 MyStraightLine (const Vector< double > &r_start, const Vector< double > &r_end)
 Constructor: Pass start and end points. More...
 
 MyStraightLine (const MyStraightLine &dummy)
 Broken copy constructor. More...
 
 ~MyStraightLine ()
 Destructor: Empty. More...
 
void position (const Vector< double > &zeta, Vector< double > &r) const
 Position Vector at Lagrangian coordinate zeta. More...
 
 MyStraightLine (const Vector< double > &r_start, const Vector< double > &r_end)
 Constructor: Pass start and end points. More...
 
 MyStraightLine (const MyStraightLine &dummy)
 Broken copy constructor. More...
 
void operator= (const MyStraightLine &)
 Broken assignment operator. More...
 
 ~MyStraightLine ()
 Destructor: Empty. More...
 
void position (const Vector< double > &zeta, Vector< double > &r) const
 Position Vector at Lagrangian coordinate zeta. More...
 
- Public Member Functions inherited from oomph::GeomObject
 GeomObject ()
 Default constructor. More...
 
 GeomObject (const unsigned &ndim)
 
 GeomObject (const unsigned &nlagrangian, const unsigned &ndim)
 
 GeomObject (const unsigned &nlagrangian, const unsigned &ndim, TimeStepper *time_stepper_pt)
 
 GeomObject (const GeomObject &dummy)=delete
 Broken copy constructor. More...
 
void operator= (const GeomObject &)=delete
 Broken assignment operator. More...
 
virtual ~GeomObject ()
 (Empty) destructor More...
 
unsigned nlagrangian () const
 Access function to # of Lagrangian coordinates. More...
 
unsigned ndim () const
 Access function to # of Eulerian coordinates. More...
 
void set_nlagrangian_and_ndim (const unsigned &n_lagrangian, const unsigned &n_dim)
 Set # of Lagrangian and Eulerian coordinates. More...
 
TimeStepper *& time_stepper_pt ()
 
TimeSteppertime_stepper_pt () const
 
virtual unsigned ngeom_data () const
 
virtual Datageom_data_pt (const unsigned &j)
 
virtual void position (const unsigned &t, const Vector< double > &zeta, Vector< double > &r) const
 
virtual void position (const double &t, const Vector< double > &zeta, Vector< double > &r) const
 
virtual void dposition_dt (const Vector< double > &zeta, const unsigned &j, Vector< double > &drdt)
 
virtual void dposition (const Vector< double > &zeta, DenseMatrix< double > &drdzeta) const
 
virtual void d2position (const Vector< double > &zeta, RankThreeTensor< double > &ddrdzeta) const
 
virtual void d2position (const Vector< double > &zeta, Vector< double > &r, DenseMatrix< double > &drdzeta, RankThreeTensor< double > &ddrdzeta) const
 
virtual void locate_zeta (const Vector< double > &zeta, GeomObject *&sub_geom_object_pt, Vector< double > &s, const bool &use_coordinate_as_initial_guess=false)
 
virtual void interpolated_zeta (const Vector< double > &s, Vector< double > &zeta) const
 

Private Attributes

Vector< doubleR_start
 Start point of line. More...
 
Vector< doubleR_end
 End point of line. More...
 

Additional Inherited Members

- Protected Attributes inherited from oomph::GeomObject
unsigned NLagrangian
 Number of Lagrangian (intrinsic) coordinates. More...
 
unsigned Ndim
 Number of Eulerian coordinates. More...
 
TimeStepperGeom_object_time_stepper_pt
 

Detailed Description

Straight 1D line in 2D space.

//////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////

Constructor & Destructor Documentation

◆ MyStraightLine() [1/6]

MyStraightLine::MyStraightLine ( const Vector< double > &  r_start,
const Vector< double > &  r_end 
)
inline

Constructor: Pass start and end points.

59  : GeomObject(1,2), R_start(r_start), R_end(r_end)
60  { }
Vector< double > R_end
End point of line.
Definition: unstructured_acoustic_fsi.cc:93
Vector< double > R_start
Start point of line.
Definition: unstructured_acoustic_fsi.cc:90
GeomObject()
Default constructor.
Definition: geom_objects.h:104

◆ MyStraightLine() [2/6]

MyStraightLine::MyStraightLine ( const MyStraightLine dummy)
inline

Broken copy constructor.

65  {
66  BrokenCopy::broken_copy("MyStraightLine");
67  }
void broken_copy(const std::string &class_name)
Issue error message and terminate execution.
Definition: oomph_utilities.cc:212

References oomph::BrokenCopy::broken_copy().

◆ ~MyStraightLine() [1/3]

MyStraightLine::~MyStraightLine ( )
inline

Destructor: Empty.

77 {}

◆ MyStraightLine() [3/6]

MyStraightLine::MyStraightLine ( const Vector< double > &  r_start,
const Vector< double > &  r_end 
)
inline

Constructor: Pass start and end points.

71  : GeomObject(1,2), R_start(r_start), R_end(r_end)
72  { }

◆ MyStraightLine() [4/6]

MyStraightLine::MyStraightLine ( const MyStraightLine dummy)
inline

Broken copy constructor.

77  {
78  BrokenCopy::broken_copy("MyStraightLine");
79  }

References oomph::BrokenCopy::broken_copy().

◆ ~MyStraightLine() [2/3]

MyStraightLine::~MyStraightLine ( )
inline

Destructor: Empty.

82 {}

◆ MyStraightLine() [5/6]

MyStraightLine::MyStraightLine ( const Vector< double > &  r_start,
const Vector< double > &  r_end 
)
inline

Constructor: Pass start and end points.

57  : GeomObject(1,2), R_start(r_start), R_end(r_end)
58  { }

◆ MyStraightLine() [6/6]

MyStraightLine::MyStraightLine ( const MyStraightLine dummy)
inline

Broken copy constructor.

63  {
64  BrokenCopy::broken_copy("MyStraightLine");
65  }

References oomph::BrokenCopy::broken_copy().

◆ ~MyStraightLine() [3/3]

MyStraightLine::~MyStraightLine ( )
inline

Destructor: Empty.

75 {}

Member Function Documentation

◆ operator=() [1/2]

void MyStraightLine::operator= ( const MyStraightLine )
inline

Broken assignment operator.

71  {
72  BrokenCopy::broken_assign("MyStraightLine");
73  }
void broken_assign(const std::string &class_name)
Issue error message and terminate execution.
Definition: oomph_utilities.cc:195

References oomph::BrokenCopy::broken_assign().

◆ operator=() [2/2]

void MyStraightLine::operator= ( const MyStraightLine )
inline

Broken assignment operator.

69  {
70  BrokenCopy::broken_assign("MyStraightLine");
71  }

References oomph::BrokenCopy::broken_assign().

◆ position() [1/3]

void MyStraightLine::position ( const Vector< double > &  zeta,
Vector< double > &  r 
) const
inlinevirtual

Position Vector at Lagrangian coordinate zeta.

Implements oomph::GeomObject.

81  {
82  // Position Vector
83  r[0] = R_start[0]+(R_end[0]-R_start[0])*zeta[0];
84  r[1] = R_start[1]+(R_end[1]-R_start[1])*zeta[0];
85  }
EIGEN_STRONG_INLINE const Eigen::CwiseBinaryOp< Eigen::internal::scalar_zeta_op< typename DerivedX::Scalar >, const DerivedX, const DerivedQ > zeta(const Eigen::ArrayBase< DerivedX > &x, const Eigen::ArrayBase< DerivedQ > &q)
Definition: SpecialFunctionsArrayAPI.h:152
r
Definition: UniformPSDSelfTest.py:20

References UniformPSDSelfTest::r, and Eigen::zeta().

◆ position() [2/3]

void MyStraightLine::position ( const Vector< double > &  zeta,
Vector< double > &  r 
) const
inlinevirtual

Position Vector at Lagrangian coordinate zeta.

Implements oomph::GeomObject.

86  {
87  // Position Vector
88  r[0] = R_start[0]+(R_end[0]-R_start[0])*zeta[0];
89  r[1] = R_start[1]+(R_end[1]-R_start[1])*zeta[0];
90  }

References UniformPSDSelfTest::r, and Eigen::zeta().

◆ position() [3/3]

void MyStraightLine::position ( const Vector< double > &  zeta,
Vector< double > &  r 
) const
inlinevirtual

Position Vector at Lagrangian coordinate zeta.

Implements oomph::GeomObject.

79  {
80  // Position Vector
81  r[0] = R_start[0]+(R_end[0]-R_start[0])*zeta[0];
82  r[1] = R_start[1]+(R_end[1]-R_start[1])*zeta[0];
83  }

References UniformPSDSelfTest::r, and Eigen::zeta().

Member Data Documentation

◆ R_end

Vector< double > MyStraightLine::R_end
private

End point of line.

◆ R_start

Vector< double > MyStraightLine::R_start
private

Start point of line.


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