functionObjects::randomise: New functionObject to create a field with a random perturbation

This commit is contained in:
Henry Weller
2016-05-26 15:32:10 +01:00
parent 1940cf8413
commit 9d71c18fcf
5 changed files with 310 additions and 0 deletions

View File

@ -0,0 +1,17 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
randomise
{
// Set the magnitude of the perturbation
magPerturbation <scalar>;
#includeEtc "caseDicts/postProcessing/fields/randomise.cfg"
}
// ************************************************************************* //

View File

@ -0,0 +1,15 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: dev |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
type randomise;
libs ("libfieldFunctionObjects.so");
executeControl writeTime;
writeControl writeTime;
// ************************************************************************* //