13 #if !defined(KRATOS_DOF_UPDATER_H_INCLUDED )
14 #define KRATOS_DOF_UPDATER_H_INCLUDED
38 template<
class TSparseSpace >
79 virtual typename DofUpdater::UniquePointer
Create()
const
81 return Kratos::make_unique<DofUpdater>();
115 rDof.GetSolutionStepValue() += TSparseSpace::GetValue(rDx, rDof.EquationId());
135 rDof.GetSolutionStepValue() = TSparseSpace::GetValue(rX, rDof.EquationId());
146 virtual std::string
Info()
const
148 std::stringstream buffer;
149 buffer <<
"DofUpdater" ;
156 rOStream << this->
Info() << std::endl;
162 rOStream << this->
Info() << std::endl;
175 template<
class TSparseSpace >
177 std::istream& rIStream,
184 template<
class TSparseSpace >
186 std::ostream& rOStream,
190 rOStream << std::endl;
Dof represents a degree of freedom (DoF).
Definition: dof.h:86
bool IsFree() const
Definition: dof.h:382
Utility class to update the values of degree of freedom (Dof) variables after solving the system.
Definition: dof_updater.h:40
virtual void Clear()
Free internal storage to reset the instance and/or optimize memory consumption.
Definition: dof_updater.h:97
virtual void Initialize(const DofsArrayType &rDofSet, const SystemVectorType &rDx)
Initialize the DofUpdater in preparation for a subsequent UpdateDofs call.
Definition: dof_updater.h:89
DofUpdater(DofUpdater const &rOther)=delete
Deleted copy constructor.
DofUpdater()
Default constructor.
Definition: dof_updater.h:58
virtual void UpdateDofs(DofsArrayType &rDofSet, const SystemVectorType &rDx)
Calculate new values for the problem's degrees of freedom using the update vector rDx.
Definition: dof_updater.h:106
typename TSparseSpace::VectorType SystemVectorType
Definition: dof_updater.h:51
virtual DofUpdater::UniquePointer Create() const
Create a new instance of this class.
Definition: dof_updater.h:79
virtual void PrintData(std::ostream &rOStream) const
Print object's data.
Definition: dof_updater.h:160
virtual void AssignDofs(DofsArrayType &rDofSet, const SystemVectorType &rX)
Assign new values for the problem's degrees of freedom using the vector rX.
Definition: dof_updater.h:128
virtual void PrintInfo(std::ostream &rOStream) const
Print information about this object.
Definition: dof_updater.h:154
KRATOS_CLASS_POINTER_DEFINITION(DofUpdater)
Pointer definition of DofUpdater.
virtual ~DofUpdater()
Destructor.
Definition: dof_updater.h:64
DofUpdater & operator=(DofUpdater const &rOther)=delete
Deleted assignment operator.
virtual std::string Info() const
Turn back information as a string.
Definition: dof_updater.h:146
A sorted associative container similar to an STL set, but uses a vector to store pointers to its data...
Definition: pointer_vector_set.h:72
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
void block_for_each(TIterator itBegin, TIterator itEnd, TFunction &&rFunction)
Execute a functor on all items of a range in parallel.
Definition: parallel_utilities.h:299
std::istream & operator>>(std::istream &rIStream, LinearMasterSlaveConstraint &rThis)
input stream function
std::ostream & operator<<(std::ostream &rOStream, const LinearMasterSlaveConstraint &rThis)
output stream function
Definition: linear_master_slave_constraint.h:432