43double InitialCondition :: give(ValueModeType type,
const FloatArray& coords)
46 if (this->
mode == 0) {
54 }
else if (this->
mode == 1) {
56 double x = (size > 0) ? coords.
at(1) : 0.0;
57 double y = (size > 1) ? coords.
at(2) : 0.0;
58 double z = (size > 2) ? coords.
at(3) : 0.0;
73 }
else if (this->
mode == 2) {
78 this->
externalFField->evaluateAt(answer, coords, type, this->
domain->giveEngngModel()->giveSolutionStepWhenIcApply());
87int InitialCondition :: hasConditionOn(
int u)
91 if (this->
mode == 0) {
99int InitialCondition :: hasConditionOn(ValueModeType type)
103 if (this->
mode == 0) {
111void InitialCondition :: printYourself()
114 printf(
"Initial condition %d\ninitial values :\n",
number);
163InitialCondition :: scale(ValueModeType type,
double s)
165 if (this->
mode == 0) {
Domain * giveDomain() const
Domain * domain
Link to domain object, useful for communicating with other FEM components.
int number
Component number.
Index giveSize() const
Returns the size of receiver.
int mode
flag indicating compatibility (initialValueDictionary) mode (0 uses initialValueDictionary,...
ScalarFunction accelerationExpr
bcValType valType
Physical meaning of bc value.
Dictionary initialValueDictionary
Dictionary of initial (constant) values (deprecated).
int hasConditionOn(int u)
ScalarFunction velocityExpr
IntArray dofIDs
List of dof ids that IC is applied to.
#define _IFT_InitialCondition_field
#define _IFT_InitialCondition_f
#define _IFT_InitialCondition_d2fdt2
#define _IFT_InitialCondition_conditions
#define _IFT_InitialCondition_valType
#define _IFT_InitialCondition_dofs
#define _IFT_InitialCondition_dfdt
#define _IFT_InitialCondition_set
FieldType
Physical type of field.
char cltypesGiveUnknownTypeModeKey(ValueModeType mode)
bcValType
Type determining the type of general boundary condition.