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 * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::constantAngularAcceleration::~constantAngularAcceleration()
|
Foam::constantAngularAcceleration::~constantAngularAcceleration()
|
||||||
|
|
|
@ -69,15 +69,6 @@ class constantAngularAcceleration
|
||||||
const Switch inGlobal_;
|
const Switch inGlobal_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
|
||||||
constantAngularAcceleration(const constantAngularAcceleration&);
|
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
|
||||||
void operator=(const constantAngularAcceleration&);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
|
@ -94,6 +85,9 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual autoPtr<rotationalConstraint> clone() const;
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
|
|
|
@ -78,15 +78,6 @@ class rotationalConstraint
|
||||||
const sixDOFODE& sixDOFODE_;
|
const sixDOFODE& sixDOFODE_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
|
||||||
rotationalConstraint(const rotationalConstraint&);
|
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
|
||||||
void operator=(const rotationalConstraint&);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
|
@ -141,6 +132,9 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual autoPtr<rotationalConstraint> clone() const = 0;
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,16 @@ Foam::constantTranslationalAcceleration::constantTranslationalAcceleration
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
Foam::autoPtr<Foam::translationalConstraint>
|
||||||
|
Foam::constantTranslationalAcceleration::clone() const
|
||||||
|
{
|
||||||
|
return autoPtr<translationalConstraint>
|
||||||
|
(
|
||||||
|
new constantTranslationalAcceleration(*this)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
|
||||||
|
|
||||||
Foam::constantTranslationalAcceleration::~constantTranslationalAcceleration()
|
Foam::constantTranslationalAcceleration::~constantTranslationalAcceleration()
|
||||||
|
|
|
@ -65,18 +65,6 @@ class constantTranslationalAcceleration
|
||||||
const scalar a_;
|
const scalar a_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
|
||||||
constantTranslationalAcceleration
|
|
||||||
(
|
|
||||||
const constantTranslationalAcceleration&
|
|
||||||
);
|
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
|
||||||
void operator=(const constantTranslationalAcceleration&);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
|
@ -93,6 +81,9 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual autoPtr<translationalConstraint> clone() const;
|
||||||
|
|
||||||
|
|
||||||
// Destructor
|
// Destructor
|
||||||
|
|
||||||
|
|
|
@ -78,15 +78,6 @@ class translationalConstraint
|
||||||
const sixDOFODE& sixDOFODE_;
|
const sixDOFODE& sixDOFODE_;
|
||||||
|
|
||||||
|
|
||||||
// Private Member Functions
|
|
||||||
|
|
||||||
//- Disallow default bitwise copy construct
|
|
||||||
translationalConstraint(const translationalConstraint&);
|
|
||||||
|
|
||||||
//- Disallow default bitwise assignment
|
|
||||||
void operator=(const translationalConstraint&);
|
|
||||||
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
//- Runtime type information
|
//- Runtime type information
|
||||||
|
@ -141,6 +132,9 @@ public:
|
||||||
const dictionary& dict
|
const dictionary& dict
|
||||||
);
|
);
|
||||||
|
|
||||||
|
//- Construct and return a clone
|
||||||
|
virtual autoPtr<translationalConstraint> clone() const = 0;
|
||||||
|
|
||||||
|
|
||||||
// Selectors
|
// Selectors
|
||||||
|
|
||||||
|
|
|
@ -312,6 +312,7 @@ void Foam::geometricSixDOF::setState(const sixDOFODE& sd)
|
||||||
// HJ, 23/Mar/2015
|
// HJ, 23/Mar/2015
|
||||||
coeffs_ = gsd.coeffs_;
|
coeffs_ = gsd.coeffs_;
|
||||||
|
|
||||||
|
// Copy constraints
|
||||||
translationalConstraints_ = gsd.translationalConstraints_;
|
translationalConstraints_ = gsd.translationalConstraints_;
|
||||||
rotationalConstraints_ = gsd.rotationalConstraints_;
|
rotationalConstraints_ = gsd.rotationalConstraints_;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue