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/elasticContactNonLinULSolidFoam/readMoveMeshMethod.H
2012-09-11 16:42:55 +01:00

10 lines
515 B
C

//- the method used to interpolate in cell centre displacements to the vertices to move the mesh
word moveMeshMethod(mesh.solutionDict().subDict("stressedFoam").lookup("moveMeshMethod"));
Info << "Move Mesh method: " << moveMeshMethod << endl;
if(moveMeshMethod != "inverseDistance"
&& moveMeshMethod != "leastSquares")
{
FatalError << "moveMeshMethod " << moveMeshMethod << " not found!" << nl
<< "valid methods are:\ninvreseDistance\nleastSquares"
<< exit(FatalError);
}