KratosMultiphysics
KRATOS Multiphysics (Kratos) is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface.
List of all members
Kratos::MasterSlaveConstraint Class Reference

A class that implements the interface for different master-slave constraints to be applied on a system. More...

#include <master_slave_constraint.h>

Inheritance diagram for Kratos::MasterSlaveConstraint:
Collaboration diagram for Kratos::MasterSlaveConstraint:

Public Member Functions

Life Cycle
 MasterSlaveConstraint (IndexType Id=0)
 The default constructor. More...
 
virtual ~MasterSlaveConstraint () override
 Destructor. More...
 
 MasterSlaveConstraint (const MasterSlaveConstraint &rOther)
 Copy Constructor. More...
 
MasterSlaveConstraintoperator= (const MasterSlaveConstraint &rOther)
 Assignment operator. More...
 
Operations
virtual MasterSlaveConstraint::Pointer Create (IndexType Id, DofPointerVectorType &rMasterDofsVector, DofPointerVectorType &rSlaveDofsVector, const MatrixType &rRelationMatrix, const VectorType &rConstantVector) const
 Creates a new constraint pointer. More...
 
virtual MasterSlaveConstraint::Pointer Create (IndexType Id, NodeType &rMasterNode, const VariableType &rMasterVariable, NodeType &rSlaveNode, const VariableType &rSlaveVariable, const double Weight, const double Constant) const
 
virtual Pointer Clone (IndexType NewId) const
 It creates a new constraint pointer and clones the previous constraint data. More...
 
virtual void Clear ()
 Clears the maps contents. More...
 
virtual void Initialize (const ProcessInfo &rCurrentProcessInfo)
 It is called to initialize the constraint. More...
 
virtual void Finalize (const ProcessInfo &rCurrentProcessInfo)
 It is called to finalize the constraint. More...
 
virtual void InitializeSolutionStep (const ProcessInfo &rCurrentProcessInfo)
 This is called in the beginning of each solution step. More...
 
virtual void InitializeNonLinearIteration (const ProcessInfo &rCurrentProcessInfo)
 This is called for non-linear analysis at the beginning of the iteration process. More...
 
virtual void FinalizeNonLinearIteration (const ProcessInfo &rCurrentProcessInfo)
 This is called for non-linear analysis at the end of the iteration process. More...
 
virtual void FinalizeSolutionStep (const ProcessInfo &rCurrentProcessInfo)
 This is called at the end of each solution step. More...
 
virtual void GetDofList (DofPointerVectorType &rSlaveDofsVector, DofPointerVectorType &rMasterDofsVector, const ProcessInfo &rCurrentProcessInfo) const
 Determines the constrant's slave and master list of DOFs. More...
 
virtual void SetDofList (const DofPointerVectorType &rSlaveDofsVector, const DofPointerVectorType &rMasterDofsVector, const ProcessInfo &rCurrentProcessInfo)
 Determines the constrant's slave and master list of DOFs. More...
 
virtual void EquationIdVector (EquationIdVectorType &rSlaveEquationIds, EquationIdVectorType &rMasterEquationIds, const ProcessInfo &rCurrentProcessInfo) const
 This determines the master equation IDs connected to this constraint. More...
 
virtual const DofPointerVectorTypeGetSlaveDofsVector () const
 This method returns the slave dof vector. More...
 
virtual void SetSlaveDofsVector (const DofPointerVectorType &rSlaveDofsVector)
 This method returns the slave dof vector. More...
 
virtual const DofPointerVectorTypeGetMasterDofsVector () const
 This method returns the slave dof vector. More...
 
virtual void SetMasterDofsVector (const DofPointerVectorType &rMasterDofsVector)
 This method returns the slave dof vector. More...
 
virtual void ResetSlaveDofs (const ProcessInfo &rCurrentProcessInfo)
 This method resets the values of the slave dofs. More...
 
virtual void Apply (const ProcessInfo &rCurrentProcessInfo)
 This method directly applies the master/slave relationship. More...
 
virtual void SetLocalSystem (const MatrixType &rRelationMatrix, const VectorType &rConstantVector, const ProcessInfo &rCurrentProcessInfo)
 This method allows to set the Local System in case is not computed on running time (internal variable) More...
 
virtual void GetLocalSystem (MatrixType &rRelationMatrix, VectorType &rConstantVector, const ProcessInfo &rCurrentProcessInfo) const
 This method allows to get the Local System in case is not computed on running time (internal variable) More...
 
virtual void CalculateLocalSystem (MatrixType &rRelationMatrix, VectorType &rConstantVector, const ProcessInfo &rCurrentProcessInfo) const
 This is called during the assembling process in order. More...
 
virtual int Check (const ProcessInfo &rCurrentProcessInfo) const
 This method provides the place to perform checks on the completeness of the input and the compatibility with the problem options. More...
 
Input and output
virtual std::string GetInfo () const
 Returns the string containing a detailed description of this object. More...
 
virtual void PrintInfo (std::ostream &rOStream) const override
 This method prints the current Constraint Id. More...
 
Access
DataValueContainerData ()
 This method returns the data container of the constraint. More...
 
DataValueContainer const & GetData () const
 This method returns the data container of the constraint (constant) More...
 
void SetData (DataValueContainer const &rThisData)
 This method sets the data container of the constraint. More...
 
template<class TDataType >
bool Has (const Variable< TDataType > &rThisVariable) const
 Check if the Data exists with Has(..) methods: More...
 
template<class TVariableType >
void SetValue (const TVariableType &rThisVariable, typename TVariableType::Type const &rValue)
 Set Data with SetValue and the Variable to set. More...
 
template<class TVariableType >
TVariableType::Type & GetValue (const TVariableType &rThisVariable)
 Get Data with GetValue and the Variable to get. More...
 
template<class TVariableType >
TVariableType::Type & GetValue (const TVariableType &rThisVariable) const
 Get Data with GetValue and the Variable to get. More...
 
Inquiry
bool IsActive () const
 Checks if the GeometricalObject is active. More...
 
- Public Member Functions inherited from Kratos::IndexedObject
 IndexedObject (IndexType NewId=0)
 Default constructor. More...
 
virtual ~IndexedObject ()
 Destructor. More...
 
 IndexedObject (IndexedObject const &rOther)
 Copy constructor. More...
 
IndexedObjectoperator= (IndexedObject const &rOther)
 Assignment operator. More...
 
template<class TObjectType >
IndexType operator() (TObjectType const &rThisObject) const
 
IndexType Id () const
 
IndexType GetId () const
 
virtual void SetId (IndexType NewId)
 
IndexTypeDepricatedIdAccess ()
 TODO: remove this function when removing data_file_io object. More...
 
virtual std::string Info () const
 Turn back information as a string. More...
 
virtual void PrintData (std::ostream &rOStream) const
 Print object's data. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (IndexedObject)
 Pointer definition of IndexedObject. More...
 
- Public Member Functions inherited from Kratos::Flags
Flagsoperator= (Flags const &rOther)
 Assignment operator. More...
 
 operator bool () const
 
Flags operator~ () const
 
bool operator! () const
 
void AssignFlags (Flags const &rOther)
 
void Set (const Flags ThisFlag)
 
void Set (const Flags ThisFlag, bool Value)
 
void Reset (const Flags ThisFlag)
 
void Flip (const Flags ThisFlag)
 
void SetPosition (IndexType Position, bool Value=true)
 
bool GetPosition (IndexType Position) const
 
void FlipPosition (IndexType Position)
 
void ClearPosition (IndexType Position)
 
void Clear ()
 
Flags AsFalse () const
 
bool Is (Flags const &rOther) const
 
bool IsDefined (Flags const &rOther) const
 
bool IsNot (Flags const &rOther) const
 
bool IsNotDefined (Flags const &rOther) const
 
virtual std::string Info () const
 Turn back information as a string. More...
 
virtual void PrintData (std::ostream &rOStream) const
 Print object's data. More...
 
 KRATOS_CLASS_POINTER_DEFINITION (Flags)
 Pointer definition of Flags. More...
 
const Flagsoperator|= (const Flags &Other)
 
const Flagsoperator&= (const Flags &Other)
 
 Flags ()
 Default constructor. More...
 
 Flags (Flags const &rOther)
 Copy constructor. More...
 
virtual ~Flags ()
 Destructor. More...
 

Type Definitions

typedef IndexedObject BaseType
 The definition of the base class. More...
 
typedef std::size_t IndexType
 The index type definition. More...
 
typedef Dof< doubleDofType
 The DoF type definition. More...
 
typedef std::vector< DofType::PointerDofPointerVectorType
 The DoF pointer vector type definition. More...
 
typedef Node NodeType
 The node type definition. More...
 
typedef std::vector< std::size_t > EquationIdVectorType
 The equation Id vector type definition. More...
 
typedef Matrix MatrixType
 The matrix type definition. More...
 
typedef Vector VectorType
 The vector type definition. More...
 
typedef Kratos::Variable< doubleVariableType
 The variable type definition (double) More...
 
 KRATOS_CLASS_POINTER_DEFINITION (MasterSlaveConstraint)
 Pointer definition of MasterSlaveConstraint. More...
 

Serialization

class Serializer
 

Additional Inherited Members

- Public Types inherited from Kratos::IndexedObject
typedef std::size_t IndexType
 The definition of the index type. More...
 
typedef std::size_t result_type
 The definition of the result_type. More...
 
- Public Types inherited from Kratos::Flags
enum  FlagsList {
  Flag0 = BlockType(1) , Flag1 = BlockType(1) << 1 , Flag2 = BlockType(1) << 2 , Flag3 = BlockType(1) << 3 ,
  Flag4 = BlockType(1) << 4 , Flag5 = BlockType(1) << 5 , Flag6 = BlockType(1) << 6 , Flag7 = BlockType(1) << 7 ,
  Flag8 = BlockType(1) << 8 , Flag9 = BlockType(1) << 9 , Flag10 = BlockType(1) << 10 , Flag11 = BlockType(1) << 11 ,
  Flag12 = BlockType(1) << 12 , Flag13 = BlockType(1) << 13 , Flag14 = BlockType(1) << 14 , Flag15 = BlockType(1) << 15 ,
  Flag16 = BlockType(1) << 16 , Flag17 = BlockType(1) << 17 , Flag18 = BlockType(1) << 18 , Flag19 = BlockType(1) << 19 ,
  Flag20 = BlockType(1) << 20 , Flag21 = BlockType(1) << 21 , Flag22 = BlockType(1) << 22 , Flag23 = BlockType(1) << 23 ,
  Flag24 = BlockType(1) << 24 , Flag25 = BlockType(1) << 25 , Flag26 = BlockType(1) << 26 , Flag27 = BlockType(1) << 27 ,
  Flag28 = BlockType(1) << 28 , Flag29 = BlockType(1) << 29 , Flag30 = BlockType(1) << 30
}
 
typedef int64_t BlockType
 
typedef int64_t FlagType
 
typedef std::size_t IndexType
 
- Static Public Member Functions inherited from Kratos::Flags
static const Flags AllDefined ()
 
static const Flags AllTrue ()
 
static Flags Create (IndexType ThisPosition, bool Value=true)
 

Detailed Description

A class that implements the interface for different master-slave constraints to be applied on a system.

This is the part that is seen by the user from the python level. Objects of this class are first class citizens of the modelpart.

This class allows to add a master-slave constraint which is of the form

SlaveDofVector = T * MasterDofVector + rConstantVector. (Processing of this is currently not implemented.)

or

SlaveDof = weight * MasterDof + Constant

This class's object will provide its slave, master details and relation matrix between them.

One can add two MasterSlaveConstraint objects with same slave but different masters and weights. Consider user adds : SlaveDof = weight1 * MasterDof1 + Constant1 and : SlaveDof = weight2 * MasterDof2 + Constant2

These are later consolidated in the builder and solver to make : SlaveDof = weight1 * MasterDof1 + weight2 * MasterDof2 + Constant1+Constant2 and then converted to : : SlaveEqID = weight1 * MasterEqId1 + weight2 * MasterEqId2 + Constant1+Constant2 This unique equation is used later on to modify the equation system.

Author
Aditya Ghantasala

Member Typedef Documentation

◆ BaseType

The definition of the base class.

◆ DofPointerVectorType

The DoF pointer vector type definition.

◆ DofType

The DoF type definition.

◆ EquationIdVectorType

typedef std::vector<std::size_t> Kratos::MasterSlaveConstraint::EquationIdVectorType

The equation Id vector type definition.

◆ IndexType

The index type definition.

◆ MatrixType

The matrix type definition.

◆ NodeType

The node type definition.

◆ VariableType

The variable type definition (double)

◆ VectorType

The vector type definition.

Constructor & Destructor Documentation

◆ MasterSlaveConstraint() [1/2]

Kratos::MasterSlaveConstraint::MasterSlaveConstraint ( IndexType  Id = 0)
inlineexplicit

The default constructor.

Parameters
IndexTypeThe Id of the new created constraint

◆ ~MasterSlaveConstraint()

virtual Kratos::MasterSlaveConstraint::~MasterSlaveConstraint ( )
inlineoverridevirtual

Destructor.

◆ MasterSlaveConstraint() [2/2]

Kratos::MasterSlaveConstraint::MasterSlaveConstraint ( const MasterSlaveConstraint rOther)
inline

Copy Constructor.

Member Function Documentation

◆ Apply()

virtual void Kratos::MasterSlaveConstraint::Apply ( const ProcessInfo rCurrentProcessInfo)
inlinevirtual

This method directly applies the master/slave relationship.

Parameters
rCurrentProcessInfothe current process info instance

Reimplemented in Kratos::LinearMasterSlaveConstraint.

◆ CalculateLocalSystem()

virtual void Kratos::MasterSlaveConstraint::CalculateLocalSystem ( MatrixType rRelationMatrix,
VectorType rConstantVector,
const ProcessInfo rCurrentProcessInfo 
) const
inlinevirtual

This is called during the assembling process in order.

To calculate the relation between the master and slave.

Parameters
rRelationMatrixthe matrix which relates the master and slave degree of freedom
rConstantThe constant vector (one entry for each slave)
rCurrentProcessInfothe current process info instance

Reimplemented in Kratos::LinearMasterSlaveConstraint.

◆ Check()

virtual int Kratos::MasterSlaveConstraint::Check ( const ProcessInfo rCurrentProcessInfo) const
inlinevirtual

This method provides the place to perform checks on the completeness of the input and the compatibility with the problem options.

It is designed to be called only once (or anyway, not often) typically at the beginning of the calculations, so to verify that nothing is missing from the input or that no common error is found.

Parameters
rCurrentProcessInfo
Note
This method is: MANDATORY

◆ Clear()

virtual void Kratos::MasterSlaveConstraint::Clear ( )
inlinevirtual

Clears the maps contents.

◆ Clone()

virtual Pointer Kratos::MasterSlaveConstraint::Clone ( IndexType  NewId) const
inlinevirtual

It creates a new constraint pointer and clones the previous constraint data.

Parameters
NewIdthe ID of the new constraint
Returns
a Pointer to the new constraint

Reimplemented in Kratos::LinearMasterSlaveConstraint.

◆ Create() [1/2]

virtual MasterSlaveConstraint::Pointer Kratos::MasterSlaveConstraint::Create ( IndexType  Id,
DofPointerVectorType rMasterDofsVector,
DofPointerVectorType rSlaveDofsVector,
const MatrixType rRelationMatrix,
const VectorType rConstantVector 
) const
inlinevirtual

Creates a new constraint pointer.

Parameters
Idthe ID of the new constraint
rMasterDofsVectorthe vector of master degree of freedoms.
rSlaveDofsVectorthe vector of slave degree of freedoms.
rRelationMatrixThe matrix of weights relating the master DOFs and Slave DOFs
rConstantVectorThe vector of the constants, one entry for each of the slave.
Returns
A Pointer to the new constraint

Reimplemented in Kratos::LinearMasterSlaveConstraint, and Kratos::ContactMasterSlaveConstraint.

◆ Create() [2/2]

virtual MasterSlaveConstraint::Pointer Kratos::MasterSlaveConstraint::Create ( IndexType  Id,
NodeType rMasterNode,
const VariableType rMasterVariable,
NodeType rSlaveNode,
const VariableType rSlaveVariable,
const double  Weight,
const double  Constant 
) const
inlinevirtual

creates a new constraint pointer

Parameters
Idthe ID of the new constraint
rMasterNodeNode which is the master of for this constraint.
rMasterVariablethe scalar variable which is on the master node. (DOF)
rSlaveNodeNode which is the slave of for this constraint.
rSlaveVariablethe scalar variable which is on the slave node. (DOF)
WeightThe weight with which the master and slave are related s = w*m + c
ConstantThe constant in the master slave relation
Returns
A Pointer to the new constraint

Reimplemented in Kratos::LinearMasterSlaveConstraint, and Kratos::ContactMasterSlaveConstraint.

◆ Data()

DataValueContainer& Kratos::MasterSlaveConstraint::Data ( )
inline

This method returns the data container of the constraint.

Returns
The data container mData

◆ EquationIdVector()

virtual void Kratos::MasterSlaveConstraint::EquationIdVector ( EquationIdVectorType rSlaveEquationIds,
EquationIdVectorType rMasterEquationIds,
const ProcessInfo rCurrentProcessInfo 
) const
inlinevirtual

This determines the master equation IDs connected to this constraint.

Parameters
rSlaveEquationIdsThe vector of slave equation ids.
rMasterEquationIdsThe vector of master equation ids.
rCurrentProcessInfoThe current process info instance

Reimplemented in Kratos::LinearMasterSlaveConstraint.

◆ Finalize()

virtual void Kratos::MasterSlaveConstraint::Finalize ( const ProcessInfo rCurrentProcessInfo)
inlinevirtual

It is called to finalize the constraint.

If the constraint needs to perform any operation before any calculation is done

Parameters
rCurrentProcessInfoThe current process info instance

◆ FinalizeNonLinearIteration()

virtual void Kratos::MasterSlaveConstraint::FinalizeNonLinearIteration ( const ProcessInfo rCurrentProcessInfo)
inlinevirtual

This is called for non-linear analysis at the end of the iteration process.

Parameters
rCurrentProcessInfoThe current process info instance

Reimplemented in Kratos::ContactMasterSlaveConstraint.

◆ FinalizeSolutionStep()

virtual void Kratos::MasterSlaveConstraint::FinalizeSolutionStep ( const ProcessInfo rCurrentProcessInfo)
inlinevirtual

This is called at the end of each solution step.

◆ GetData()

DataValueContainer const& Kratos::MasterSlaveConstraint::GetData ( ) const
inline

This method returns the data container of the constraint (constant)

Returns
The data container mData

◆ GetDofList()

virtual void Kratos::MasterSlaveConstraint::GetDofList ( DofPointerVectorType rSlaveDofsVector,
DofPointerVectorType rMasterDofsVector,
const ProcessInfo rCurrentProcessInfo 
) const
inlinevirtual

Determines the constrant's slave and master list of DOFs.

Parameters
rSlaveDofsVectorThe list of slave DOFs
rMasterDofsVectorThe list of slave DOFs
rCurrentProcessInfoThe current process info instance

Reimplemented in Kratos::LinearMasterSlaveConstraint.

◆ GetInfo()

virtual std::string Kratos::MasterSlaveConstraint::GetInfo ( ) const
inlinevirtual

Returns the string containing a detailed description of this object.

Returns
the string with information

Reimplemented in Kratos::SlipConstraint, Kratos::LinearMasterSlaveConstraint, and Kratos::ContactMasterSlaveConstraint.

◆ GetLocalSystem()

virtual void Kratos::MasterSlaveConstraint::GetLocalSystem ( MatrixType rRelationMatrix,
VectorType rConstantVector,
const ProcessInfo rCurrentProcessInfo 
) const
inlinevirtual

This method allows to get the Local System in case is not computed on running time (internal variable)

Parameters
rRelationMatrixthe matrix which relates the master and slave degree of freedom
rConstantThe constant vector (one entry for each slave)
rCurrentProcessInfoThe current process info instance

◆ GetMasterDofsVector()

virtual const DofPointerVectorType& Kratos::MasterSlaveConstraint::GetMasterDofsVector ( ) const
inlinevirtual

This method returns the slave dof vector.

Returns
The vector containing the slave dofs

Reimplemented in Kratos::LinearMasterSlaveConstraint.

◆ GetSlaveDofsVector()

virtual const DofPointerVectorType& Kratos::MasterSlaveConstraint::GetSlaveDofsVector ( ) const
inlinevirtual

This method returns the slave dof vector.

Returns
The vector containing the slave dofs

Reimplemented in Kratos::LinearMasterSlaveConstraint.

◆ GetValue() [1/2]

template<class TVariableType >
TVariableType::Type& Kratos::MasterSlaveConstraint::GetValue ( const TVariableType &  rThisVariable)
inline

Get Data with GetValue and the Variable to get.

Parameters
rThisVariableThe variable to get

◆ GetValue() [2/2]

template<class TVariableType >
TVariableType::Type& Kratos::MasterSlaveConstraint::GetValue ( const TVariableType &  rThisVariable) const
inline

Get Data with GetValue and the Variable to get.

Parameters
rThisVariableThe variable to get

◆ Has()

template<class TDataType >
bool Kratos::MasterSlaveConstraint::Has ( const Variable< TDataType > &  rThisVariable) const
inline

Check if the Data exists with Has(..) methods:

Parameters
rThisVariableThe variable to be check

◆ Initialize()

virtual void Kratos::MasterSlaveConstraint::Initialize ( const ProcessInfo rCurrentProcessInfo)
inlinevirtual

It is called to initialize the constraint.

If the constraint needs to perform any operation before any calculation is done

Parameters
rCurrentProcessInfoThe current process info instance

◆ InitializeNonLinearIteration()

virtual void Kratos::MasterSlaveConstraint::InitializeNonLinearIteration ( const ProcessInfo rCurrentProcessInfo)
inlinevirtual

This is called for non-linear analysis at the beginning of the iteration process.

Parameters
rCurrentProcessInfoThe current process info instance

◆ InitializeSolutionStep()

virtual void Kratos::MasterSlaveConstraint::InitializeSolutionStep ( const ProcessInfo rCurrentProcessInfo)
inlinevirtual

This is called in the beginning of each solution step.

Parameters
rCurrentProcessInfoThe current process info instance

◆ IsActive()

bool Kratos::MasterSlaveConstraint::IsActive ( ) const

Checks if the GeometricalObject is active.

Returns
True by default, otherwise depending on the ACTIVE flag

◆ KRATOS_CLASS_POINTER_DEFINITION()

Kratos::MasterSlaveConstraint::KRATOS_CLASS_POINTER_DEFINITION ( MasterSlaveConstraint  )

Pointer definition of MasterSlaveConstraint.

◆ operator=()

MasterSlaveConstraint& Kratos::MasterSlaveConstraint::operator= ( const MasterSlaveConstraint rOther)
inline

Assignment operator.

◆ PrintInfo()

virtual void Kratos::MasterSlaveConstraint::PrintInfo ( std::ostream &  rOStream) const
inlineoverridevirtual

This method prints the current Constraint Id.

Parameters
rOStreamThe buffer where the information is given

Reimplemented from Kratos::Flags.

Reimplemented in Kratos::SlipConstraint, Kratos::LinearMasterSlaveConstraint, and Kratos::ContactMasterSlaveConstraint.

◆ ResetSlaveDofs()

virtual void Kratos::MasterSlaveConstraint::ResetSlaveDofs ( const ProcessInfo rCurrentProcessInfo)
inlinevirtual

This method resets the values of the slave dofs.

Parameters
rCurrentProcessInfothe current process info instance

Reimplemented in Kratos::LinearMasterSlaveConstraint.

◆ SetData()

void Kratos::MasterSlaveConstraint::SetData ( DataValueContainer const &  rThisData)
inline

This method sets the data container of the constraint.

Parameters
rThisDataThe data container to set on mData

◆ SetDofList()

virtual void Kratos::MasterSlaveConstraint::SetDofList ( const DofPointerVectorType rSlaveDofsVector,
const DofPointerVectorType rMasterDofsVector,
const ProcessInfo rCurrentProcessInfo 
)
inlinevirtual

Determines the constrant's slave and master list of DOFs.

Parameters
rSlaveDofsVectorThe list of slave DOFs
rMasterDofsVectorThe list of slave DOFs
rCurrentProcessInfoThe current process info instance

Reimplemented in Kratos::SlipConstraint, and Kratos::LinearMasterSlaveConstraint.

◆ SetLocalSystem()

virtual void Kratos::MasterSlaveConstraint::SetLocalSystem ( const MatrixType rRelationMatrix,
const VectorType rConstantVector,
const ProcessInfo rCurrentProcessInfo 
)
inlinevirtual

This method allows to set the Local System in case is not computed on running time (internal variable)

Parameters
rRelationMatrixthe matrix which relates the master and slave degree of freedom
rConstantThe constant vector (one entry for each slave)
rCurrentProcessInfoThe current process info instance

Reimplemented in Kratos::SlipConstraint, and Kratos::LinearMasterSlaveConstraint.

◆ SetMasterDofsVector()

virtual void Kratos::MasterSlaveConstraint::SetMasterDofsVector ( const DofPointerVectorType rMasterDofsVector)
inlinevirtual

This method returns the slave dof vector.

Returns
The vector containing the slave dofs

Reimplemented in Kratos::SlipConstraint, and Kratos::LinearMasterSlaveConstraint.

◆ SetSlaveDofsVector()

virtual void Kratos::MasterSlaveConstraint::SetSlaveDofsVector ( const DofPointerVectorType rSlaveDofsVector)
inlinevirtual

This method returns the slave dof vector.

Returns
The vector containing the slave dofs

Reimplemented in Kratos::SlipConstraint, and Kratos::LinearMasterSlaveConstraint.

◆ SetValue()

template<class TVariableType >
void Kratos::MasterSlaveConstraint::SetValue ( const TVariableType &  rThisVariable,
typename TVariableType::Type const &  rValue 
)
inline

Set Data with SetValue and the Variable to set.

Parameters
rThisVariableThe variable to be set
rValueThe value to be set

Friends And Related Function Documentation

◆ Serializer

friend class Serializer
friend

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