72 for (
int i = 0; i < dofids.
giveSize(); ++i ) {
75 answer[i] = loaded_dofs.
at(index);
113 OOFEM_WARNING(
"dofExcludeMask and componentArray size mismatch");
116 for (
int i = 1; i <= size; i++ ) {
virtual bool isImposed(TimeStep *tStep)
Returns nonzero if receiver representing BC is imposed at given time, otherwise returns zero...
#define _IFT_Load_reference
FloatArray componentArray
Components of boundary condition.
void zero()
Sets all component to zero.
double & at(int i)
Coefficient access function.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Function * giveTimeFunction()
Load(int n, Domain *d)
Constructor.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void computeValueAt(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode)=0
Computes components values of load at given point - global coordinates (coordinates given)...
virtual void computeComponentArrayAt(FloatArray &answer, TimeStep *tStep, ValueModeType mode)
Computes boundary condition value - its components values at given time.
double evaluate(TimeStep *tStep, ValueModeType mode)
Returns the value of load time function at given time.
Class implementing an array of integers.
int & at(int i)
Coefficient access function.
bool containsOnlyZeroes() const
Checks if receiver is all zero.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void computeValues(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, const IntArray &dofids, ValueModeType mode)
Computes components values for specified dof ids.
#define _IFT_Load_dofexcludemask
int timeFunction
Associated load time function.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
IntArray dofs
Dofs that b.c. is applied to (relevant for Dirichlet type b.c.s).
Abstract base class for all boundary conditions of problem.
void resize(int n)
Checks size of receiver towards requested bounds.
const FloatArray & giveComponentArray() const
Initializes the variable VERBOSE, in order to get a few intermediate messages on screen: beginning an...
Class representing vector of real numbers.
IRResultType
Type defining the return values of InputRecord reading operations.
int isDofExcluded(int index)
Returns the value of dofExcludeMask corresponding to given index.
IntArray dofExcludeMask
The load is specified for all dofs of object to which is associated.
void zero()
Zeroes all coefficients of receiver.
void times(double s)
Multiplies receiver with scalar.
#define _IFT_Load_components
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
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.
#define OOFEM_WARNING(...)
Class representing solution step.
virtual void scale(double s)
Scales the receiver according to given value.
int findFirstIndexOf(int value) const
Finds index of first occurrence of given value in array.
void resize(int s)
Resizes receiver towards requested size.