MBDyn-1.7.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups
ParabolicShape1D Class Reference

#include <shape_impl.h>

Inheritance diagram for ParabolicShape1D:
Collaboration diagram for ParabolicShape1D:

Public Member Functions

 ParabolicShape1D (doublereal d0, doublereal d1, doublereal d2)
 
 ~ParabolicShape1D (void)
 
doublereal dGet (doublereal d, doublereal=0.) const
 
std::ostream & Restart (std::ostream &out) const
 
- Public Member Functions inherited from Shape1D
virtual ~Shape1D (void)
 
- Public Member Functions inherited from Shape
virtual ~Shape (void)
 

Protected Attributes

doublereal da0
 
doublereal da1
 
doublereal da2
 

Detailed Description

Definition at line 92 of file shape_impl.h.

Constructor & Destructor Documentation

ParabolicShape1D::ParabolicShape1D ( doublereal  d0,
doublereal  d1,
doublereal  d2 
)

Definition at line 217 of file shape.cc.

References NO_OP.

218 : da0(d0), da1(d1), da2(d2)
219 {
220  NO_OP;
221 }
#define NO_OP
Definition: myassert.h:74
doublereal da0
Definition: shape_impl.h:94
doublereal da1
Definition: shape_impl.h:95
doublereal da2
Definition: shape_impl.h:96
ParabolicShape1D::~ParabolicShape1D ( void  )

Definition at line 223 of file shape.cc.

References NO_OP.

224 {
225  NO_OP;
226 }
#define NO_OP
Definition: myassert.h:74

Member Function Documentation

doublereal ParabolicShape1D::dGet ( doublereal  d,
doublereal  = 0. 
) const
virtual

Implements Shape.

Definition at line 229 of file shape.cc.

References da0, da1, and da2.

230 {
231  return da0 + (da1 + da2*d)*d;
232 }
doublereal da0
Definition: shape_impl.h:94
doublereal da1
Definition: shape_impl.h:95
doublereal da2
Definition: shape_impl.h:96
std::ostream & ParabolicShape1D::Restart ( std::ostream &  out) const
virtual

Implements Shape.

Definition at line 235 of file shape.cc.

References da0, da1, and da2.

236 {
237  return out << "parabolic, " << da0 << ", "
238  << da1 << ", " << da2;
239 }
doublereal da0
Definition: shape_impl.h:94
doublereal da1
Definition: shape_impl.h:95
doublereal da2
Definition: shape_impl.h:96

Member Data Documentation

doublereal ParabolicShape1D::da0
protected

Definition at line 94 of file shape_impl.h.

Referenced by dGet(), and Restart().

doublereal ParabolicShape1D::da1
protected

Definition at line 95 of file shape_impl.h.

Referenced by dGet(), and Restart().

doublereal ParabolicShape1D::da2
protected

Definition at line 96 of file shape_impl.h.

Referenced by dGet(), and Restart().


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