26 lines
766 B
C
26 lines
766 B
C
|
Switch solidInterfaceCorr(false);
|
||
|
|
||
|
solidInterface* solidInterfacePtr(NULL);
|
||
|
|
||
|
{
|
||
|
const dictionary& stressControl =
|
||
|
mesh.solutionDict().subDict("stressedFoam");
|
||
|
|
||
|
solidInterfaceCorr = Switch(stressControl.lookup("solidInterface"));
|
||
|
|
||
|
if(solidInterfaceCorr)
|
||
|
{
|
||
|
Info << "Creating solid interface correction" << endl;
|
||
|
solidInterfacePtr = new solidInterface(mesh, rheology);
|
||
|
solidInterfacePtr->modifyProperties(muf, lambdaf);
|
||
|
gradDU = solidInterfacePtr->grad(DU);
|
||
|
|
||
|
//- solidInterface needs muf and lambdaf to be used for divSigmaExp
|
||
|
if(divDSigmaExpMethod != "surface" && divDSigmaExpMethod != "decompose")
|
||
|
{
|
||
|
FatalError << "divDSigmaExp must be decompose or surface when solidInterface is on"
|
||
|
<< exit(FatalError);
|
||
|
}
|
||
|
}
|
||
|
}
|