The overall aim of the solids4foam project is to develop an OpenFOAM toolbox for solid mechanics and fluid-solid interactions that is:
In addition, the toolbox should be compatible will all major OpenFOAM forks, as far as reasonably possible (so far, the main features are only available with foam extend 4.0 and 4.1).
solids4foam builds on the toolboxes stressAnalysis, solidMechanics and extendBazaar
When consistent style is not followed, reading code generated by others becomes tedious, painstaking and even impossible!
Coding style is a crucial feature of software that is easy to read, understand, maintain and extend
Fortunately, the OpenFOAM Foundation have set out a comprehensive coding style at: https://openfoam.org/dev/coding-style-guide.
Info <<“This is not good”
<< endl;
( a+b ) * ( c&d ) / (e&&f)
if(myName == “Philip”){
success = true;
}
…
Info<< “That’s better”
<< endl;
(a + b)*(c & d)/(e && f)
if (myName == “Philip”)
{
success = true;
}
…
The finite volume method is a generalisation of the finite difference method, in terms of geometry and topology
But the methods differ in their philosophy …