Added access functions in constraints/restraints

This commit is contained in:
Vuko Vukcevic 2017-03-13 16:19:02 +01:00
parent 67f3d04b5c
commit ea398214f1
8 changed files with 84 additions and 0 deletions

View file

@ -56,6 +56,18 @@ Foam::rotationalConstraint::~rotationalConstraint()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const Foam::word& Foam::rotationalConstraint::name() const
{
return name_;
}
const Foam::sixDOFODE& Foam::rotationalConstraint::sixDOF() const
{
return sixDOF_;
}
Foam::autoPtr<Foam::rotationalConstraint> Foam::rotationalConstraint::New Foam::autoPtr<Foam::rotationalConstraint> Foam::rotationalConstraint::New
( (
const word& name, const word& name,

View file

@ -164,6 +164,15 @@ public:
// Member Functions // Member Functions
// Access functions
//- Return name
const word& name() const;
//- Return underlying sixDOFODE object
const sixDOFODE& sixDOF() const;
// Constraint specific functions // Constraint specific functions
//- Return matrix contribution defined by constraint, f(t) //- Return matrix contribution defined by constraint, f(t)

View file

@ -56,6 +56,18 @@ Foam::translationalConstraint::~translationalConstraint()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const Foam::word& Foam::translationalConstraint::name() const
{
return name_;
}
const Foam::sixDOFODE& Foam::translationalConstraint::sixDOF() const
{
return sixDOF_;
}
Foam::autoPtr<Foam::translationalConstraint> Foam::translationalConstraint::New Foam::autoPtr<Foam::translationalConstraint> Foam::translationalConstraint::New
( (
const word& name, const word& name,

View file

@ -164,6 +164,15 @@ public:
// Member Functions // Member Functions
// Access functions
//- Return name
const word& name() const;
//- Return underlying sixDOFODE object
const sixDOFODE& sixDOF() const;
// Constraint specific functions // Constraint specific functions
//- Return matrix contribution defined by constraint, f(t) //- Return matrix contribution defined by constraint, f(t)

View file

@ -56,6 +56,18 @@ Foam::rotationalRestraint::~rotationalRestraint()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const Foam::word& Foam::rotationalRestraint::name() const
{
return name_;
}
const Foam::sixDOFODE& Foam::rotationalRestraint::sixDOF() const
{
return sixDOF_;
}
Foam::autoPtr<Foam::rotationalRestraint> Foam::rotationalRestraint::New Foam::autoPtr<Foam::rotationalRestraint> Foam::rotationalRestraint::New
( (
const word& name, const word& name,

View file

@ -146,6 +146,15 @@ public:
// Member Functions // Member Functions
// Access functions
//- Return name
const word& name() const;
//- Return underlying sixDOFODE object
const sixDOFODE& sixDOF() const;
// Restraint specific functions // Restraint specific functions
//- Return restraining moment (in the local coordinate system) //- Return restraining moment (in the local coordinate system)

View file

@ -56,6 +56,18 @@ Foam::translationalRestraint::~translationalRestraint()
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
const Foam::word& Foam::translationalRestraint::name() const
{
return name_;
}
const Foam::sixDOFODE& Foam::translationalRestraint::sixDOF() const
{
return sixDOF_;
}
Foam::autoPtr<Foam::translationalRestraint> Foam::translationalRestraint::New Foam::autoPtr<Foam::translationalRestraint> Foam::translationalRestraint::New
( (
const word& name, const word& name,

View file

@ -146,6 +146,15 @@ public:
// Member Functions // Member Functions
// Access functions
//- Return name
const word& name() const;
//- Return underlying sixDOFODE object
const sixDOFODE& sixDOF() const;
// Restraint specific functions // Restraint specific functions
//- Return restraining force (in the global coordinate system) //- Return restraining force (in the global coordinate system)