mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
functionObjects::randomise: New functionObject to create a field with a random perturbation
This commit is contained in:
17
etc/caseDicts/postProcessing/fields/randomise
Normal file
17
etc/caseDicts/postProcessing/fields/randomise
Normal 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"
|
||||
}
|
||||
|
||||
// ************************************************************************* //
|
||||
15
etc/caseDicts/postProcessing/fields/randomise.cfg
Normal file
15
etc/caseDicts/postProcessing/fields/randomise.cfg
Normal 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;
|
||||
|
||||
// ************************************************************************* //
|
||||
Reference in New Issue
Block a user