52 this->numberOfConstraintEq = 0;
65 cEl->instanciateYourself(dr);
66 cEl->setupIntegrationPoints();
83 IntArray dofIdArray(numDofs), dofMans;
84 for (
int i = 1; i <= numDofs; i++ ) {
90 cEl->giveDofManagersToAppendTo(dofMans);
92 cEl->setDofIdArray(dofIdArray);
95 for (
int i = 1; i <= dofMans.
giveSize(); i++ ) {
97 for (
auto &dofid: dofIdArray ) {
121 master->computeContactForces(Fc, tStep, mode, s, domain, eNorms);
125 master->giveLocationArray(locArray, s);
148 master->computeContactTangent(Kc, tStep);
152 master->giveLocationArray(locArrayR, r_s);
153 master->giveLocationArray(locArrayC, c_s);
155 answer.
assemble(locArrayR, locArrayC, Kc);
virtual int assemble(const IntArray &loc, const FloatMatrix &mat)=0
Assembles sparse matrix from contribution of local elements.
Base class for all matrices stored in sparse format.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Base class for dof managers.
void negated()
Changes sign of receiver values.
Class representing the abstraction for input data source.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
Class representing "master" degree of freedom.
DofIDItem
Type representing particular dof type.
REGISTER_ContactDefinition(ContactDefinition)
Abstract base class allowing to control the way, how equations are assigned to individual DOFs...
void appendDof(Dof *dof)
Adds the given Dof into the receiver.
int giveNextFreeDofID(int increment=1)
Gives the next free dof ID.
Class representing vector of real numbers.
bool hasDofID(DofIDItem id) const
Checks if receiver contains dof with given ID.
Implementation of matrix containing floating point numbers.
void assemble(const FloatArray &fe, const IntArray &loc)
Assembles the array fe (typically, the load vector of a finite element) into the receiver, using loc as location array.
void assembleSquared(const FloatArray &fe, const IntArray &loc)
Assembles the array fe with each component squared.
int giveSize() const
Returns the size of receiver.
the oofem namespace is to define a context or scope in which all oofem names are defined.
DofManager * giveDofManager(int n)
Service for accessing particular domain dof manager.
void negated()
Switches the sign of every coefficient of receiver.
Class representing solution step.