|
[Sponsors] |
March 24, 2017, 05:21 |
Lagrangian Particle and Dynamic Mesh
|
#1 |
Member
Join Date: Aug 2011
Posts: 37
Rep Power: 14 |
Hi,
i want to write a solver which includes LPT and dynamic mesh. And i faced an issue. If there exist a particle which is not in the Domain anymore, the simulation crashes. Is there already a fix for that, even if the particle is just removed i could live with that, i only want to avoid the crashing. My code looks like this (3.1-ext) while (runTime.loop()) { Info<< "Time = " << runTime.timeName() << nl << endl; #include "readControls.H" #include "checkTotalVolume.H" // Make the fluxes absolute fvc::makeAbsolute(phi, U); #include "CourantNo.H" #include "setDeltaT.H" { bool meshChanged = mesh.update(); reduce(meshChanged, orOp<bool>()); # include "volContinuity.H" if (correctPhi && (mesh.moving() || meshChanged)) { // Fluxes will be corrected to absolute velocity // HJ, 6/Feb/2009 # include "correctPhi.H" } // Make the fluxes relative to the mesh motion fvc::makeRelative(phi, U); if (mesh.moving() && checkMeshCourantNo) { # include "meshCourantNo.H" } Info<< "Evolving kinematicCloud1" << endl; kinematicCloud1.evolve(); kinematicCloud1.info(); #include "UEqn.H" // --- PISO loop for (int corr=0; corr<nCorr; corr++) { #include "pEqn.H" } } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
AMI dynamic mesh and Lagrangian Particle Clouds | lr103476 | OpenFOAM Running, Solving & CFD | 9 | February 28, 2018 09:35 |
Simple piston movement in cylinder- fluid models | arun1994 | CFX | 4 | July 8, 2016 02:54 |
DPM particle tracking in a dynamic mesh | moloykb | FLUENT | 0 | March 14, 2014 03:26 |
Dynamic Mesh | vagaikwa | FLUENT | 0 | March 16, 2013 20:19 |
Check particle impaction with User Fortran | Julian K. | CFX | 3 | January 12, 2012 09:46 |