waves::fvModels::forcing: Added option to write the forcing fields

e.g.

    waveForcing1
    {
        type            waveForcing;

        libs            ("libwaves.so");

        liquidPhase     water;

        // Define the line along which to apply the graduation
        origin          (600 0 0);
        direction       (-1 0 0);

        // // Or, define multiple lines
        // origins         ((600 0 0) (600 -300 0) (600 300 0));
        // directions      ((-1 0 0) (0 1 0) (0 -1 0));

        scale
        {
            type        halfCosineRamp;
            start       0;
            duration    300;
        }

        lambda          0.5; // Forcing coefficient

     // lambdaBoundary  2;   // Optional boundary forcing coefficient
                             // Useful when wave BCs are specified
                             // without mean flow

        // Write the forcing fields: forcing:scale, forcing:forceCoeff
        writeForceFields true;
    }

will write the fields forcing:scale and forcing:forceCoeff at the start of the
run to visualise and check correctness.
This commit is contained in:
Henry Weller
2023-09-08 15:09:56 +01:00
parent 5e8748c6eb
commit 7b6b758dd8
7 changed files with 31 additions and 21 deletions

View File

@ -47,6 +47,9 @@ forcing
lambda 5;
lambdaBoundary 25;
// Write the forcing fields: forcing:scale, forcing:forceCoeff
writeForceFields true;
}

View File

@ -62,10 +62,4 @@ functions0
}
}
DebugSwitches
{
// Write the forcing and damping scale and force fields
forcing 1;
}
// ************************************************************************* //