This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/solidMechanics/elasticSolidFoam/createSolidInterface.H

25 lines
785 B
C++
Raw Normal View History

2012-09-11 15:42:55 +00:00
Switch solidInterfaceCorr(false);
solidInterface* solidInterfacePtr(nullptr);
2012-09-11 15:42:55 +00:00
{
const dictionary& stressControl =
mesh.solutionDict().subDict("solidMechanics");
2012-09-11 15:42:55 +00:00
solidInterfaceCorr = Switch(stressControl.lookup("solidInterface"));
if(solidInterfaceCorr)
{
Info << "Creating solid interface correction" << endl;
solidInterfacePtr = new solidInterface(mesh, rheology);
solidInterfacePtr->modifyProperties(muf, lambdaf);
2012-09-11 15:42:55 +00:00
//- solidInterface needs muf and lambdaf to be used for divSigmaExp
if(divSigmaExpMethod != "surface" && divSigmaExpMethod != "decompose")
{
FatalError << "divSigmaExp must be decompose or surface when solidInterface is on"
<< exit(FatalError);
}
}
2012-09-11 15:42:55 +00:00
}