diff --git a/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/Allrun b/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/Allrun index fe70030b6c..dfcdfa4afb 100755 --- a/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/Allrun +++ b/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/Allrun @@ -14,19 +14,22 @@ cp -f system/decomposeParDict system/coarseMesh runApplication -s coarseMesh \ decomposePar -region coarseMesh -runParallel -s coarseMesh \ - renumberMesh -overwrite -region coarseMesh - runParallel $(getApplication) runParallel -s main \ redistributePar -reconstruct -overwrite runParallel -s coarseMesh \ - redistributePar -reconstruct -region coarseMesh -time '50,100' -overwrite + redistributePar -reconstruct -region coarseMesh -time '100,200' -overwrite if notTest "$@" then + runParallel -s main \ + createROMfields -dict system/ROMfieldsDict.main + + runParallel -s coarse \ + createROMfields -region coarseMesh -dict system/ROMfieldsDict.coarse + runParallel -s postProcess \ $(getApplication) -postProcess -fields '(U p)' -time '10:' fi diff --git a/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/ROMfieldsDict.coarse b/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/ROMfieldsDict.coarse new file mode 100644 index 0000000000..46239fc001 --- /dev/null +++ b/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/ROMfieldsDict.coarse @@ -0,0 +1,51 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2306 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object ROMfieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +// Mandatory entries +ROMmodel DMD; +field U; +object stdmd02; +deltaT 0.5; +time 200; +modes (0 1 2 3 4 5); + +amplitudes +( + // real imag + (9.6530157261837501e-01 1.2548969744807054e-16) + (-4.5981090474150044e-01 1.1201917697933609e-17) + (-5.8383626014874797e-02 9.2585720816405453e-02) + (-9.1134042896856629e-02 -1.1807489370528129e-03) + (-2.1203108335184701e-02 -2.8779663247233370e-02) + (1.2385994648392197e-02 -4.9644896384558662e-03) +); + +eigenvalues +( + // real imag + (9.9985630038949569e-01 0.0000000000000000e+00) + (9.9461947737648881e-01 0.0000000000000000e+00) + (9.9320944366727382e-01 1.1191689831860335e-02) + (9.8430085766687336e-01 2.0684623251330695e-02) + (9.6738197358302247e-01 5.0795243997432737e-02) + (9.5161544892806882e-01 9.3300116742576905e-02) +); + +// Optional entries +startTime 10; +dimensions [0 1 -1 0 0 0 0]; + +// ************************************************************************* // diff --git a/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/ROMfieldsDict.main b/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/ROMfieldsDict.main new file mode 100644 index 0000000000..16ad009ef2 --- /dev/null +++ b/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/ROMfieldsDict.main @@ -0,0 +1,55 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: v2306 | +| \\ / A nd | Website: www.openfoam.com | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object ROMfieldsDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +// Mandatory entries +ROMmodel DMD; +field U; +object stdmd01; +deltaT 0.5; +time 200; +modes (0 1 2 3 4 5 6 7); + +amplitudes +( + // real imag + (2.5337407409952490e+00 -2.2503793222470212e-16) + (7.4378183585524060e-01 -3.6010239940662085e-17) + (-1.4006827463780439e-01 -9.5516529940514627e-02) + (-2.9945362357647262e-02 -1.0247862053653559e-01) + (-2.2983021818287430e-02 2.5809950920644059e-02) + (2.4847253406056580e-02 3.8648969936045676e-03) + (-5.8982377139224634e-03 1.3251914073095008e-02) + (-1.9090201919402363e-03 1.6128262077930331e-03) +); + +eigenvalues +( + // real imag + (9.9997748892638327e-01 0.0000000000000000e+00) + (9.9549946164826930e-01 0.0000000000000000e+00) + (9.9414863952291088e-01 9.9553420474085639e-03) + (9.8701792508165487e-01 2.0299721098284387e-02) + (9.6387344748920734e-01 7.0360758310232543e-02) + (9.8190087465260323e-01 4.1795226372544611e-02) + (9.5270159663982124e-01 1.0721751313792170e-01) + (9.8849440840215141e-01 7.2617896099699458e-02) +); + +// Optional entries +startTime 10; +dimensions [0 1 -1 0 0 0 0]; + +// ************************************************************************* // diff --git a/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/controlDict b/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/controlDict index 15e96d1720..069005a29a 100644 --- a/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/controlDict +++ b/tutorials/incompressible/pimpleFoam/laminar/cylinder2D/system/controlDict @@ -22,7 +22,7 @@ startTime 0; stopAt endTime; -endTime 100; +endTime 200; deltaT 0.05;