Added access functions in constraints/restraints
This commit is contained in:
parent
67f3d04b5c
commit
ea398214f1
8 changed files with 84 additions and 0 deletions
|
@ -56,6 +56,18 @@ Foam::rotationalConstraint::~rotationalConstraint()
|
|||
|
||||
// * * * * * * * * * * * * * * * 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
|
||||
(
|
||||
const word& name,
|
||||
|
|
|
@ -164,6 +164,15 @@ public:
|
|||
|
||||
// Member Functions
|
||||
|
||||
// Access functions
|
||||
|
||||
//- Return name
|
||||
const word& name() const;
|
||||
|
||||
//- Return underlying sixDOFODE object
|
||||
const sixDOFODE& sixDOF() const;
|
||||
|
||||
|
||||
// Constraint specific functions
|
||||
|
||||
//- Return matrix contribution defined by constraint, f(t)
|
||||
|
|
|
@ -56,6 +56,18 @@ Foam::translationalConstraint::~translationalConstraint()
|
|||
|
||||
// * * * * * * * * * * * * * * * 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
|
||||
(
|
||||
const word& name,
|
||||
|
|
|
@ -164,6 +164,15 @@ public:
|
|||
|
||||
// Member Functions
|
||||
|
||||
// Access functions
|
||||
|
||||
//- Return name
|
||||
const word& name() const;
|
||||
|
||||
//- Return underlying sixDOFODE object
|
||||
const sixDOFODE& sixDOF() const;
|
||||
|
||||
|
||||
// Constraint specific functions
|
||||
|
||||
//- Return matrix contribution defined by constraint, f(t)
|
||||
|
|
|
@ -56,6 +56,18 @@ Foam::rotationalRestraint::~rotationalRestraint()
|
|||
|
||||
// * * * * * * * * * * * * * * * 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
|
||||
(
|
||||
const word& name,
|
||||
|
|
|
@ -146,6 +146,15 @@ public:
|
|||
|
||||
// Member Functions
|
||||
|
||||
// Access functions
|
||||
|
||||
//- Return name
|
||||
const word& name() const;
|
||||
|
||||
//- Return underlying sixDOFODE object
|
||||
const sixDOFODE& sixDOF() const;
|
||||
|
||||
|
||||
// Restraint specific functions
|
||||
|
||||
//- Return restraining moment (in the local coordinate system)
|
||||
|
|
|
@ -56,6 +56,18 @@ Foam::translationalRestraint::~translationalRestraint()
|
|||
|
||||
// * * * * * * * * * * * * * * * 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
|
||||
(
|
||||
const word& name,
|
||||
|
|
|
@ -146,6 +146,15 @@ public:
|
|||
|
||||
// Member Functions
|
||||
|
||||
// Access functions
|
||||
|
||||
//- Return name
|
||||
const word& name() const;
|
||||
|
||||
//- Return underlying sixDOFODE object
|
||||
const sixDOFODE& sixDOF() const;
|
||||
|
||||
|
||||
// Restraint specific functions
|
||||
|
||||
//- Return restraining force (in the global coordinate system)
|
||||
|
|
Reference in a new issue