51 OOFEM_WARNING(
"Random pertubation amplitude can not be negative");
64 OOFEM_WARNING(
"Pert map size must be an even number, it contains pairs <node, nodeDof>");
69 OOFEM_WARNING(
"Pert map size and weight array size mismatch");
83 int count = 0, ndofman =
this ->
domain -> giveNumberOfDofManagers();
88 for (
int j = 1; j <= ndofman; j++ ) {
90 for (
int i = 1; i <= size; i++ ) {
93 if ( inode == jglobnum ) {
110 nsize = displacement -> giveSize();
112 for (
int i = 1; i <= nsize; i++ ) {
114 displacement->
at(i) += pert;
125 for (
int i = 1; i <= nsize; i++ ) {
128 displacement->
at(iDof) += w;
The representation of EngngModel default unknown numbering.
#define _IFT_NonLinearStatic_pertw
#define _IFT_NonLinearStatic_randPertAmplitude
virtual void applyPerturbation(FloatArray *displacement)
#define _IFT_NonLinearStatic_pert
IntArray igp_PertDmanDofSrcArray
double & at(int i)
Coefficient access function.
void clear()
Clears receiver (zero size).
int & at(int i)
Coefficient access function.
#define _IFT_NonLinearStatic_randSeed
Domain * domain
Pointer to domain.
void clear()
Clears the array (zero size).
void resize(int n)
Checks size of receiver towards requested bounds.
Class representing vector of real numbers.
IRResultType initializeFrom(InputRecord *ir)
IRResultType
Type defining the return values of InputRecord reading operations.
Dof * giveDofWithID(int dofID) const
Returns DOF with given dofID; issues error if not present.
FloatArray igp_PertWeightArray
virtual void convertPertMap()
double randPertAmplitude
Amplitude of a random perturbation applied on the solution before the iteration process.
int giveEquationNumber(const UnknownNumberingScheme &s)
Returns equation number of receiver for given equation numbering scheme.
int giveSize() const
Returns the size of receiver.
Node * giveNode(int n)
Service for accessing particular domain node.
the oofem namespace is to define a context or scope in which all oofem names are defined.
#define OOFEM_WARNING(...)
void resize(int s)
Resizes receiver towards requested size.