|
[Sponsors] |
Re-initialize everything during run-time without restarting simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
December 2, 2021, 20:15 |
Re-initialize everything during run-time without restarting simulation
|
#1 |
New Member
Nadun Palmada
Join Date: Apr 2017
Posts: 15
Rep Power: 9 |
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(); } } Thanks Nadun |
|
Tags |
moving mesh., pimple transient |
|
|
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 |