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/elasticPlasticNonLinULSolidFoam/readMoveMeshMethod.H

10 lines
517 B
C++

//- the method used to interpolate in cell centre displacements to the vertices to move the mesh
word moveMeshMethod(mesh.solutionDict().subDict("solidMechanics").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);
}