CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Re-initialize everything during run-time without restarting simulation

Register Blogs Community New Posts Updated Threads Search

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

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();

Code:
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())
                {
                    laminarTransport.correct();
                    turbulence->correct();
                }
            }
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.

Thanks
Nadun
Nadun19 is offline   Reply With Quote

Reply

Tags
moving mesh., pimple transient


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 6, 2023 00:48
Transient run continues from last time (when startover is desired) bongbang CFX 2 March 23, 2015 00:05
Unexpected deltaT decrease in pimpleFoam simulation robyTKD OpenFOAM Running, Solving & CFD 9 June 27, 2014 07:52
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 16:33
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47


All times are GMT -4. The time now is 09:52.