CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Re-initialize everything during run-time without restarting simulation

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 2, 2021, 19:15
Default Re-initialize everything during run-time without restarting simulation
New Member
Nadun Palmada
Join Date: Apr 2017
Posts: 15
Rep Power: 9
Nadun19 is on a distinguished road

I am currently running moving mesh simulations using OpenFOAM 5.x on pimpleDyMFoam, and I am wanting to run an initial timestep (say 0.1) where I deform the mesh to a newer mesh but reset the flow (back to initial conditions) at 0.1s and continue simulation.

The reason why I need to do this is because I found that by starting the mesh at a highly deformed state I can spring the mesh back to an undeformed state and further deform to a highly deformed state along the simulation (slightly more deformed that the initial) without the mesh breaking. I have run the moveDynamicMesh application through the entire simulation without the mesh breaking. But if I start at the resting or undeformed state then the mesh breaks.

I tried adjusting the pimpleDyMFoam application such that the code after mesh.update();

phi = mesh.Sf() & Uf;

            if (mesh.changing() && correctPhi)
                #include "correctPhi.H"

            // Make the flux relative to the mesh motion
            fvc::makeRelative(phi, U);

            if (mesh.changing() && checkMeshCourantNo)
                #include "meshCourantNo.H"
            // --- Pressure-velocity PIMPLE corrector loop
            while (pimple.loop())
                #include "UEqn.H"

                // --- Pressure corrector loop
                while (pimple.correct())
                    #include "pEqn.H"

                if (pimple.turbCorr())
only runs after runTime.value() >= 0.2 , but this still resulted in extremely high velocities at the walls. I have also tried using manipulatePatchField and manipulateField swakFunctionObjects to adjust the field during run-time but this didn't seem to work.

Nadun19 is offline   Reply With Quote


moving mesh., pimple transient

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
courant number increases to rather large values 6863523 OpenFOAM Running, Solving & CFD 22 July 5, 2023 23:48
Transient run continues from last time (when startover is desired) bongbang CFX 2 March 22, 2015 23:05
Unexpected deltaT decrease in pimpleFoam simulation robyTKD OpenFOAM Running, Solving & CFD 9 June 27, 2014 06:52
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 07:47

All times are GMT -4. The time now is 22:50.