From 5b17b7bf4301b781c89f15d53edd171f1ee2c03a Mon Sep 17 00:00:00 2001 From: Hrvoje Jasak Date: Sat, 14 Jun 2014 21:15:10 +0100 Subject: [PATCH] Porting changes: Intel --- .../dirichletNeumann/dirichletNeumann.C | 128 ++++++++++-------- .../dirichletNeumann/dirichletNeumann.H | 2 +- .../normalContactModel/normalContactModel.C | 22 +-- 3 files changed, 81 insertions(+), 71 deletions(-) diff --git a/src/solidModels/contactModels/normalContactModels/dirichletNeumann/dirichletNeumann.C b/src/solidModels/contactModels/normalContactModels/dirichletNeumann/dirichletNeumann.C index 8ebe07e62..1703a046e 100644 --- a/src/solidModels/contactModels/normalContactModels/dirichletNeumann/dirichletNeumann.C +++ b/src/solidModels/contactModels/normalContactModels/dirichletNeumann/dirichletNeumann.C @@ -57,66 +57,76 @@ dirichletNeumann::dirichletNeumann const PrimitivePatch& slaveFaceZonePatch ) : - normalContactModel - ( - name, - patch, - dict, - masterPatchID, - slavePatchID, - masterFaceZoneID, - slaveFaceZoneID, - masterFaceZonePatch, - slaveFaceZonePatch - ), - normalContactModelDict_(dict.subDict(name+"NormalModelDict")), - mesh_(patch.boundaryMesh().mesh()), - slaveDisp_(mesh_.boundaryMesh()[slavePatchID].size(), vector::zero), - oldSlaveDispMag_(mesh_.boundaryMesh()[slavePatchID].size(), 0.0), - slavePressure_(mesh_.boundaryMesh()[slavePatchID].size(), vector::zero), - oldSlavePressure_(mesh_.boundaryMesh()[slavePatchID].size(), vector::zero), - touchFraction_(mesh_.boundaryMesh()[slavePatchID].size(), 0.0), - slaveValueFrac_(mesh_.boundaryMesh()[slavePatchID].size(), symmTensor::zero), - oldSlaveValueFrac_ - (mesh_.boundaryMesh()[slavePatchID].size(), symmTensor::zero), - limitPenetration_(normalContactModelDict_.lookup("limitPenetration")), - penetrationLimit_ - (readScalar(normalContactModelDict_.lookup("penetrationLimit"))), - limitPressure_(normalContactModelDict_.lookup("limitPressure")), - pressureLimit_(readScalar(normalContactModelDict_.lookup("pressureLimit"))), - settleContact_ - ( - normalContactModelDict_.found("settleContact") ? - normalContactModelDict_.lookup("settleContact") : false - ), - settleIterationNumber_ - ( - settleContact_ ? - readInt(normalContactModelDict_.lookup("settleIterationNumber")) : GREAT - ), - correctMissedVertices_ - ( - normalContactModelDict_.lookup("correctMissedVertices") - ), - slavePointPointsPtr_(NULL), - contactGapTol_(readScalar(normalContactModelDict_.lookup("contactGapTol"))), - contactIterNum_(0), - relaxFactor_(readScalar(normalContactModelDict_.lookup("relaxationFactor"))), - distanceMethod_(normalContactModelDict_.lookup("distanceMethod")), - aitkenRelaxation_(normalContactModelDict_.lookup("aitkenRelaxation")), - curTimeIndex_(-1), - iCorr_(0), - aitkenRes0_(1.0), - aitkenTheta_(relaxFactor_), - aitkenDelta_(slaveDisp_.size(), vector::zero), - aitkenDeltaPrevIter_(slaveDisp_.size(), vector::zero), - slaveDispPrevIter_(slaveDisp_.size(), vector::zero), - oscillationCorr_(normalContactModelDict_.lookup("oscillationCorrection")), - smoothingSteps_(readInt(normalContactModelDict_.lookup("smoothingSteps"))), - infoFreq_(readInt(normalContactModelDict_.lookup("infoFrequency"))), - contactFilePtr_(NULL) + normalContactModel + ( + name, + patch, + dict, + masterPatchID, + slavePatchID, + masterFaceZoneID, + slaveFaceZoneID, + masterFaceZonePatch, + slaveFaceZonePatch + ), + normalContactModelDict_(dict.subDict(name+"NormalModelDict")), + mesh_(patch.boundaryMesh().mesh()), + slaveDisp_(mesh_.boundaryMesh()[slavePatchID].size(), vector::zero), + oldSlaveDispMag_(mesh_.boundaryMesh()[slavePatchID].size(), 0.0), + slavePressure_(mesh_.boundaryMesh()[slavePatchID].size(), vector::zero), + oldSlavePressure_(mesh_.boundaryMesh()[slavePatchID].size(), vector::zero), + touchFraction_(mesh_.boundaryMesh()[slavePatchID].size(), 0.0), + slaveValueFrac_(mesh_.boundaryMesh()[slavePatchID].size(), symmTensor::zero), + oldSlaveValueFrac_ + ( + mesh_.boundaryMesh()[slavePatchID].size(), symmTensor::zero + ), + limitPenetration_(normalContactModelDict_.lookup("limitPenetration")), + penetrationLimit_ + ( + readScalar(normalContactModelDict_.lookup("penetrationLimit")) + ), + limitPressure_(normalContactModelDict_.lookup("limitPressure")), + pressureLimit_(readScalar(normalContactModelDict_.lookup("pressureLimit"))), + settleContact_ + ( + normalContactModelDict_.lookupOrDefault + ( + "settleContact", + false + ) + ), + settleIterationNumber_ + ( + normalContactModelDict_.lookupOrDefault