Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / solidMechanics / elasticSolidFoam / createSolidInterface.H
blob249670d5a36376fef2e9e264fd82adfc6b2c6f9a
1 Switch solidInterfaceCorr(false);
3 solidInterface* solidInterfacePtr(NULL);
6     const dictionary& stressControl =
7         mesh.solutionDict().subDict("solidMechanics");
9     solidInterfaceCorr = Switch(stressControl.lookup("solidInterface"));
11     if(solidInterfaceCorr)
12     {
13         Info << "Creating solid interface correction" << endl;
14         solidInterfacePtr = new solidInterface(mesh, rheology);
15         solidInterfacePtr->modifyProperties(muf, lambdaf);
17         //- solidInterface needs muf and lambdaf to be used for divSigmaExp
18         if(divSigmaExpMethod != "surface" && divSigmaExpMethod != "decompose")
19         {
20             FatalError << "divSigmaExp must be decompose or surface when solidInterface is on"
21                 << exit(FatalError);
22         }
23     }