73 if ( ( mode != VM_Total ) && ( mode != VM_Incremental ) ) {
92 pressureValue = pressureValue > 0 ? pressureValue : 0.0;
93 for (
int k = 1; k <= nDofs; k++ ) {
94 pressureArray.
at(nDofs * ( j - 1 ) + k) *= pressureValue;
103 if ( ( pressureArray.
giveSize() / nSize ) != nDofs ) {
104 OOFEM_ERROR(
"computeValueAt: componentArray size mismatch");
107 for (
int i = 1; i <= nDofs; i++ ) {
109 for (
int j = 1; j <= nSize; j++ ) {
110 value += N.
at(j) * pressureArray.
at(i + ( j - 1 ) * nDofs);
113 answer.
at(i) = value;
118 answer.
times(factor);
REGISTER_BoundaryCondition(BoundaryCondition)
virtual EngngModel * giveSlaveProblem(int i)
Returns i-th slave problem.
Domain * domain
Link to domain object, useful for communicating with other FEM components.
FloatArray componentArray
Components of boundary condition.
double & at(int i)
Coefficient access function.
ValueModeType
Type representing the mode of UnknownType or CharType, or similar types.
Function * giveTimeFunction()
This class represents PFEM method for solving incompressible Navier-Stokes equations.
EngngModel * giveEngngModel()
Returns engineering model to which receiver is associated.
virtual void computeNArray(FloatArray &answer, const FloatArray &coords) const
Abstract function, for computing approximation matrix of receiver at given point. ...
Base class for dof managers.
double evaluate(TimeStep *tStep, ValueModeType mode)
Returns the value of load time function at given time.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
int & at(int i)
Coefficient access function.
IntArray coupledParticles
Coordinates of start and end point.
double giveUnknownComponent(ValueModeType mode, TimeStep *tStep, Domain *d, Dof *dof)
Returns requested unknown.
virtual IRResultType initializeFrom(InputRecord *ir)
Initializes receiver according to object description stored in input record.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Implementation of fluid-structure interaction ) problem based on Dirichlet-Neumann approach...
virtual void computeValueAt(FloatArray &answer, TimeStep *tStep, const FloatArray &coords, ValueModeType mode)
Computes components values of load at given point - global coordinates (coordinates given)...
EngngModel * giveMasterEngngModel()
Returns the master engnmodel.
Class representing vector of real numbers.
IRResultType
Type defining the return values of InputRecord reading operations.
virtual void computeNArray(FloatArray &answer, const FloatArray &coords) const
Abstract function, for computing approximation matrix of receiver at given point. ...
#define _IFT_InteractionLoad_CoupledParticles
Dof * giveDofWithID(int dofID) const
Returns DOF with given dofID; issues error if not present.
void times(double s)
Multiplies receiver with scalar.
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.
Domain * giveDomain(int n)
Service for accessing particular problem domain.
Abstract class Dof represents Degree Of Freedom in finite element mesh.
virtual int giveNumberOfSlaveProblems()
Returns number of slave problems.
DofManager * giveDofManager(int n)
Service for accessing particular domain dof manager.
virtual void giveInputRecord(DynamicInputRecord &input)
Setups the input record string of receiver.
Class representing solution step.
void resize(int s)
Resizes receiver towards requested size.