Implementation of constraints, part 3
This commit is contained in:
parent
488ccffca9
commit
041fddd197
7 changed files with 33 additions and 39 deletions
|
@ -55,6 +55,16 @@ Foam::constantAngularAcceleration::constantAngularAcceleration
|
|||
{}
|
||||
|
||||
|
||||
Foam::autoPtr<Foam::rotationalConstraint>
|
||||
Foam::constantAngularAcceleration::clone() const
|
||||
{
|
||||
return autoPtr<rotationalConstraint>
|
||||
(
|
||||
new constantAngularAcceleration(*this)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::constantAngularAcceleration::~constantAngularAcceleration()
|
||||
|
|
|
@ -69,15 +69,6 @@ class constantAngularAcceleration
|
|||
const Switch inGlobal_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
constantAngularAcceleration(const constantAngularAcceleration&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const constantAngularAcceleration&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
|
@ -94,6 +85,9 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<rotationalConstraint> clone() const;
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
|
|
|
@ -78,15 +78,6 @@ class rotationalConstraint
|
|||
const sixDOFODE& sixDOFODE_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
rotationalConstraint(const rotationalConstraint&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const rotationalConstraint&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
|
@ -141,6 +132,9 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<rotationalConstraint> clone() const = 0;
|
||||
|
||||
|
||||
// Selectors
|
||||
|
||||
|
|
|
@ -54,6 +54,16 @@ Foam::constantTranslationalAcceleration::constantTranslationalAcceleration
|
|||
{}
|
||||
|
||||
|
||||
Foam::autoPtr<Foam::translationalConstraint>
|
||||
Foam::constantTranslationalAcceleration::clone() const
|
||||
{
|
||||
return autoPtr<translationalConstraint>
|
||||
(
|
||||
new constantTranslationalAcceleration(*this)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||
|
||||
Foam::constantTranslationalAcceleration::~constantTranslationalAcceleration()
|
||||
|
|
|
@ -65,18 +65,6 @@ class constantTranslationalAcceleration
|
|||
const scalar a_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
constantTranslationalAcceleration
|
||||
(
|
||||
const constantTranslationalAcceleration&
|
||||
);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const constantTranslationalAcceleration&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
|
@ -93,6 +81,9 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<translationalConstraint> clone() const;
|
||||
|
||||
|
||||
// Destructor
|
||||
|
||||
|
|
|
@ -78,15 +78,6 @@ class translationalConstraint
|
|||
const sixDOFODE& sixDOFODE_;
|
||||
|
||||
|
||||
// Private Member Functions
|
||||
|
||||
//- Disallow default bitwise copy construct
|
||||
translationalConstraint(const translationalConstraint&);
|
||||
|
||||
//- Disallow default bitwise assignment
|
||||
void operator=(const translationalConstraint&);
|
||||
|
||||
|
||||
public:
|
||||
|
||||
//- Runtime type information
|
||||
|
@ -141,6 +132,9 @@ public:
|
|||
const dictionary& dict
|
||||
);
|
||||
|
||||
//- Construct and return a clone
|
||||
virtual autoPtr<translationalConstraint> clone() const = 0;
|
||||
|
||||
|
||||
// Selectors
|
||||
|
||||
|
|
|
@ -312,6 +312,7 @@ void Foam::geometricSixDOF::setState(const sixDOFODE& sd)
|
|||
// HJ, 23/Mar/2015
|
||||
coeffs_ = gsd.coeffs_;
|
||||
|
||||
// Copy constraints
|
||||
translationalConstraints_ = gsd.translationalConstraints_;
|
||||
rotationalConstraints_ = gsd.rotationalConstraints_;
|
||||
}
|
||||
|
|
Reference in a new issue