MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / updateParameter

Method updateParameter

SRC/element/UWelements/SSPquadUP.cpp:1051–1105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1049}
1050
1051int
1052SSPquadUP::updateParameter(int parameterID, Information &info)
1053{
1054 int res = -1;
1055 int matRes = res;
1056
1057 if (parameterID == res) {
1058 return -1;
1059 } else if (parameterID == 3) {
1060 // update element permeability in direction 1
1061 perm[0] = info.theDouble;
1062 GetPermeabilityMatrix();
1063 return 0;
1064 } else if (parameterID == 4) {
1065 // update element permeability in direction 2
1066 perm[1] = info.theDouble;
1067 GetPermeabilityMatrix();
1068 return 0;
1069 //LM change
1070 } else if (parameterID == 9) {
1071 // update consistent nodal loads - pressure positive for outward normal
1072 pressureUpperSide = info.theDouble;
1073 this->setPressureLoadAtNodes();
1074 return 0;
1075 } else if (parameterID == 10) {
1076 // update consistent nodal loads - pressure positive for outward normal
1077 pressureLowerSide = info.theDouble;
1078 this->setPressureLoadAtNodes();
1079 return 0;
1080 } else if (parameterID == 11) {
1081 // update consistent nodal loads - pressure positive for outward normal
1082 pressureLeftSide = info.theDouble;
1083 this->setPressureLoadAtNodes();
1084 return 0;
1085 } else if (parameterID == 12) {
1086 // update consistent nodal loads - pressure positive for outward normal
1087 pressureRightSide = info.theDouble;
1088 this->setPressureLoadAtNodes();
1089 return 0;
1090 } else if (parameterID == 13) {
1091 b[0] = info.theDouble;
1092 return 0;
1093 } else if (parameterID == 14) {
1094 b[1] = info.theDouble;
1095 return 0;
1096 //LM change
1097 } else {
1098 // update the material parameter
1099 matRes = theMaterial->updateParameter(parameterID, info);
1100 if (matRes != -1) {
1101 res = matRes;
1102 }
1103 return res;
1104 }
1105}
1106
1107Matrix
1108SSPquadUP::DyadicProd(Vector v1, Vector v2)

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected