As some instructions to how to install the waves2foam library with OpenFOAM v2006, follow the instructions in the examples directory. The only modifications required are the pre processing setfields files, mainly just supplying the gravity vector.
In the Grid2GridProperties.H, the public properties needs to be changed to:
Grid2GridProperties
(
const Time&,
dictionary&,
vector,
bool
);
And in the Grid2GridProperties.C, in the constructors section, it should read
Grid2GridProperties::Grid2GridProperties
(
const Time& rT,
dictionary& dict,
vector g, // Add this parameter
bool write
)