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

Lagrangian Particle and Dynamic Mesh

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 24, 2017, 05:21
Default Lagrangian Particle and Dynamic Mesh
  #1
Member
 
Join Date: Aug 2011
Posts: 37
Rep Power: 14
Kojote is on a distinguished road
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"
}
}
Kojote is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 03:46.