// Read data for specified constrained displacements private void readConstrDisplacements(FeScanner es) { String s = es.next().ToLower(); int idf = UTIL.direction(s); if (idf == -1) { UTIL.errorMsg("constrDispl direction should be x/y/z. Specified:" + s); } if (!es.hasNextDouble()) { UTIL.errorMsg("constrDispl value is not a double: " + es.next()); } double vd = es.nextDouble(); defDs = es.readNumberList(defDs, idf, nDim, vd); }
// Read data for specified nodal forces private void readNodalForces(FeScanner es) { String s = es.next().ToLower(); int idf = UTIL.direction(s); if (idf == -1) { UTIL.errorMsg("nodForce direction should be x/y/z. Specified:" + s); } if (!es.hasNextDouble()) { UTIL.errorMsg("nodForce value is not a double: " + es.next()); } double vd = es.nextDouble(); nodForces = es.readNumberList(nodForces, idf, fem.nDim, vd); }